Class LocalProject

java.lang.Object
io.quarkus.bootstrap.resolver.maven.workspace.LocalProject

public class LocalProject extends Object
Author:
Alexey Loubyansky
  • Field Details

  • Method Details

    • load

      public static LocalProject load(Path path) throws BootstrapMavenException
      Throws:
      BootstrapMavenException
    • load

      public static LocalProject load(Path path, boolean required) throws BootstrapMavenException
      Throws:
      BootstrapMavenException
    • loadWorkspace

      public static LocalProject loadWorkspace(Path path) throws BootstrapMavenException
      Throws:
      BootstrapMavenException
    • loadWorkspace

      public static LocalProject loadWorkspace(Path path, boolean required) throws BootstrapMavenException
      Throws:
      BootstrapMavenException
    • loadWorkspace

      public static LocalProject loadWorkspace(BootstrapMavenContext ctx) throws BootstrapMavenException
      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, List<WorkspaceModulePom> providedModules) throws BootstrapMavenException
      Throws:
      BootstrapMavenException
    • getModelBuildingResult

      public org.apache.maven.model.building.ModelBuildingResult getModelBuildingResult()
    • getPomLastModified

      protected long getPomLastModified()
    • getLocalParent

      public LocalProject getLocalParent()
    • getGroupId

      public String getGroupId()
    • getArtifactId

      public String getArtifactId()
    • getVersion

      public String getVersion()
    • getDir

      public Path getDir()
    • getOutputDir

      public Path getOutputDir()
    • getCodeGenOutputDir

      public Path getCodeGenOutputDir()
    • getGeneratedSourcesDir

      public Path getGeneratedSourcesDir()
    • getClassesDir

      public Path getClassesDir()
    • getTestClassesDir

      public Path getTestClassesDir()
    • getSourcesSourcesDir

      public Path getSourcesSourcesDir()
    • getTestSourcesSourcesDir

      public Path getTestSourcesSourcesDir()
    • getSourcesDir

      public Path getSourcesDir()
    • getResourcesSourcesDirs

      public io.quarkus.paths.PathCollection getResourcesSourcesDirs()
    • getTestResourcesSourcesDirs

      public io.quarkus.paths.PathCollection getTestResourcesSourcesDirs()
    • getRawModel

      public org.apache.maven.model.Model getRawModel()
    • getEffectiveModel

      public org.apache.maven.model.Model getEffectiveModel()
    • getWorkspace

      public LocalWorkspace getWorkspace()
    • getKey

      public io.quarkus.maven.dependency.ArtifactKey getKey()
    • getPackaging

      public String getPackaging()
    • getAppArtifact

      public io.quarkus.maven.dependency.ResolvedDependency getAppArtifact()
    • getAppArtifact

      public io.quarkus.maven.dependency.ResolvedDependency getAppArtifact(String extension)
    • resolveRelativeToBaseDir

      public Path resolveRelativeToBaseDir(String path)
    • toWorkspaceModule

      public io.quarkus.bootstrap.workspace.WorkspaceModule toWorkspaceModule()
    • toWorkspaceModule

      public io.quarkus.bootstrap.workspace.WorkspaceModule toWorkspaceModule(BootstrapMavenContext ctx)