Package org.graalvm.buildtools.maven
Class NativeTestMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.graalvm.buildtools.maven.AbstractNativeMojo
-
- org.graalvm.buildtools.maven.AbstractNativeImageMojo
-
- org.graalvm.buildtools.maven.NativeTestMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="test", defaultPhase=TEST, threadSafe=true, requiresDependencyResolution=TEST, requiresDependencyCollection=TEST) public class NativeTestMojo extends AbstractNativeImageMojo
This goal builds and runs native tests.
-
-
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, mavenProject, mavenSession, metadataRepository, metadataRepositoryConfiguration, metadataRepositoryConfigurations, metadataRepositoryInitialBackoffMillis, metadataRepositoryMaxRetries, pluginManager, project, reachabilityMetadataOutputDirectory, repositorySystem
-
-
Constructor Summary
Constructors Constructor Description NativeTestMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addDependenciesToClasspath()
void
execute()
protected java.util.List<java.lang.String>
getDependencyScopes()
protected void
populateApplicationClasspath()
-
Methods inherited from class org.graalvm.buildtools.maven.AbstractNativeImageMojo
addArtifactToClasspath, buildImage, checkRequiredVersionIfNeeded, getBuildArgs, getClasspath, getMainBuildPath, getVersionInformation, isOracleGraalVM, maybeAddGeneratedResourcesConfig, maybeAddReachabilityMetadata, populateClasspath, processArtifact, processSupportedArtifacts, warnIfWrongMetaInfLayout
-
Methods inherited from class org.graalvm.buildtools.maven.AbstractNativeMojo
configureMetadataRepository, downloadMetadata, getMetadataVersion, isArtifactExcludedFromMetadataRepository, isMetadataRepositoryEnabled, maybeAddDependencyMetadata, unzipLocalMetadata
-
-
-
-
Method Detail
-
populateApplicationClasspath
protected void populateApplicationClasspath() throws org.apache.maven.plugin.MojoExecutionException
- Overrides:
populateApplicationClasspath
in classAbstractNativeImageMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getDependencyScopes
protected java.util.List<java.lang.String> getDependencyScopes()
- Specified by:
getDependencyScopes
in classAbstractNativeImageMojo
-
addDependenciesToClasspath
protected void addDependenciesToClasspath() throws org.apache.maven.plugin.MojoExecutionException
- Overrides:
addDependenciesToClasspath
in classAbstractNativeImageMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-