Package org.honton.chas.exists
Class LocalExistsMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.honton.chas.exists.AbstractExistsMojo
-
- org.honton.chas.exists.LocalExistsMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="local", defaultPhase=VERIFY) public class LocalExistsMojo extends AbstractExistsMojoSet a property if the artifact in the local repository is same as the just built artifact. The local repository is either defined in settings.xml or defaults to ~/.m2/repository. Using the defaults, executing this plugin will prevent the install plugin from reinstalling identical artifacts to the local repository. This situation will often occur with a recurring schedule build job.- Since:
- 0.0.2
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.maven.artifact.repository.ArtifactRepositorylocalRepository
-
Constructor Summary
Constructors Constructor Description LocalExistsMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckArtifactExists(String uri)protected StringgetPropertyName()protected StringgetRemoteChecksum(String uri)protected StringgetRepositoryBase()-
Methods inherited from class org.honton.chas.exists.AbstractExistsMojo
execute, isSnapshot
-
-
-
-
Method Detail
-
getPropertyName
protected String getPropertyName()
- Specified by:
getPropertyNamein classAbstractExistsMojo
-
getRepositoryBase
protected String getRepositoryBase()
- Specified by:
getRepositoryBasein classAbstractExistsMojo
-
checkArtifactExists
protected boolean checkArtifactExists(String uri) throws Exception
- Specified by:
checkArtifactExistsin classAbstractExistsMojo- Throws:
Exception
-
getRemoteChecksum
protected String getRemoteChecksum(String uri) throws Exception
- Specified by:
getRemoteChecksumin classAbstractExistsMojo- Throws:
Exception
-
-