Fork me on GitHub

mn:aot-analysis

Full name:

io.micronaut.maven:micronaut-maven-plugin:4.5.3: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.
  • Since version: 4.0.0.

Required Parameters

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

Optional Parameters

Name Type Since Description
<aotDependencies> List<Dependency> - No description.
<aotJvmArgs> List<String> 4.0.2 Additional JVM arguments to pass to the AOT compiler (eg: --enable-preview).
User Property: micronaut.aot.jvmArgs
<configFile> File - Micronaut AOT configuration file. Run the aot-sample-config goal to see all the possible options.
Default: aot.properties
User Property: micronaut.aot.config
<enabled> boolean - Whether to enable or disable Micronaut AOT.
Default: false
User Property: micronaut.aot.enabled
<packageName> String - Package name to use for generated sources.
User Property: micronaut.aot.packageName

Parameter Details

<aotDependencies>

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

<aotJvmArgs>

Additional JVM arguments to pass to the AOT compiler (eg: --enable-preview).
  • Type: java.util.List<java.lang.String>
  • Since: 4.0.2
  • Required: No
  • User Property: micronaut.aot.jvmArgs

<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