Package io.quarkus.maven
Class GenerateCodeTestsMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.quarkus.maven.QuarkusBootstrapMojo
io.quarkus.maven.GenerateCodeMojo
io.quarkus.maven.GenerateCodeTestsMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
PrepareTestsMojo
@Mojo(name="generate-code-tests",
defaultPhase=GENERATE_TEST_SOURCES,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
threadSafe=true)
public class GenerateCodeTestsMojo
extends GenerateCodeMojo
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) booleanA switch that enables or disables serialization of anApplicationModelto a file for tests.Fields inherited from class io.quarkus.maven.GenerateCodeMojo
mode, skipSourceGenerationFields inherited from class io.quarkus.maven.QuarkusBootstrapMojo
BOOTSTRAP_ID_PARAM, bootstrapId, bootstrapProvider, CLOSE_BOOTSTRAPPED_APP_PARAM, closeBootstrappedApp, MODE_PARAM, mojoExecution, NATIVE_PROFILE_NAME, RELOAD_POMS_PARAM, reloadPomsFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidMain mojo execution codeprotected booleanMethods inherited from class io.quarkus.maven.GenerateCodeMojo
beforeExecute, generateCode, getParentDirsMethods inherited from class io.quarkus.maven.QuarkusBootstrapMojo
appArtifactCoords, baseDir, bootstrapApplication, bootstrapApplication, bootstrapApplication, bootstrapId, buildDir, closeApplication, execute, finalName, forcedDependencies, getBuildSystemProperties, getWorkspaceId, ignoredEntries, isNativeProfileEnabled, manifestEntries, manifestSections, mavenProject, mavenSession, projectId, properties, remoteRepositories, remoteRepositoryManager, repositorySystem, repositorySystemSession, setLog, setNativeEnabledIfNativeProfileEnabledMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setPluginContext
-
Field Details
-
serializeTestModel
@Parameter(property="quarkus.generate-code.serialize-test-model", defaultValue="true") boolean serializeTestModelA switch that enables or disables serialization of anApplicationModelto a file for tests. Deserializing an application model when bootstrapping Quarkus tests has a performance advantage in that the tests will not have to initialize a Maven resolver and re-resolve the application model, which may save, depending on a project, ~80-95% of time onApplicationModelresolution.Serialization of the test model is enabled by default.
-
-
Constructor Details
-
GenerateCodeTestsMojo
public GenerateCodeTestsMojo()
-
-
Method Details
-
doExecute
protected void doExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionDescription copied from class:QuarkusBootstrapMojoMain mojo execution code- Overrides:
doExecutein classGenerateCodeMojo- Throws:
org.apache.maven.plugin.MojoExecutionException- in case of a failureorg.apache.maven.plugin.MojoFailureException- in case of a failure
-
isSerializeTestModel
protected boolean isSerializeTestModel()- Overrides:
isSerializeTestModelin classGenerateCodeMojo
-