Class DevMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
RemoteDevMojo,TestMojo
You can use this dev mode in a remote container environment with remote-dev.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) BuildAnalyticsProviderprotected QuarkusBootstrapProvider(package private) io.quarkus.deployment.dev.ExtensionDevModeJvmOptionFilterExtension dev mode JVM option filter configuration.(package private) org.apache.maven.plugin.MojoExecutionprotected org.apache.maven.project.MavenProjectA comma-separated list of Maven plugin keys ingroupId:artifactIdformat (for exampleorg.codehaus.mojo:flatten-maven-pluginand/or goal prefixes, (for exampleflatten) that should be skipped whenquarkus:devidentifies Maven plugin goals that should be executed before the application is launched in dev mode.(package private) StringSelects given test(s) for continuous testing.(package private) boolean(package private) QuarkusWorkspaceProviderFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()protected io.quarkus.runtime.LaunchModeIndicates for which launch mode the dependencies should be resolved.protected voidmodifyDevModeContext(io.quarkus.deployment.dev.DevModeCommandLineBuilder builder) voidsetLog(org.apache.maven.plugin.logging.Log log) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setPluginContext
-
Field Details
-
project
@Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject project -
workspaceProvider
-
warnIfBuildGoalMissing
@Parameter(property="quarkus.warnIfBuildGoalMissing") boolean warnIfBuildGoalMissing -
bootstrapProvider
-
mojoExecution
@Parameter(defaultValue="${mojoExecution}", readonly=true, required=true) org.apache.maven.plugin.MojoExecution mojoExecution -
analyticsProvider
-
skipPlugins
A comma-separated list of Maven plugin keys ingroupId:artifactIdformat (for exampleorg.codehaus.mojo:flatten-maven-pluginand/or goal prefixes, (for exampleflatten) that should be skipped whenquarkus:devidentifies Maven plugin goals that should be executed before the application is launched in dev mode.Only the
flattenMaven plugin is skipped by default. -
extensionJvmOptions
@Parameter io.quarkus.deployment.dev.ExtensionDevModeJvmOptionFilter extensionJvmOptionsExtension dev mode JVM option filter configuration.Allows disabling all JVM options configured by extensions, for example
or specifying a<extensionJvmOptions> <!-- disable JVM options from all the extensions --> <disableAll>true</disableAll> </extensionJvmOptions>*groupId:artifactId:classifierartifact pattern to disable options provided by the matching subset of extensions, for example<extensionJvmOptions> <disableFor> <!-- disable JVM options from all the extensions with groupId org.acme --> <extension>org.acme</extension> <!-- disable JVM options configured by io.quarkiverse:quarkus-magic --> <extension>io.quarkiverse:quarkus-magic</extension> </disableFor> </extensionJvmOptions> -
test
Selects given test(s) for continuous testing. This is an alternative toquarkus.test.include-patternandquarkus.test.exclude-pattern; if set, thequarkus.test.[include|exclude]-patternconfiguration is ignored.The format of this configuration property is the same as the Maven Surefire
-Dtest=...format. Specifically: it is a comma (,) separated list of globs of class file paths and/or method names. Each glob can potentially be prefixed with an exclamation mark (!), which makes it an exclusion filter instead of an inclusion filter. Exclusions have higher priority than inclusions. The class file path glob is separated from the method name glob by the hash sign (#) and multiple method name globs may be present, separated by the plus sign (+).For example:
Basic*: all classes starting withBasic???Test: all classes named with 3 arbitrary characters followed byTest!Unstable*: all classes except classes starting withUnstablepkg/**/Ci*leTest: all classes in the packagepkgand subpackages, starting withCiand ending withleTest*Test#test*One+testTwo?????: all classes ending withTest, and in them, only methods starting withtestand ending withOne, or starting withtestTwoand followed by 5 arbitrary characters#fast*+slowTest: all classes, and in them, only methods starting withfastor methods namedslowTest
%regex[...]and%ant[...]is NOT supported.
-
-
Constructor Details
-
DevMojo
public DevMojo()
-
-
Method Details
-
getLaunchModeClasspath
protected io.quarkus.runtime.LaunchMode getLaunchModeClasspath()Indicates for which launch mode the dependencies should be resolved.- Returns:
- launch mode for which the dependencies should be resolved
-
setLog
public void setLog(org.apache.maven.plugin.logging.Log log) - Specified by:
setLogin interfaceorg.apache.maven.plugin.Mojo- Overrides:
setLogin classorg.apache.maven.plugin.AbstractMojo
-
execute
public void execute() throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionException
-
modifyDevModeContext
protected void modifyDevModeContext(io.quarkus.deployment.dev.DevModeCommandLineBuilder builder)
-