Class BytecoderMavenMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
de.mirkosertic.bytecoder.maven.BytecoderMavenMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="compile",
defaultPhase=PROCESS_CLASSES,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
requiresDependencyCollection=COMPILE_PLUS_RUNTIME)
public class BytecoderMavenMojo
extends org.apache.maven.plugin.AbstractMojo
Plugin to run Bytecoder using Maven.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]List of full qualified class names to be linked beside the statically referenced ones.protected String[]A list of classpath resources to be included into the build.protected StringBackend to be used, can be either js,wasm or wasm_llvm.protected StringThe build target directory.protected Fileprotected booleanShall debug output be generated?protected StringPrefix of the generated files.protected StringClassname with the main class to be compiled.protected StringWhich kind of optimization should be applied? Can be NONE, DEFAULT or ALL.protected org.apache.maven.project.MavenProjectFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()protected booleanisSupportedScope(String scope) protected final ClassLoaderprivate StringprintStackTrace(AnalysisStack analysisStack) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
project
@Parameter(defaultValue="${project}", readonly=true) protected org.apache.maven.project.MavenProject project -
classFiles
-
mainClass
Classname with the main class to be compiled. -
backend
Backend to be used, can be either js,wasm or wasm_llvm. -
buildDirectory
The build target directory. -
debugOutput
@Parameter(required=false, defaultValue="false") protected boolean debugOutputShall debug output be generated? -
optimizationLevel
Which kind of optimization should be applied? Can be NONE, DEFAULT or ALL. -
filenamePrefix
Prefix of the generated files. -
additionalClassesToLink
List of full qualified class names to be linked beside the statically referenced ones. -
additionalResources
A list of classpath resources to be included into the build.
-
-
Constructor Details
-
BytecoderMavenMojo
public BytecoderMavenMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
printStackTrace
-
isSupportedScope
-
prepareClassLoader
protected final ClassLoader prepareClassLoader() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-