|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.apache.servicemix.maven.plugin.checksum.ChecksumValidatorMojo
public class ChecksumValidatorMojo
Validates the checksums of the dependencies of the project against the checksums.txt file. This plugin can also be used to add all the checksums of the dependencies of the current build to the checksum.txt file.
| Field Summary | |
|---|---|
protected org.apache.maven.artifact.factory.ArtifactFactory |
artifactFactory
Artifact factory, needed to download source jars for inclusion in classpath. |
protected org.apache.maven.artifact.resolver.ArtifactResolver |
artifactResolver
Artifact resolver, needed to download source jars for inclusion in classpath. |
protected java.io.File |
checksums
The file that holds dependency checksums. |
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
Local maven repository. |
protected org.apache.maven.project.MavenProject |
project
The maven project. |
protected java.util.List |
remoteArtifactRepositories
Remote repositories which will be searched for source attachments. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
ChecksumValidatorMojo()
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
checksum(java.io.File file)
|
void |
execute()
|
void |
generate()
|
protected org.apache.maven.artifact.Artifact |
getPomArtifact(org.apache.maven.artifact.Artifact artifact)
|
protected java.lang.String |
key(org.apache.maven.artifact.Artifact pom)
|
protected java.lang.String |
keyAnyVersion(org.apache.maven.artifact.Artifact pom)
|
protected java.util.LinkedHashMap |
loadChecksums()
|
protected java.io.File |
resolve(org.apache.maven.artifact.Artifact artifact)
|
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.apache.maven.project.MavenProject project
protected java.util.List remoteArtifactRepositories
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
protected org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver
protected java.io.File checksums
| Constructor Detail |
|---|
public ChecksumValidatorMojo()
| Method Detail |
|---|
protected java.lang.String key(org.apache.maven.artifact.Artifact pom)
protected java.lang.String keyAnyVersion(org.apache.maven.artifact.Artifact pom)
protected org.apache.maven.artifact.Artifact getPomArtifact(org.apache.maven.artifact.Artifact artifact)
protected java.io.File resolve(org.apache.maven.artifact.Artifact artifact)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected java.lang.String checksum(java.io.File file)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void generate()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected java.util.LinkedHashMap loadChecksums()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||