Package io.quarkus.maven
Class GenerateCodeMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- io.quarkus.maven.QuarkusBootstrapMojo
-
- io.quarkus.maven.GenerateCodeMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
GenerateCodeTestsMojo,PrepareMojo
@Mojo(name="generate-code", defaultPhase=PROCESS_RESOURCES, requiresDependencyResolution=COMPILE_PLUS_RUNTIME, threadSafe=true) public class GenerateCodeMojo extends QuarkusBootstrapMojo
-
-
Field Summary
-
Fields inherited from class io.quarkus.maven.QuarkusBootstrapMojo
bootstrapProvider
-
-
Constructor Summary
Constructors Constructor Description GenerateCodeMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanbeforeExecute()This callback allows to evaluate whether this mojo should be executed, skipped or fail.protected voiddoExecute()Main mojo execution codeprotected io.quarkus.paths.PathCollectiongetParentDirs(java.util.List<java.lang.String> sourceDirs)-
Methods inherited from class io.quarkus.maven.QuarkusBootstrapMojo
appArtifactCoords, baseDir, bootstrapApplication, bootstrapApplication, buildDir, execute, executionId, finalName, forcedDependencies, ignoredEntries, manifestEntries, manifestSections, mavenProject, mavenSession, projectId, properties, remoteRepositories, remoteRepositoryManager, repositorySystem, repositorySystemSession, setLog
-
-
-
-
Method Detail
-
beforeExecute
protected boolean beforeExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionDescription copied from class:QuarkusBootstrapMojoThis callback allows to evaluate whether this mojo should be executed, skipped or fail.- Specified by:
beforeExecutein classQuarkusBootstrapMojo- Returns:
- false if the execution of the mojo should be skipped, true if the mojo should be executed
- Throws:
org.apache.maven.plugin.MojoExecutionException- in case of a failureorg.apache.maven.plugin.MojoFailureException- in case of a failure
-
doExecute
protected void doExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionDescription copied from class:QuarkusBootstrapMojoMain mojo execution code- Specified by:
doExecutein classQuarkusBootstrapMojo- Throws:
org.apache.maven.plugin.MojoExecutionException- in case of a failureorg.apache.maven.plugin.MojoFailureException- in case of a failure
-
getParentDirs
protected io.quarkus.paths.PathCollection getParentDirs(java.util.List<java.lang.String> sourceDirs)
-
-