Class DefaultProject

java.lang.Object
org.apache.maven.internal.impl.DefaultProject
All Implemented Interfaces:
org.apache.maven.api.Project

public class DefaultProject extends Object implements org.apache.maven.api.Project
  • Constructor Details

  • Method Details

    • getSession

      public InternalMavenSession getSession()
    • getProject

      public MavenProject getProject()
    • getGroupId

      @Nonnull public String getGroupId()
      Specified by:
      getGroupId in interface org.apache.maven.api.Project
    • getArtifactId

      @Nonnull public String getArtifactId()
      Specified by:
      getArtifactId in interface org.apache.maven.api.Project
    • getVersion

      @Nonnull public String getVersion()
      Specified by:
      getVersion in interface org.apache.maven.api.Project
    • getArtifacts

      @Nonnull public List<org.apache.maven.api.ProducedArtifact> getArtifacts()
      Specified by:
      getArtifacts in interface org.apache.maven.api.Project
    • getPackaging

      @Nonnull public org.apache.maven.api.Packaging getPackaging()
      Specified by:
      getPackaging in interface org.apache.maven.api.Project
    • getModel

      @Nonnull public org.apache.maven.api.model.Model getModel()
      Specified by:
      getModel in interface org.apache.maven.api.Project
    • getPomPath

      @Nonnull public Path getPomPath()
      Specified by:
      getPomPath in interface org.apache.maven.api.Project
    • getBasedir

      @Nonnull public Path getBasedir()
      Specified by:
      getBasedir in interface org.apache.maven.api.Project
    • getDependencies

      @Nonnull public List<org.apache.maven.api.DependencyCoordinates> getDependencies()
      Specified by:
      getDependencies in interface org.apache.maven.api.Project
    • getManagedDependencies

      @Nonnull public List<org.apache.maven.api.DependencyCoordinates> getManagedDependencies()
      Specified by:
      getManagedDependencies in interface org.apache.maven.api.Project
    • isTopProject

      public boolean isTopProject()
      Specified by:
      isTopProject in interface org.apache.maven.api.Project
    • isRootProject

      public boolean isRootProject()
      Specified by:
      isRootProject in interface org.apache.maven.api.Project
    • getRootDirectory

      public Path getRootDirectory()
      Specified by:
      getRootDirectory in interface org.apache.maven.api.Project
    • getParent

      public Optional<org.apache.maven.api.Project> getParent()
      Specified by:
      getParent in interface org.apache.maven.api.Project
    • getDeclaredProfiles

      @Nonnull public List<org.apache.maven.api.model.Profile> getDeclaredProfiles()
      Specified by:
      getDeclaredProfiles in interface org.apache.maven.api.Project
    • getEffectiveProfiles

      @Nonnull public List<org.apache.maven.api.model.Profile> getEffectiveProfiles()
      Specified by:
      getEffectiveProfiles in interface org.apache.maven.api.Project
    • getDeclaredActiveProfiles

      @Nonnull public List<org.apache.maven.api.model.Profile> getDeclaredActiveProfiles()
      Specified by:
      getDeclaredActiveProfiles in interface org.apache.maven.api.Project
    • getEffectiveActiveProfiles

      @Nonnull public List<org.apache.maven.api.model.Profile> getEffectiveActiveProfiles()
      Specified by:
      getEffectiveActiveProfiles in interface org.apache.maven.api.Project