@Mojo(name="slim-jar")
public class SlimJarMojo
extends org.apache.maven.plugin.AbstractMojo
| Constructor and Description |
|---|
SlimJarMojo() |
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
createArchive()
Generates the JAR.
|
void |
execute()
Generates the JAR.
|
protected java.io.File |
getJarFile(java.io.File basedir,
java.lang.String resultFinalName,
java.lang.String classifier)
Returns the Jar file to generate, based on an optional classifier.
|
protected java.io.File getJarFile(java.io.File basedir,
java.lang.String resultFinalName,
java.lang.String classifier)
basedir - the output directoryresultFinalName - the name of the ear fileclassifier - an optional classifierpublic java.io.File createArchive()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - in case of an error.public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - in case of an error.Copyright © 2021. All rights reserved.