|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.model.converter.relocators.AbstractPluginRelocator
public abstract class AbstractPluginRelocator
A general implementation of the PluginRelocator
interface.
Field Summary | |
---|---|
private java.util.List |
listeners
|
Fields inherited from interface org.apache.maven.model.converter.relocators.PluginRelocator |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractPluginRelocator()
|
Method Summary | |
---|---|
void |
addListener(ConverterListener listener)
Add a listener for all messages sended by the relocator. |
void |
addListeners(java.util.List listeners)
Add a listeners list for all messages sended by the relocator. |
private void |
fireRelocatePluginEvent(java.lang.String oldGroupId,
java.lang.String oldArtifactId,
java.lang.String newGroupId,
java.lang.String newArtifactId)
|
private void |
fireRelocateReportEvent(java.lang.String oldGroupId,
java.lang.String oldArtifactId,
java.lang.String newGroupId,
java.lang.String newArtifactId)
|
private void |
fireRemovePluginEvent(java.lang.String groupId,
java.lang.String artifactId)
|
private void |
fireRemoveReportEvent(java.lang.String groupId,
java.lang.String artifactId)
|
abstract java.lang.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 java.lang.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 java.lang.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. |
java.lang.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. |
private void |
sendInfoMessage(java.lang.String message)
|
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.List listeners
Constructor Detail |
---|
public AbstractPluginRelocator()
Method Detail |
---|
public abstract java.lang.String getNewArtifactId()
null
from this method
and from getNewGroupId().
public abstract java.lang.String getNewGroupId()
null
from this method
and from getNewArtifactId().
public abstract java.lang.String getOldArtifactId()
PomV3ToV4Translator.translateDependencies(java.util.List)
public java.lang.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(java.util.List listeners)
PluginRelocator
addListeners
in interface PluginRelocator
listeners
- The listeners list that will receive messagesprivate void sendInfoMessage(java.lang.String message)
private void fireRelocatePluginEvent(java.lang.String oldGroupId, java.lang.String oldArtifactId, java.lang.String newGroupId, java.lang.String newArtifactId)
private void fireRelocateReportEvent(java.lang.String oldGroupId, java.lang.String oldArtifactId, java.lang.String newGroupId, java.lang.String newArtifactId)
private void fireRemovePluginEvent(java.lang.String groupId, java.lang.String artifactId)
private void fireRemoveReportEvent(java.lang.String groupId, java.lang.String artifactId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |