Package org.apache.maven.internal.impl
Class DefaultProject
java.lang.Object
org.apache.maven.internal.impl.DefaultProject
- All Implemented Interfaces:
- Project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetModel()Returns the path to the pom file for this project.Gets the root directory of the project, which is the parent directory containing the.mvndirectory or flagged withroot="true".booleanbooleanReturns a boolean indicating if the project is a root project, meaning that theProject.getRootDirectory()andProject.getBasedir()points to the same directory, and that eitherModel.isRoot()istrueor thatbasedircontains a.mvnchild directory.booleanReturns a boolean indicating if the project is the top level project for this reactor build.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.api.ProjectgetBasedir, getBuild, getId
- 
Constructor Details- 
DefaultProject
 
- 
- 
Method Details- 
getSession
- 
getProject
- 
getGroupId- Specified by:
- getGroupIdin interface- Project
 
- 
getArtifactId- Specified by:
- getArtifactIdin interface- Project
 
- 
getVersion- Specified by:
- getVersionin interface- Project
 
- 
getArtifact- Specified by:
- getArtifactin interface- Project
 
- 
getPackaging- Specified by:
- getPackagingin interface- Project
 
- 
getModel
- 
getPomPathDescription copied from interface:ProjectReturns the path to the pom file for this project. A project is usually read from the file system and this will point to the file. In some cases, a transient project can be created which will not point to an actual pom file.- Specified by:
- getPomPathin interface- Project
- Returns:
- the path of the pom
 
- 
getDependencies- Specified by:
- getDependenciesin interface- Project
 
- 
getManagedDependencies- Specified by:
- getManagedDependenciesin interface- Project
 
- 
isExecutionRootpublic boolean isExecutionRoot()- Specified by:
- isExecutionRootin interface- Project
 
- 
isTopProjectpublic boolean isTopProject()Description copied from interface:ProjectReturns a boolean indicating if the project is the top level project for this reactor build. The top level project may be different from therootDirectory, especially if a subtree of the project is being built, either because Maven has been launched in a subdirectory or using a-foption.- Specified by:
- isTopProjectin interface- Project
- Returns:
- trueif the project is the top level project for this build
 
- 
isRootProjectpublic boolean isRootProject()Description copied from interface:ProjectReturns a boolean indicating if the project is a root project, meaning that theProject.getRootDirectory()andProject.getBasedir()points to the same directory, and that eitherModel.isRoot()istrueor thatbasedircontains a.mvnchild directory.- Specified by:
- isRootProjectin interface- Project
- Returns:
- trueif the project is the root project
- See Also:
 
- 
getRootDirectoryDescription copied from interface:ProjectGets the root directory of the project, which is the parent directory containing the.mvndirectory or flagged withroot="true".- Specified by:
- getRootDirectoryin interface- Project
- See Also:
 
- 
getParent
- 
getRemoteProjectRepositories- Specified by:
- getRemoteProjectRepositoriesin interface- Project
 
- 
getRemotePluginRepositories- Specified by:
- getRemotePluginRepositoriesin interface- Project
 
 
-