Package org.graalvm.buildtools.maven
Class NativeTestMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.graalvm.buildtools.maven.AbstractNativeMojo
-
- 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 AbstractNativeMojo
-
-
Field Summary
-
Fields inherited from class org.graalvm.buildtools.maven.AbstractNativeMojo
agentResourceDirectory, buildArgs, classesDirectory, classpath, configFiles, debug, defaultClassesDirectory, dryRun, environment, excludeConfig, fallback, imageClasspath, imageName, jvmArgs, logger, mainClass, metadataRepository, metadataRepositoryConfiguration, metadataRepositoryPaths, mojoExecution, NATIVE_IMAGE_DRY_RUN, NATIVE_IMAGE_META_INF, NATIVE_IMAGE_PROPERTIES_FILENAME, outputDirectory, plugin, pluginArtifacts, project, quickBuild, resourcesConfigDirectory, session, sharedLibrary, systemProperties, toolchainManager, useArgFile, verbose
-
-
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.AbstractNativeMojo
addArtifactToClasspath, buildImage, configureMetadataRepository, downloadMetadata, getBuildArgs, getClasspath, getMainBuildPath, getMetadataVersion, isArtifactExcludedFromMetadataRepository, isMetadataRepositoryEnabled, maybeAddDependencyMetadata, maybeAddGeneratedResourcesConfig, maybeAddReachabilityMetadata, populateClasspath, processArtifact, unzipLocalMetadata, warnIfWrongMetaInfLayout
-
-
-
-
Method Detail
-
populateApplicationClasspath
protected void populateApplicationClasspath() throws org.apache.maven.plugin.MojoExecutionException
- Overrides:
populateApplicationClasspath
in classAbstractNativeMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getDependencyScopes
protected java.util.List<java.lang.String> getDependencyScopes()
- Specified by:
getDependencyScopes
in classAbstractNativeMojo
-
addDependenciesToClasspath
protected void addDependenciesToClasspath() throws org.apache.maven.plugin.MojoExecutionException
- Overrides:
addDependenciesToClasspath
in classAbstractNativeMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-