Package org.jboss.jandex.maven
Class JandexJarGoal
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.jboss.jandex.maven.JandexJarGoal
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="jandex-jar",
threadSafe=true)
public class JandexJarGoal
extends org.apache.maven.plugin.AbstractMojo
Generate a Jandex index inside a given JAR.
-
Field Summary
FieldsModifier and TypeFieldDescriptionNames or glob patterns of files in the JAR that should not be indexed.Names or glob patterns of files in the JAR that should be indexed.private StringPath to the index inside the JAR.private IntegerPersistent index format version to write.private FileThe JAR that should be indexed and inside which the index should be stored.private booleanSkip execution if set.private booleanprivate booleanPrint verbose output (debug output without needing to enable -X for the whole build).Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidcopy(InputStream in, OutputStream out) private PathcreateTempFile(String suffix) voidexecute()private IndexindexJar()private booleanMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
jar
The JAR that should be indexed and inside which the index should be stored. -
indexName
Path to the index inside the JAR. Defaults toMETA-INF/jandex.idx. -
indexVersion
Persistent index format version to write. Defaults to max supported version. -
includes
Names or glob patterns of files in the JAR that should be indexed. -
excludes
Names or glob patterns of files in the JAR that should not be indexed. Excludes have priority over includes. -
useDefaultExcludes
@Parameter(defaultValue="true") private boolean useDefaultExcludes -
verbose
@Parameter(defaultValue="false") private boolean verbosePrint verbose output (debug output without needing to enable -X for the whole build). -
skip
@Parameter(property="jandex.skip", defaultValue="false") private boolean skipSkip execution if set.
-
-
Constructor Details
-
JandexJarGoal
public JandexJarGoal()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
indexJar
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
createTempFile
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
copy
- Throws:
IOException
-
isVerbose
private boolean isVerbose()
-