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 AbstractExistsMojo
Set 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
Modifier and Type Method Description protected booleancheckArtifactExists(String uri)protected StringgetPropertyName()protected StringgetRemoteChecksum(String uri)protected StringgetRepositoryBase()
-
Field Details
-
localRepository
@Parameter(property="localRepository", required=true, readonly=true) protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
-
-
Constructor Details
-
LocalExistsMojo
public LocalExistsMojo()
-
-
Method Details
-
getPropertyName
- Specified by:
getPropertyNamein classAbstractExistsMojo
-
getRepositoryBase
- Specified by:
getRepositoryBasein classAbstractExistsMojo
-
checkArtifactExists
- Specified by:
checkArtifactExistsin classAbstractExistsMojo- Throws:
Exception
-
getRemoteChecksum
- Specified by:
getRemoteChecksumin classAbstractExistsMojo- Throws:
Exception
-