Package org.apache.maven.model
Class Parent
java.lang.Object
org.apache.maven.model.Parent
- All Implemented Interfaces:
Serializable
The
<parent>
element contains
informations required to the parent project.- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
The artifact id of the parent project to inherit from.private String
The group id of the parent project to inherit from.private String
The relative path of the parentpom.xml
file within the check out.private String
The version of the parent project to inherit. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the artifact id of the parent project to inherit from.Get the group id of the parent project to inherit from.getId()
Get the relative path of the parentpom.xml
file within the check out.Get the version of the parent project to inherit.void
setArtifactId
(String artifactId) Set the artifact id of the parent project to inherit from.void
setGroupId
(String groupId) Set the group id of the parent project to inherit from.void
setRelativePath
(String relativePath) Set the relative path of the parentpom.xml
file within the check out.void
setVersion
(String version) Set the version of the parent project to inherit.
-
Field Details
-
artifactId
The artifact id of the parent project to inherit from. -
groupId
The group id of the parent project to inherit from. -
version
The version of the parent project to inherit. -
relativePath
The relative path of the parentpom.xml
file within the check out. The default value is../pom.xml
. Maven looks for the parent pom first in the reactor of currently building projects, then in this location on the filesystem, then the local repository, and lastly in the remote repo.relativePath
allows you to select a different location, for example when your structure is flat, or deeper without an intermediate parent pom. However, the group ID, artifact ID and version are still required, and must match the file in the location given or it will revert to the repository for the POM. This feature is only for enhancing the development in a local checkout of that project.
-
-
Constructor Details
-
Parent
public Parent()
-
-
Method Details
-
getArtifactId
Get the artifact id of the parent project to inherit from.- Returns:
- String
-
getGroupId
Get the group id of the parent project to inherit from.- Returns:
- String
-
getRelativePath
Get the relative path of the parentpom.xml
file within the check out. The default value is../pom.xml
. Maven looks for the parent pom first in the reactor of currently building projects, then in this location on the filesystem, then the local repository, and lastly in the remote repo.relativePath
allows you to select a different location, for example when your structure is flat, or deeper without an intermediate parent pom. However, the group ID, artifact ID and version are still required, and must match the file in the location given or it will revert to the repository for the POM. This feature is only for enhancing the development in a local checkout of that project.- Returns:
- String
-
getVersion
Get the version of the parent project to inherit.- Returns:
- String
-
setArtifactId
Set the artifact id of the parent project to inherit from.- Parameters:
artifactId
-
-
setGroupId
Set the group id of the parent project to inherit from.- Parameters:
groupId
-
-
setRelativePath
Set the relative path of the parentpom.xml
file within the check out. The default value is../pom.xml
. Maven looks for the parent pom first in the reactor of currently building projects, then in this location on the filesystem, then the local repository, and lastly in the remote repo.relativePath
allows you to select a different location, for example when your structure is flat, or deeper without an intermediate parent pom. However, the group ID, artifact ID and version are still required, and must match the file in the location given or it will revert to the repository for the POM. This feature is only for enhancing the development in a local checkout of that project.- Parameters:
relativePath
-
-
setVersion
Set the version of the parent project to inherit.- Parameters:
version
-
-
getId
- Returns:
- the id as
groupId:artifactId:version
-