Package org.apache.maven.model
Class Relocation
java.lang.Object
org.apache.maven.model.Relocation
- All Implemented Interfaces:
- Serializable,- Cloneable,- InputLocationTracker
Describes where an artifact has moved to. If any of the values
 are omitted, it is
         assumed to be the same as it was before.
- Version:
- $Revision$ $Date$
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()Method clone.Get the new artifact ID of the artifact.Get the group ID the artifact has moved to.getLocation(Object key) Gets the location of the specified field in the input source.Get an additional message to show the user about the move, such as the reason.Get the new version of the artifact.voidsetArtifactId(String artifactId) Set the new artifact ID of the artifact.voidsetGroupId(String groupId) Set the group ID the artifact has moved to.voidsetLocation(Object key, InputLocation location) Sets the location of the specified field.voidsetMessage(String message) Set an additional message to show the user about the move, such as the reason.voidsetOtherLocation(Object key, InputLocation location) voidsetVersion(String version) Set the new version of the artifact.
- 
Constructor Details- 
Relocationpublic Relocation()
 
- 
- 
Method Details- 
cloneMethod clone.
- 
getArtifactIdGet the new artifact ID of the artifact.- Returns:
- String
 
- 
getGroupIdGet the group ID the artifact has moved to.- Returns:
- String
 
- 
getLocationDescription copied from interface:InputLocationTrackerGets the location of the specified field in the input source.- Specified by:
- getLocationin interface- InputLocationTracker
- Parameters:
- key- a key object.
- Returns:
- InputLocation
 
- 
getMessageGet an additional message to show the user about the move, such as the reason.- Returns:
- String
 
- 
setLocationDescription copied from interface:InputLocationTrackerSets the location of the specified field.- Specified by:
- setLocationin interface- InputLocationTracker
- Parameters:
- key- a key object.
- location- a location object.
 
- 
setOtherLocation- Parameters:
- key- a key object.
- location- a location object.
 
- 
getVersionGet the new version of the artifact.- Returns:
- String
 
- 
setArtifactIdSet the new artifact ID of the artifact.- Parameters:
- artifactId- a artifactId object.
 
- 
setGroupIdSet the group ID the artifact has moved to.- Parameters:
- groupId- a groupId object.
 
- 
setMessageSet an additional message to show the user about the move, such as the reason.- Parameters:
- message- a message object.
 
- 
setVersionSet the new version of the artifact.- Parameters:
- version- a version object.
 
 
-