public class Parent
extends java.lang.Object
implements java.io.Serializable
<parent>
element contains
informations required to the parent project.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
artifactId
The artifact id of the parent project to inherit from.
|
private java.lang.String |
groupId
The group id of the parent project to inherit from.
|
private java.lang.String |
relativePath
The relative path of the parent
pom.xml file within the check out. |
private java.lang.String |
version
The version of the parent project to inherit.
|
Constructor and Description |
---|
Parent() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getArtifactId()
Get the artifact id of the parent project to inherit from.
|
java.lang.String |
getGroupId()
Get the group id of the parent project to inherit from.
|
java.lang.String |
getId() |
java.lang.String |
getRelativePath()
Get the relative path of the parent
pom.xml
file within the check out. |
java.lang.String |
getVersion()
Get the version of the parent project to inherit.
|
void |
setArtifactId(java.lang.String artifactId)
Set the artifact id of the parent project to inherit from.
|
void |
setGroupId(java.lang.String groupId)
Set the group id of the parent project to inherit from.
|
void |
setRelativePath(java.lang.String relativePath)
Set the relative path of the parent
pom.xml
file within the check out. |
void |
setVersion(java.lang.String version)
Set the version of the parent project to inherit.
|
private java.lang.String artifactId
private java.lang.String groupId
private java.lang.String version
private java.lang.String relativePath
pom.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.public java.lang.String getArtifactId()
public java.lang.String getGroupId()
public java.lang.String getRelativePath()
pom.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.public java.lang.String getVersion()
public void setArtifactId(java.lang.String artifactId)
artifactId
- public void setGroupId(java.lang.String groupId)
groupId
- public void setRelativePath(java.lang.String relativePath)
pom.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.relativePath
- public void setVersion(java.lang.String version)
version
- public java.lang.String getId()
groupId:artifactId:version