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, threadSafe=true) public class RemoteExistsMojo extends AbstractExistsMojo implements org.codehaus.plexus.personality.plexus.lifecycle.phase.ContextualizableSet 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 class org.honton.chas.exists.AbstractExistsMojo
gav
-
-
Constructor Summary
Constructors Constructor Description RemoteExistsMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckArtifactExists(String path)voidcontextualize(org.codehaus.plexus.context.Context context)protected StringgetArtifactChecksum(String path)protected StringgetMavenMetadata(String path)protected StringgetPropertyName()protected StringgetVersionedPath(org.apache.maven.artifact.repository.metadata.SnapshotVersion version)-
Methods inherited from class org.honton.chas.exists.AbstractExistsMojo
execute, isSnapshot
-
-
-
-
Method Detail
-
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
protected String getPropertyName()
- Specified by:
getPropertyNamein classAbstractExistsMojo
-
getVersionedPath
protected String getVersionedPath(org.apache.maven.artifact.repository.metadata.SnapshotVersion version)
- Specified by:
getVersionedPathin classAbstractExistsMojo
-
getMavenMetadata
protected String getMavenMetadata(String path) throws Exception
- Specified by:
getMavenMetadatain classAbstractExistsMojo- Throws:
Exception
-
checkArtifactExists
protected boolean checkArtifactExists(String path) throws Exception
- Specified by:
checkArtifactExistsin classAbstractExistsMojo- Throws:
Exception
-
getArtifactChecksum
protected String getArtifactChecksum(String path) throws Exception
- Specified by:
getArtifactChecksumin classAbstractExistsMojo- Throws:
Exception
-
-