Class CompareMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.plugins.artifact.buildinfo.AbstractBuildinfoMojo
-
- org.apache.maven.plugins.artifact.buildinfo.CompareMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="compare", threadSafe=false) public class CompareMojo extends AbstractBuildinfoMojo
Compare current build output (frompackage
) against reference either previouslyinstall
-ed or downloaded from a remote repository: comparison results go to.buildcompare
file.- Since:
- 3.2.0
-
-
Field Summary
-
Fields inherited from class org.apache.maven.plugins.artifact.buildinfo.AbstractBuildinfoMojo
buildinfoFile, outputTimestamp, project, rtInformation, session
-
-
Constructor Summary
Constructors Constructor Description CompareMojo(org.apache.maven.toolchain.ToolchainManager toolchainManager, org.apache.maven.rtinfo.RuntimeInformation rtInformation, org.apache.maven.project.MavenProject project, org.apache.maven.execution.MavenSession session, org.eclipse.aether.RepositorySystem repoSystem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(Map<org.eclipse.aether.artifact.Artifact,String> artifacts)
protected void
skip(org.apache.maven.project.MavenProject last)
-
Methods inherited from class org.apache.maven.plugins.artifact.buildinfo.AbstractBuildinfoMojo
copyAggregateToRoot, execute, generateBuildinfo, isSkip, newBuildInfoWriter
-
-
-
-
Constructor Detail
-
CompareMojo
@Inject public CompareMojo(org.apache.maven.toolchain.ToolchainManager toolchainManager, org.apache.maven.rtinfo.RuntimeInformation rtInformation, org.apache.maven.project.MavenProject project, org.apache.maven.execution.MavenSession session, org.eclipse.aether.RepositorySystem repoSystem)
-
-
Method Detail
-
execute
public void execute(Map<org.eclipse.aether.artifact.Artifact,String> artifacts) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
skip
protected void skip(org.apache.maven.project.MavenProject last) throws org.apache.maven.plugin.MojoExecutionException
- Overrides:
skip
in classAbstractBuildinfoMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-