@Mojo(name="generate-metadata",
defaultPhase=PROCESS_CLASSES,
requiresDependencyResolution=COMPILE)
public class GenerateMetadataMojo
extends AbstractPackageMojo
META-INF/MANIFEST.MF as well as the
files ending up in META-INF/vault like filter.xml, properties.xml, config.xml and
settings.xml. Those files will be written to the directory given via parameter AbstractPackageMojo.workDirectory.
In addition performs some validations.| Modifier and Type | Field and Description |
|---|---|
static String |
MF_KEY_IMPORT_PACKAGE |
static String |
MF_KEY_PACKAGE_DEPENDENCIES |
static String |
MF_KEY_PACKAGE_DESC |
static String |
MF_KEY_PACKAGE_ID |
static String |
MF_KEY_PACKAGE_ROOTS |
static String |
MF_KEY_PACKAGE_TYPE |
FILTER_FILE, packageType, project, PROPERTIES_FILE| Constructor and Description |
|---|
GenerateMetadataMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
void |
setAccessControlHandling(String type)
Sets the access control handling.
|
setPackageType, setPrefixpublic static final String MF_KEY_PACKAGE_TYPE
public static final String MF_KEY_PACKAGE_ID
public static final String MF_KEY_PACKAGE_DEPENDENCIES
public static final String MF_KEY_PACKAGE_ROOTS
public static final String MF_KEY_PACKAGE_DESC
public static final String MF_KEY_IMPORT_PACKAGE
public void setAccessControlHandling(String type) throws org.apache.maven.plugin.MojoFailureException
type - the string representation of the ac handlingorg.apache.maven.plugin.MojoFailureException - if an error occurspublic void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionCopyright © 2019 The Apache Software Foundation. All rights reserved.