Class ValidateDevConfigurationMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.micronaut.maven.AbstractMicronautMojo
io.micronaut.maven.jsonschema.ValidateDevConfigurationMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="validate-dev-configuration",
requiresDependencyResolution=COMPILE_PLUS_RUNTIME)
public class ValidateDevConfigurationMojo
extends AbstractMicronautMojo
Validates Micronaut configuration for the "dev" environment.
This mojo is automatically executed by mn:run.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CompilerServicestatic final Stringprotected final org.apache.maven.project.MavenProjectFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
ConstructorsConstructorDescriptionValidateDevConfigurationMojo(org.apache.maven.project.MavenProject project, CompilerService compilerService) -
Method Summary
Modifier and TypeMethodDescriptiondefaultClasspath(org.apache.maven.project.MavenProject project) Default resource directories for origin rewriting.protected String[]final voidexecute()protected StringMethods inherited from class AbstractMicronautMojo
setLogMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setPluginContext
-
Field Details
-
MOJO_NAME
-
project
protected final org.apache.maven.project.MavenProject project -
compilerService
-
-
Constructor Details
-
ValidateDevConfigurationMojo
@Inject public ValidateDevConfigurationMojo(org.apache.maven.project.MavenProject project, CompilerService compilerService)
-
-
Method Details
-
scenarioName
-
validationSet
-
defaultEnvironments
-
defaultClasspath
-
dependencyScopes
-
defaultResourceDirectories
Default resource directories for origin rewriting.- Returns:
- Resource directories (typically relative to the project base directory)
-
execute
public final void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-