Package io.micronaut.maven
Class DockerNativeMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.micronaut.maven.AbstractMicronautMojo
io.micronaut.maven.AbstractDockerMojo
io.micronaut.maven.DockerNativeMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="docker-native",
requiresDependencyResolution=COMPILE_PLUS_RUNTIME)
public class DockerNativeMojo
extends AbstractDockerMojo
Implementation of the docker-native
packaging.
WARNING: this goal is not intended to be executed directly. Instead, specify the packaging type
using the packaging
property, eg:
mvn package -Dpackaging=docker-native
- Since:
- 1.1
- Author:
- Álvaro Sánchez-Mariscal, Iván López
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
Fields inherited from class io.micronaut.maven.AbstractDockerMojo
appArguments, applicationConfigurationService, ARM_ARCH, baseImageRun, DEFAULT_BASE_IMAGE_GRAALVM_RUN, DEFAULT_ORACLE_LINUX_VERSION, dockerService, expressionEvaluator, GDS_DOWNLOAD_URL, jibConfigurationService, LATEST_TAG, mainClass, mavenProject, micronautRuntime, MOSTLY_STATIC_NATIVE_IMAGE_GRAALVM_FLAG, nativeImageBuildArgs, networkMode, ORACLE_CLOUD_FUNCTION_DEFAULT_CMD, oracleLinuxVersion, staticNativeImage, X86_64_ARCH
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
ConstructorDescriptionDockerNativeMojo
(org.apache.maven.project.MavenProject mavenProject, JibConfigurationService jibConfigurationService, ApplicationConfigurationService applicationConfigurationService, DockerService dockerService, org.apache.maven.execution.MavenSession mavenSession, org.apache.maven.plugin.MojoExecution mojoExecution) -
Method Summary
Methods inherited from class io.micronaut.maven.AbstractDockerMojo
copyDependencies, getBaseImage, getCmd, getFrom, getFromImage, getNetworkMode, getPorts, getTags, graalVmArch, graalVmDownloadUrl, graalVmJvmVersion, isArm, javaVersion, oracleCloudFunctionCmd
Methods inherited from class io.micronaut.maven.AbstractMicronautMojo
setLog
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setPluginContext
-
Field Details
-
DOCKER_NATIVE_PACKAGING
- See Also:
-
MICRONAUT_PARENT
- See Also:
-
MICRONAUT_VERSION
- See Also:
-
ARGS_FILE_PROPERTY_NAME
- See Also:
-
-
Constructor Details
-
DockerNativeMojo
@Inject public DockerNativeMojo(org.apache.maven.project.MavenProject mavenProject, JibConfigurationService jibConfigurationService, ApplicationConfigurationService applicationConfigurationService, DockerService dockerService, org.apache.maven.execution.MavenSession mavenSession, org.apache.maven.plugin.MojoExecution mojoExecution)
-
-
Method Details
-
execute
- Throws:
org.apache.maven.plugin.MojoExecutionException
-