Package org.graalvm.buildtools.maven
Class WriteArgsFileMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.graalvm.buildtools.maven.AbstractNativeMojo
-
- org.graalvm.buildtools.maven.AbstractNativeImageMojo
-
- org.graalvm.buildtools.maven.NativeCompileNoForkMojo
-
- org.graalvm.buildtools.maven.WriteArgsFileMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="write-args-file", requiresDependencyResolution=RUNTIME, requiresDependencyCollection=RUNTIME) public class WriteArgsFileMojo extends NativeCompileNoForkMojo
Persists the arguments file to be used by the native-image command. This can be useful in situations where Native Build Tools plugin is not available, for example, when running native-image in a Docker container. The path to the args file is stored in the project properties under the keygraalvm.native-image.args-file
.- Since:
- 0.9.21
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAME
static java.lang.String
PROPERTY_NAME
-
Fields inherited from class org.graalvm.buildtools.maven.NativeCompileNoForkMojo
AUGMENTED_SBOM_PARAM_NAME
-
Fields inherited from class org.graalvm.buildtools.maven.AbstractNativeImageMojo
agentResourceDirectory, buildArgs, classesDirectory, classpath, configFiles, debug, defaultClassesDirectory, dryRun, environment, excludeConfig, fallback, imageClasspath, imageName, jvmArgs, mainClass, mojoExecution, NATIVE_IMAGE_DRY_RUN, NATIVE_IMAGE_META_INF, NATIVE_IMAGE_PROPERTIES_FILENAME, outputDirectory, plugin, pluginArtifacts, quickBuild, requiredVersion, resourcesConfigDirectory, session, sharedLibrary, systemProperties, toolchainManager, useArgFile, verbose
-
Fields inherited from class org.graalvm.buildtools.maven.AbstractNativeMojo
logger, mavenProject, mavenSession, metadataRepository, metadataRepositoryConfiguration, metadataRepositoryConfigurations, metadataRepositoryInitialBackoffMillis, metadataRepositoryMaxRetries, pluginManager, project, reachabilityMetadataOutputDirectory, repositorySystem
-
-
Constructor Summary
Constructors Constructor Description WriteArgsFileMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
-
Methods inherited from class org.graalvm.buildtools.maven.NativeCompileNoForkMojo
getDependencyScopes
-
Methods inherited from class org.graalvm.buildtools.maven.AbstractNativeImageMojo
addArtifactToClasspath, addDependenciesToClasspath, buildImage, checkRequiredVersionIfNeeded, getBuildArgs, getClasspath, getMainBuildPath, getVersionInformation, isOracleGraalVM, maybeAddGeneratedResourcesConfig, maybeAddReachabilityMetadata, populateApplicationClasspath, populateClasspath, processArtifact, processSupportedArtifacts, warnIfWrongMetaInfLayout
-
Methods inherited from class org.graalvm.buildtools.maven.AbstractNativeMojo
configureMetadataRepository, downloadMetadata, getMetadataVersion, isArtifactExcludedFromMetadataRepository, isMetadataRepositoryEnabled, maybeAddDependencyMetadata, unzipLocalMetadata
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
PROPERTY_NAME
public static final java.lang.String PROPERTY_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
execute
in interfaceorg.apache.maven.plugin.Mojo
- Overrides:
execute
in classNativeCompileNoForkMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-