Class LocalProject
java.lang.Object
io.quarkus.bootstrap.resolver.maven.workspace.LocalProject
- Author:
- Alexey Loubyansky
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetAppArtifact(String extension) getDir()getKey()org.apache.maven.model.building.ModelBuildingResultorg.apache.maven.model.Modelstatic LocalProjectstatic LocalProjectstatic LocalProjectLoads the workspace the current project belongs to.static LocalProjectloadWorkspace(BootstrapMavenContext ctx, Function<Path, org.apache.maven.model.Model> modelProvider) static LocalProjectloadWorkspace(Path path) static LocalProjectloadWorkspace(Path path, boolean required)
-
Field Details
-
PROJECT_GROUPID
- See Also:
-
POM_XML
- See Also:
-
-
Method Details
-
load
- Throws:
BootstrapMavenException
-
load
- Throws:
BootstrapMavenException
-
loadWorkspace
- Throws:
BootstrapMavenException
-
loadWorkspace
public static LocalProject loadWorkspace(Path path, boolean required) throws BootstrapMavenException - Throws:
BootstrapMavenException
-
loadWorkspace
Loads the workspace the current project belongs to. If current project does not exist then the method will return null.- Parameters:
ctx- bootstrap maven context- Returns:
- current project with the workspace or null in case the current project could not be resolved
- Throws:
BootstrapMavenException- in case of an error
-
loadWorkspace
public static LocalProject loadWorkspace(BootstrapMavenContext ctx, Function<Path, org.apache.maven.model.Model> modelProvider) throws BootstrapMavenException- Throws:
BootstrapMavenException
-
getLocalParent
-
getGroupId
-
getArtifactId
-
getVersion
-
getDir
-
getOutputDir
-
getCodeGenOutputDir
-
getGeneratedSourcesDir
-
getClassesDir
-
getTestClassesDir
-
getSourcesSourcesDir
-
getTestSourcesSourcesDir
-
getSourcesDir
-
getResourcesSourcesDirs
-
getTestResourcesSourcesDirs
-
getModelBuildingResult
public org.apache.maven.model.building.ModelBuildingResult getModelBuildingResult() -
getRawModel
public org.apache.maven.model.Model getRawModel() -
getWorkspace
-
getKey
-
getPackaging
-
getAppArtifact
-
getAppArtifact
-
resolveRelativeToBaseDir
-
toWorkspaceModule
-
toWorkspaceModule
-