public abstract class AbstractDockerMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
appArguments
List of additional arguments that will be passed to the application.
|
protected ApplicationConfigurationService |
applicationConfigurationService |
protected String |
baseImageRun
The Docker image used to run the native image
|
static String |
DEFAULT_BASE_IMAGE_GRAALVM_RUN |
protected DockerService |
dockerService |
protected JibConfigurationService |
jibConfigurationService |
static String |
LATEST_TAG |
protected String |
mainClass
The main class of the application, as defined in the
Exec Maven Plugin.
|
protected org.apache.maven.project.MavenProject |
mavenProject |
protected String |
micronautRuntime
The target runtime of the application
|
static String |
MOSTLY_STATIC_NATIVE_IMAGE_GRAALVM_FLAG |
protected List<String> |
nativeImageBuildArgs
Additional arguments that will be passed to the
native-image executable. |
protected Boolean |
staticNativeImage
Whether to produce a static native image when using
docker-native packaging |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDockerMojo(org.apache.maven.project.MavenProject mavenProject,
JibConfigurationService jibConfigurationService,
ApplicationConfigurationService applicationConfigurationService,
DockerService dockerService) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
copyDependencies() |
protected String |
getCmd() |
protected String |
getFrom() |
protected String |
getGraalVmBuildArgs() |
protected String |
getPort() |
protected Set<String> |
getTags() |
protected String |
graalVmJvmVersion() |
protected String |
graalVmVersion() |
protected org.apache.maven.artifact.versioning.ArtifactVersion |
javaVersion() |
getLog, getPluginContext, setLog, setPluginContextpublic static final String LATEST_TAG
public static final String DEFAULT_BASE_IMAGE_GRAALVM_RUN
public static final String MOSTLY_STATIC_NATIVE_IMAGE_GRAALVM_FLAG
protected final org.apache.maven.project.MavenProject mavenProject
protected final JibConfigurationService jibConfigurationService
protected final ApplicationConfigurationService applicationConfigurationService
protected final DockerService dockerService
@Parameter(property="micronaut.native-image.args") protected List<String> nativeImageBuildArgs
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.@Parameter(property="mn.appArgs") protected List<String> appArguments
@Parameter(defaultValue="${exec.mainClass}",
required=true)
protected String mainClass
@Parameter(defaultValue="false",
property="micronaut.native-image.static")
protected Boolean staticNativeImage
docker-native packaging@Parameter(property="micronaut.runtime",
defaultValue="NONE")
protected String micronautRuntime
@Parameter(property="micronaut.native-image.base-image-run",
defaultValue="frolvlad/alpine-glibc:alpine-3.12")
protected String baseImageRun
protected AbstractDockerMojo(org.apache.maven.project.MavenProject mavenProject,
JibConfigurationService jibConfigurationService,
ApplicationConfigurationService applicationConfigurationService,
DockerService dockerService)
protected org.apache.maven.artifact.versioning.ArtifactVersion javaVersion()
protected String graalVmVersion()
protected String graalVmJvmVersion()
protected String getFrom()
protected String getPort()
protected void copyDependencies()
throws IOException
IOExceptionprotected String getCmd()
protected String getGraalVmBuildArgs()
Copyright © 2020–2022 Micronaut. All rights reserved.