mn:dockerfile

Full name:

io.micronaut.build:micronaut-maven-plugin:1.1.7:dockerfile

Description:

Generates a Dockerfile depending on the packaging and micronaut.runtime properties, eg:

mvn mn:dockerfile -Dpackaging=docker-native -Dmicronaut.runtime=lambda

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: compile+runtime.
  • Since version: 1.1.

Required Parameters

Name Type Since Description
<mainClass> String 1.1 The main class of the application, as defined in the Exec Maven Plugin.
Default value is: ${exec.mainClass}.

Optional Parameters

Name Type Since Description
<appArguments> List 1.1 List of additional arguments that will be passed to the application.
User property is: mn.appArgs.
<micronautRuntime> String 1.1 The target runtime of the application
Default value is: NONE.
User property is: micronaut.runtime.
<nativeImageBuildArgs> List 1.1 Additional arguments that will be passed to the native-image executable. Note that this will only be used when using a packaging of type docker-native. For native-image packaging you should use the Native Image Maven Plugin configuration options.
User property is: micronaut.native-image.args.
<staticNativeImage> Boolean 1.1 Whether to produce a static native image when using docker-native packaging
Default value is: false.
User property is: micronaut.native-image.static.

Parameter Details

<appArguments>

List of additional arguments that will be passed to the application.
  • Type: java.util.List
  • Since: 1.1
  • Required: No
  • User Property: mn.appArgs

<mainClass>

The main class of the application, as defined in the Exec Maven Plugin.
  • Type: java.lang.String
  • Since: 1.1
  • Required: Yes
  • Default: ${exec.mainClass}

<micronautRuntime>

The target runtime of the application
  • Type: java.lang.String
  • Since: 1.1
  • Required: No
  • User Property: micronaut.runtime
  • Default: NONE

<nativeImageBuildArgs>

Additional arguments that will be passed to the native-image executable. Note that this will only be used when using a packaging of type docker-native. For native-image packaging you should use the Native Image Maven Plugin configuration options.
  • Type: java.util.List
  • Since: 1.1
  • Required: No
  • User Property: micronaut.native-image.args

<staticNativeImage>

Whether to produce a static native image when using docker-native packaging
  • Type: java.lang.Boolean
  • Since: 1.1
  • Required: No
  • User Property: micronaut.native-image.static
  • Default: false