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.String
businessArtifactId
protected java.lang.String
businessGroupId
protected java.io.File
outputDirectoryBuild
protected org.apache.maven.project.MavenProject
project
protected java.lang.String
projectArtifactId
ArtifactId of the generated project If not set businessArtifactId appended by "-jpacktool" is being used.protected java.lang.String
projectGroupId
GroupId of the generated project. -
Constructor Summary
Constructors Constructor Description InvokePomMojo()
-
Method Summary
Modifier and Type Method Description void
execute()
-
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.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-