Class CommandLineMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.glassfish.spec.maven.CommandLineMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="cli",
requiresProject=true,
defaultPhase=VALIDATE)
public final class CommandLineMojo
extends org.apache.maven.plugin.AbstractMojo
Maven Goal to run spec verifications from the command line.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringPath to the API jar file.private StringAPI package.private static ConsoleThe system console.private booleanShow the usage.private StringImplementation build.private StringPath to the Impl jar file.private StringImplementation namespace.private StringImplementation version.private booleanIs it a final specification?.private StringIs it an API jar?.private StringNew implementation version.private StringNew spec version.private FileProperty file.private StringSpec build.private StringSpec implementation version.private StringMode.private StringSpec version.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()private static voidPrint error and exit.private static voidprintParam(String arg, String desc) Print a given parameter to the standard output.private static StringPrompt with the string and return the user's input.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
isFinal
@Parameter(property="isFinal", defaultValue="false") private boolean isFinalIs it a final specification?. -
jarType
Is it an API jar?. -
apiJar
Path to the API jar file. -
implJar
Path to the Impl jar file. -
implNamespace
Implementation namespace. -
specMode
Mode. Allowed values are "javaee", "jakarta" -
apiPackage
API package. -
specVersion
Spec version. -
specImplVersion
Spec implementation version. -
implVersion
Implementation version. -
newImplVersion
New implementation version. -
newSpecVersion
New spec version. -
specBuild
Spec build. -
implBuild
Implementation build. -
properties
Property file. -
help
@Parameter(property="help", defaultValue="true") private boolean helpShow the usage. -
cons
The system console.
-
-
Constructor Details
-
CommandLineMojo
public CommandLineMojo()
-
-
Method Details
-
prompt
-
fail
-
printParam
-
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
-