@Mojo(name="generate-metadata",
defaultPhase=PROCESS_CLASSES,
requiresDependencyResolution=COMPILE,
threadSafe=true)
public class GenerateMetadataMojo
extends AbstractMetadataPackageMojo
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 AbstractMetadataPackageMojo.workDirectory.
In addition performs some validations.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.jackrabbit.vault.packaging.PackageType |
packageType
Defines the content package type.
|
classifier, outputTimestamp, project| Constructor and Description |
|---|
GenerateMetadataMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
void |
setAccessControlHandling(String type)
Sets the access control handling.
|
void |
setPackageType(String type)
Sets the package type.
|
getFirstExistingDirectory, getMetaInfVaultSourceDirectory, getMetaInfVaultSourceDirectory, getProjectRelativeFilePath, getRelativePath, setPrefix@Parameter(property="vault.packageType") protected org.apache.jackrabbit.vault.packaging.PackageType packageType
application: An application package consists purely of application content. It serializes
entire subtrees with no inclusion or exclusion filters. it does not contain any subpackages nor OSGi
configuration or bundles.content: A content package consists only of content and user defined configuration.
It usually serializes entire subtrees but can contain inclusion or exclusion filters. it does not contain
any subpackages nor OSGi configuration or bundles.container: A container package only contains sub packages and OSGi configuration and bundles.
The container package is only used as container for deployment.mixed: Catch all type for a combination of the above.public void setPackageType(String type) throws org.apache.maven.plugin.MojoFailureException
type - the string representation of the package typeorg.apache.maven.plugin.MojoFailureException - if an error occurspublic 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 © 2021 The Apache Software Foundation. All rights reserved.