public abstract class AbstractPluginRelocator extends org.codehaus.plexus.logging.AbstractLogEnabled implements PluginRelocator
PluginRelocator
interface.ROLE
Constructor and Description |
---|
AbstractPluginRelocator() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ConverterListener listener)
Add a listener for all messages sended by the relocator.
|
void |
addListeners(List listeners)
Add a listeners list for all messages sended by the relocator.
|
abstract String |
getNewArtifactId()
If there is no replacement for this plugin, you can have the plugin
removed from the v4 pom by returning
null from this method
and from getNewGroupId(). |
abstract String |
getNewGroupId()
If there is no replacement for this plugin, you can have the plugin
removed from the v4 pom by returning
null from this method
and from getNewArtifactId(). |
abstract String |
getOldArtifactId()
Note: Because we are working on the recently converted
Maven 2 model, this method must return the artifactId that is in the
model, after the model has been converted.
|
String |
getOldGroupId()
Note: Because we are working on the recently converted
Maven 2 model, this method must return the groupId that is in the model,
after the model has been converted.
|
void |
relocate(org.apache.maven.model.Model v4Model)
Relocate a plugin from one groupId/artifactId to another.
|
public abstract String getNewArtifactId()
null
from this method
and from getNewGroupId().public abstract String getNewGroupId()
null
from this method
and from getNewArtifactId().public abstract String getOldArtifactId()
PomV3ToV4Translator.translateDependencies(java.util.List)
public String getOldGroupId()
PomV3ToV4Translator.translateDependencies(java.util.List)
public void relocate(org.apache.maven.model.Model v4Model)
relocate
in interface PluginRelocator
v4Model
- The model where we look for the pluginpublic void addListener(ConverterListener listener)
PluginRelocator
addListener
in interface PluginRelocator
listener
- The listener that will receive messagespublic void addListeners(List listeners)
PluginRelocator
addListeners
in interface PluginRelocator
listeners
- The listeners list that will receive messagesCopyright © 2002-2012 Apache Software Foundation. All Rights Reserved.