Package org.honton.chas.exists
Class RemoteExistsMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.honton.chas.exists.AbstractExistsMojo
org.honton.chas.exists.RemoteExistsMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo,org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
@Mojo(name="remote",
defaultPhase=VERIFY)
public class RemoteExistsMojo
extends AbstractExistsMojo
implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Set a property if the artifact in the remote repository is same as the just built artifact. The
remote repository is usually defined in the pom's distributionManagement section. Using the
defaults, executing this plugin will prevent the install plugin from reinstalling identical
artifacts to the remote repository. This situation will often occur with a recurring schedule
build job.
- Since:
- 0.0.2
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanvoidcontextualize(org.codehaus.plexus.context.Context context) protected Stringprotected StringgetRemoteChecksum(String uri) protected StringMethods inherited from class org.honton.chas.exists.AbstractExistsMojo
execute, isSnapshotMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
RemoteExistsMojo
public RemoteExistsMojo()
-
-
Method Details
-
contextualize
public void contextualize(org.codehaus.plexus.context.Context context) throws org.codehaus.plexus.context.ContextException - Specified by:
contextualizein interfaceorg.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable- Throws:
org.codehaus.plexus.context.ContextException
-
getPropertyName
- Specified by:
getPropertyNamein classAbstractExistsMojo
-
getRepositoryBase
- Specified by:
getRepositoryBasein classAbstractExistsMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
checkArtifactExists
- Specified by:
checkArtifactExistsin classAbstractExistsMojo- Throws:
Exception
-
getRemoteChecksum
- Specified by:
getRemoteChecksumin classAbstractExistsMojo- Throws:
Exception
-