Fork me on GitHub

mn:aot-analysis

Full name:

io.micronaut.build:micronaut-maven-plugin:3.5.0:aot-analysis

Description:

Invokes the Micronaut AOT optimizer, generating sources/classes and the effective AOT configuration properties file. Refer to the Micronaut AOT documentation for more information.

WARNING: this goal is not intended to be executed directly. Instead, enable AOT with the micronaut.aot.enabled property, eg:

mvn -Dmicronaut.aot.enabled=true package
mvn -Dmicronaut.aot.enabled=true mn:run

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: compile+runtime.
  • The goal is not marked as thread-safe and thus does not support parallel builds.

Required Parameters

Name Type Since Description
<baseDirectory> File - The project's target directory.
Default value is: ${project.build.directory}.
<micronautAotVersion> String - Micronaut AOT version.
User property is: micronaut.aot.version.
<outputDirectory> File - Directory where compiled application classes are.
Default value is: ${project.build.outputDirectory}.
<runtime> String - Micronaut AOT runtime. Possible values: jit, native.
Default value is: jit.
User property is: micronaut.aot.runtime.

Optional Parameters

Name Type Since Description
<aotDependencies> List<Dependency> - (no description)
<configFile> File - Micronaut AOT configuration file. Run the aot-sample-config goal to see all the possible options.
Default value is: aot.properties.
User property is: micronaut.aot.config.
<enabled> boolean - Whether to enable or disable Micronaut AOT.
Default value is: false.
User property is: micronaut.aot.enabled.
<packageName> String - Package name to use for generated sources.
User property is: micronaut.aot.packageName.

Parameter Details

<aotDependencies>

(no description)
  • Type: java.util.List<org.apache.maven.model.Dependency>
  • Required: No

<baseDirectory>

The project's target directory.
  • Type: java.io.File
  • Required: Yes
  • Default: ${project.build.directory}

<configFile>

Micronaut AOT configuration file. Run the aot-sample-config goal to see all the possible options.
  • Type: java.io.File
  • Required: No
  • User Property: micronaut.aot.config
  • Default: aot.properties

<enabled>

Whether to enable or disable Micronaut AOT.
  • Type: boolean
  • Required: No
  • User Property: micronaut.aot.enabled
  • Default: false

<micronautAotVersion>

Micronaut AOT version.
  • Type: java.lang.String
  • Required: Yes
  • User Property: micronaut.aot.version

<outputDirectory>

Directory where compiled application classes are.
  • Type: java.io.File
  • Required: Yes
  • Default: ${project.build.outputDirectory}

<packageName>

Package name to use for generated sources.
  • Type: java.lang.String
  • Required: No
  • User Property: micronaut.aot.packageName

<runtime>

Micronaut AOT runtime. Possible values: jit, native.
  • Type: java.lang.String
  • Required: Yes
  • User Property: micronaut.aot.runtime
  • Default: jit