Package de.mirkosertic.bytecoder.maven
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 String
Backend to be used, can be either js,wasm or wasm_llvm.protected String
The build target directory.protected File
protected boolean
Shall debug output be generated?protected String
Prefix of the generated files.protected String
Classname with the main class to be compiled.protected String
Which kind of optimization should be applied? Can be NONE, ALL or EXPERIMENTAL.protected org.apache.maven.project.MavenProject
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
protected boolean
isSupportedScope
(String scope) protected final ClassLoader
private String
printStackTrace
(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, ALL or EXPERIMENTAL. -
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
-