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
Writes the
native-image arguments for this project to an args file that can be reused outside Maven.
§FS-maven-goal-surface.3, §FS-maven-native-image-builds.7, §FS-maven-resources-and-metadata.2.
The path to the args file is stored in the project properties under the key graalvm.native-image.args-file.- Since:
- 0.9.21
-
Field Summary
FieldsFields inherited from class org.graalvm.buildtools.maven.NativeCompileNoForkMojo
SKIP_BASE_SBOM_PARAM_NAMEFields inherited from class org.graalvm.buildtools.maven.AbstractNativeImageMojo
agentResourceDirectory, buildArgs, classesDirectory, classpath, configFiles, debug, defaultClassesDirectory, dryRun, enforceToolchain, environment, excludeConfig, exclusions, fallback, imageClasspath, imageName, jvmArgs, mainClass, mojoExecution, NATIVE_IMAGE_DRY_RUN, NATIVE_IMAGE_META_INF, NATIVE_IMAGE_PROPERTIES_FILENAME, outputDirectory, plugin, pluginArtifacts, quickBuild, requiredVersion, resourcesConfigDirectory, runtimeArgs, session, sharedLibrary, systemProperties, toolchainManager, useArgFile, verboseFields inherited from class org.graalvm.buildtools.maven.AbstractNativeMojo
logger, mavenProject, mavenSession, metadataRepository, metadataRepositoryConfiguration, metadataRepositoryConfigurations, metadataRepositoryInitialBackoffMillis, metadataRepositoryMaxRetries, pluginManager, project, reachabilityMetadataOutputDirectory, repositorySystemFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.graalvm.buildtools.maven.NativeCompileNoForkMojo
getDependencyScopesMethods inherited from class org.graalvm.buildtools.maven.AbstractNativeImageMojo
addArtifactToClasspath, addDependenciesToClasspath, addInferredDependenciesToClasspath, buildImage, checkRequiredVersionIfNeeded, getBuildArgs, getClasspath, getMainBuildPath, getVersionInformation, isExcluded, isOracleGraalVM, maybeAddDependencyMetadata, maybeAddDynamicAccessMetadataToClasspath, maybeAddGeneratedResourcesConfig, maybeAddReachabilityMetadata, populateApplicationClasspath, populateClasspath, processArtifact, processSupportedArtifacts, warnIfWrongMetaInfLayoutMethods inherited from class org.graalvm.buildtools.maven.AbstractNativeMojo
configureMetadataRepository, describeMetadataRepositoryLocation, downloadMetadata, getMetadataVersion, isArtifactExcludedFromMetadataRepository, isMetadataRepositoryEnabled, resolveDefaultMetadataRepositoryUrl, unzipLocalMetadataMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
NAME
- See Also:
-
PROPERTY_NAME
- See Also:
-
-
Constructor Details
-
WriteArgsFileMojo
public WriteArgsFileMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Overrides:
executein classNativeCompileNoForkMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-