Package com.dslplatform.mojo
Class GenerateCodeMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.dslplatform.mojo.GenerateCodeMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="generate-code")
public class GenerateCodeMojo
extends org.apache.maven.plugin.AbstractMojo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate final MojoContextprivate Stringprivate Stringstatic final Stringprivate Stringprivate String[]private Stringprivate org.apache.maven.project.MavenProjectprivate static final Stringprivate Stringprivate StringFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcopyGeneratedSources(MojoContext context, com.dslplatform.compiler.client.parameters.Targets.Option parsedTarget) voidexecute()getDsl()String[]org.apache.maven.project.MavenProjectprivate voidregisterServices(MojoContext context) voidsetCompiler(String value) voidvoidsetGeneratedSources(String value) voidsetNamespace(String value) voidsetOptions(String[] value) voidsetPlugins(String value) voidsetProject(org.apache.maven.project.MavenProject project) voidsetServicesManifest(String value) voidMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
GOAL
- See Also:
-
SERVICES_FILE
- See Also:
-
context
-
project
@Component private org.apache.maven.project.MavenProject project -
compiler
-
generatedSources
@Parameter(property="generatedSources", defaultValue="target/generated-sources") private String generatedSources -
servicesManifest
@Parameter(property="servicesManifest", defaultValue="target/classes/META-INF/services") private String servicesManifest -
target
-
dsl
-
namespace
-
options
-
plugins
-
-
Constructor Details
-
GenerateCodeMojo
public GenerateCodeMojo()
-
-
Method Details
-
getProject
public org.apache.maven.project.MavenProject getProject() -
setProject
public void setProject(org.apache.maven.project.MavenProject project) -
setCompiler
-
getCompiler
-
setGeneratedSources
-
getGeneratedSources
-
setServicesManifest
-
getServicesManifest
-
setTarget
-
getTarget
-
setDsl
-
getDsl
-
setNamespace
-
getNamespace
-
setOptions
-
getOptions
-
setPlugins
-
getPlugins
-
getContext
-
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
-
registerServices
private void registerServices(MojoContext context) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
copyGeneratedSources
private void copyGeneratedSources(MojoContext context, com.dslplatform.compiler.client.parameters.Targets.Option parsedTarget) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-