@Mojo(name="generateApplicationConstants",
defaultPhase=GENERATE_SOURCES,
requiresDependencyResolution=COMPILE,
requiresProject=true)
public class GenerateApplicationConstantsMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected org.sonatype.plexus.build.incremental.BuildContext |
buildContext |
protected File |
filePath
the path to the source file
|
protected File |
outfolder
the output-folder for the generated class
|
protected boolean |
skip
skips the execution
|
protected String |
targetClass
the fully qualified name of the target class to generate
|
Constructor and Description |
---|
GenerateApplicationConstantsMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
createConstantClass() |
void |
execute() |
protected String[] |
getArgs() |
protected String |
getMessage() |
protected boolean |
needsToBeExecuted() |
@Parameter(property="targetClass", required=true) protected String targetClass
@Parameter(property="filePath", required=true) protected File filePath
@Parameter(property="outFolder", defaultValue="target/generated-sources/constants", required=false) protected File outfolder
@Parameter(property="skip", defaultValue="false", required=false) protected boolean skip
@Component protected org.sonatype.plexus.build.incremental.BuildContext buildContext
protected void createConstantClass() throws IOException, JAXBException
IOException
JAXBException
protected String getMessage()
protected String[] getArgs()
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected boolean needsToBeExecuted()
Copyright © 2011–2023 aiticon GmbH. All rights reserved.