mn:docker

Full name:

io.micronaut.build:micronaut-maven-plugin:3.0.1:docker

Description:

Allows using a provided Dockerfile.

WARNING: this goal is not intended to be executed directly. Instead, specify the packaging type using the packaging property, eg:

mvn package -Dpackaging=docker

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.
<baseImageRun> String 1.2 The Docker image used to run the native image
Default value is: frolvlad/alpine-glibc:alpine-3.12.
User property is: micronaut.native-image.base-image-run.
<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

<baseImageRun>

The Docker image used to run the native image
  • Type: java.lang.String
  • Since: 1.2
  • Required: No
  • User Property: micronaut.native-image.base-image-run
  • Default: frolvlad/alpine-glibc:alpine-3.12

<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