Package org.apache.maven.internal.impl
Class DefaultProject
java.lang.Object
org.apache.maven.internal.impl.DefaultProject
- All Implemented Interfaces:
Project
-
Constructor Summary
Constructors -
Method Summary
Modifier 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.api.Project
getBasedir, getBuild, getId
-
Constructor Details
-
DefaultProject
-
-
Method Details
-
getSession
-
getProject
-
getGroupId
- Specified by:
getGroupIdin interfaceProject
-
getArtifactId
- Specified by:
getArtifactIdin interfaceProject
-
getVersion
- Specified by:
getVersionin interfaceProject
-
getArtifact
- Specified by:
getArtifactin interfaceProject
-
getPackaging
- Specified by:
getPackagingin interfaceProject
-
getModel
-
getPomPath
Description 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 interfaceProject- Returns:
- the path of the pom
-
getDependencies
- Specified by:
getDependenciesin interfaceProject
-
getManagedDependencies
- Specified by:
getManagedDependenciesin interfaceProject
-
isExecutionRoot
public boolean isExecutionRoot()- Specified by:
isExecutionRootin interfaceProject
-
isTopProject
public 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 interfaceProject- Returns:
trueif the project is the top level project for this build
-
isRootProject
public 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 interfaceProject- Returns:
trueif the project is the root project- See Also:
-
getRootDirectory
Description 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 interfaceProject- See Also:
-
getParent
-
getRemoteProjectRepositories
- Specified by:
getRemoteProjectRepositoriesin interfaceProject
-
getRemotePluginRepositories
- Specified by:
getRemotePluginRepositoriesin interfaceProject
-