Package org.graalvm.buildtools.maven
Class NativeCompileNoForkMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.graalvm.buildtools.maven.AbstractNativeMojo
-
- org.graalvm.buildtools.maven.AbstractNativeImageMojo
-
- org.graalvm.buildtools.maven.NativeCompileNoForkMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
DeprecatedNativeBuildMojo
,NativeCompileMojo
,WriteArgsFileMojo
@Mojo(name="compile-no-fork", defaultPhase=PACKAGE, requiresDependencyResolution=RUNTIME, requiresDependencyCollection=RUNTIME) public class NativeCompileNoForkMojo extends AbstractNativeImageMojo
This goal runs native builds. It functions the same as the native:compile goal, but it does not fork the build, so it is suitable for attaching to the build lifecycle.
-
-
Field Summary
-
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, mavenSession, metadataRepository, metadataRepositoryConfiguration, metadataRepositoryConfigurations, project, reachabilityMetadataOutputDirectory, repositorySystem
-
-
Constructor Summary
Constructors Constructor Description NativeCompileNoForkMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
protected java.util.List<java.lang.String>
getDependencyScopes()
-
Methods inherited from class org.graalvm.buildtools.maven.AbstractNativeImageMojo
addArtifactToClasspath, addDependenciesToClasspath, buildImage, checkRequiredVersionIfNeeded, getBuildArgs, getClasspath, getMainBuildPath, maybeAddGeneratedResourcesConfig, maybeAddReachabilityMetadata, populateApplicationClasspath, populateClasspath, processArtifact, processSupportedArtifacts, warnIfWrongMetaInfLayout
-
Methods inherited from class org.graalvm.buildtools.maven.AbstractNativeMojo
configureMetadataRepository, downloadMetadata, getMetadataVersion, isArtifactExcludedFromMetadataRepository, isMetadataRepositoryEnabled, maybeAddDependencyMetadata, unzipLocalMetadata
-
-
-
-
Method Detail
-
getDependencyScopes
protected java.util.List<java.lang.String> getDependencyScopes()
- Specified by:
getDependencyScopes
in classAbstractNativeImageMojo
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-