Class InvokePomMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
net.agilhard.maven.plugins.jpacktool.mojo.InvokePomMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="jpacktool-invoke-pom",
requiresDependencyResolution=NONE,
defaultPhase=PACKAGE,
requiresProject=true)
public class InvokePomMojo
extends org.apache.maven.plugin.AbstractMojo
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringbusinessArtifactIdprotected java.lang.StringbusinessGroupIdprotected java.io.FileoutputDirectoryBuildprotected org.apache.maven.project.MavenProjectprojectprotected java.lang.StringprojectArtifactIdArtifactId of the generated project If not set businessArtifactId appended by "-jpacktool" is being used.protected java.lang.StringprojectGroupIdGroupId of the generated project. -
Constructor Summary
Constructors Constructor Description InvokePomMojo() -
Method Summary
Modifier and Type Method Description voidexecute()
-
Field Details
-
outputDirectoryBuild
@Parameter(defaultValue="${project.build.directory}/jpacktool/build", required=true, readonly=true) protected java.io.File outputDirectoryBuild -
projectGroupId
@Parameter(required=false, readonly=false) protected java.lang.String projectGroupIdGroupId of the generated project. If not set the businessGroupId is being used. -
projectArtifactId
@Parameter(required=false, readonly=false) protected java.lang.String projectArtifactIdArtifactId of the generated project If not set businessArtifactId appended by "-jpacktool" is being used. -
businessGroupId
@Parameter(required=true, readonly=false) protected java.lang.String businessGroupId -
businessArtifactId
@Parameter(required=true, readonly=false) protected java.lang.String businessArtifactId -
project
@Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject project
-
-
Constructor Details
-
InvokePomMojo
public InvokePomMojo()
-
-
Method Details
-
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
-