Package org.glassfish.build
Class AttachAllArtifactsMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.glassfish.build.AttachAllArtifactsMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="attach-all-artifacts",
requiresOnline=true)
public final class AttachAllArtifactsMojo
extends org.apache.maven.plugin.AbstractMojo
Guess artifacts from target directory and attach them to the project.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate File
The project pom file.private org.apache.maven.project.MavenProject
The maven project.private boolean
Skip this mojo.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
project
@Parameter(defaultValue="${project}", required=true, readonly=true) private org.apache.maven.project.MavenProject projectThe maven project. -
pomFile
@Parameter(property="attach.all.artifacts.pomFile", defaultValue="${project.file}", required=true) private File pomFileThe project pom file. -
skip
@Parameter(property="attach.all.artifacts.skip", defaultValue="false") private boolean skipSkip this mojo.
-
-
Constructor Details
-
AttachAllArtifactsMojo
public AttachAllArtifactsMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-