Package org.honton.chas.exists
Class AbstractExistsMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.honton.chas.exists.AbstractExistsMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
LocalExistsMojo,RemoteExistsMojo
public abstract class AbstractExistsMojo extends org.apache.maven.plugin.AbstractMojoSet a property if the artifact in a local or remote repository is same as the just built artifact.
-
-
Constructor Summary
Constructors Constructor Description AbstractExistsMojo()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract booleancheckArtifactExists(String path)voidexecute()protected abstract StringgetArtifactChecksum(String s)protected abstract StringgetMavenMetadata(String path)protected abstract StringgetPropertyName()protected abstract StringgetVersionedPath(org.apache.maven.artifact.repository.metadata.SnapshotVersion version)protected booleanisSnapshot()
-
-
-
Field Detail
-
gav
protected GAV gav
-
-
Method Detail
-
getArtifactChecksum
protected abstract String getArtifactChecksum(String s) throws Exception
- Throws:
Exception
-
getPropertyName
protected abstract String getPropertyName()
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
isSnapshot
protected boolean isSnapshot()
-
getVersionedPath
protected abstract String getVersionedPath(org.apache.maven.artifact.repository.metadata.SnapshotVersion version)
-
getMavenMetadata
protected abstract String getMavenMetadata(String path) throws Exception
- Throws:
Exception
-
-