Package io.micronaut.maven
Class DockerfileMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.micronaut.maven.AbstractMicronautMojo
io.micronaut.maven.AbstractDockerMojo
io.micronaut.maven.DockerfileMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="dockerfile",
requiresDependencyResolution=COMPILE_PLUS_RUNTIME)
@Execute(phase=PROCESS_CLASSES)
public class DockerfileMojo
extends AbstractDockerMojo
Generates a Dockerfile
depending on the packaging
and micronaut.runtime
properties.
mvn mn:dockerfile -Dpackaging=docker-native -Dmicronaut.runtime=lambda
- Since:
- 1.1
- Author:
- Álvaro Sánchez-Mariscal
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static 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, GRAALVM_DOWNLOAD_URL, GRAALVM_FOR_JDK17, 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
ConstructorDescriptionDockerfileMojo
(org.apache.maven.project.MavenProject mavenProject, DockerService dockerService, JibConfigurationService jibConfigurationService, ApplicationConfigurationService applicationConfigurationService, ExecutorService executorService, 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
-
DOCKERFILE
- See Also:
-
DOCKERFILE_AWS_CUSTOM_RUNTIME
- See Also:
-
DOCKERFILE_AWS
- See Also:
-
DOCKERFILE_ORACLE_CLOUD
- See Also:
-
DOCKERFILE_NATIVE
- See Also:
-
DOCKERFILE_CRAC
- See Also:
-
DOCKERFILE_CRAC_CHECKPOINT
- See Also:
-
DOCKERFILE_CRAC_CHECKPOINT_FILE
- See Also:
-
DOCKERFILE_NATIVE_DISTROLESS
- See Also:
-
DOCKERFILE_NATIVE_STATIC
- See Also:
-
DOCKERFILE_NATIVE_ORACLE_CLOUD
- See Also:
-
NATIVE_BUILD_TOOLS_MAVEN_PLUGIN
- See Also:
-
-
Constructor Details
-
DockerfileMojo
@Inject public DockerfileMojo(org.apache.maven.project.MavenProject mavenProject, DockerService dockerService, JibConfigurationService jibConfigurationService, ApplicationConfigurationService applicationConfigurationService, ExecutorService executorService, org.apache.maven.execution.MavenSession mavenSession, org.apache.maven.plugin.MojoExecution mojoExecution)
-
-
Method Details
-
execute
- Throws:
org.apache.maven.plugin.MojoExecutionException
-