Full name:
org.apache.jackrabbit:filevault-package-maven-plugin:1.0.1:package
Description:
Attributes:
Name | Type | Since | Description |
---|---|---|---|
allowIndexDefinitions | boolean | - | Defines whether the package is allowed to contain index
definitions. This will become the
allowIndexDefinitions property of the properties.xml
file. Default value is: false. User property is: vault.allowIndexDefinitions. |
excludes | String[] | - | The file name patterns to exclude in addition to the ones listed in
AbstractScanner.DEFAULTEXCLUDES. The format of each
pattern is described in DirectoryScanner. Default value is: **/.vlt,**/.vltignore,**/.DS_Store. User property is: vault.excludes. |
failOnDependencyErrors | boolean | - | Controls if errors during dependency validation should fail the
build. Default value is: true. User property is: vault.failOnDependencyErrors. |
failOnEmptyFilter | boolean | - | Controls if empty workspace filter fails the build. Default value is: true. User property is: vault.failOnEmptyFilter. |
failOnMissingEmbed | boolean | - | Defines whether to fail the build when an embedded artifact is not
found in the project's dependencies Default value is: false. User property is: vault.failOnMissingEmbed. |
finalName | String | - | The name of the generated package ZIP file without the ".zip" file
extension. Default value is: ${project.build.finalName}. User property is: vault.finalName. |
group | String | - | The groupId used for the generated content package. This will be
part of the target installation path of the content package. Default value is: ${project.groupId}. User property is: vault.group. |
jcrRootSourceDirectory | File[] | - | The directory that contains the jcr_root of the content. Multiple
directories can be specified as a comma separated list, which will
act as a search path and cause the plugin to look for the first
existing directory. Default value is: ${project.basedir}/jcr_root,${project.basedir}/src/main/jcr_root,${project.basedir}/src/main/content/jcr_root,${project.basedir}/src/content/jcr_root,${project.build.outputDirectory}. User property is: vault.jcrRootSourceDirectory. |
metaInfVaultDirectory | File[] | - | The directory that contains the META-INF/vault. Multiple
directories can be specified as a comma separated list, which will
act as a search path and cause the plugin to look for the first
existing directory.
This directory is added as fileset to the package archiver before the the workDirectory. This means that files specified in this directory have precedence over the one present in the workDirectory. For example, if this directory contains a properties.xml it will not be overwritten by the generated one. A special case is the filter.xml which will be merged with inline filters if present. Default value is: ${project.basedir}/META-INF/vault,${project.basedir}/src/main/META-INF/vault,${project.basedir}/src/main/content/META-INF/vault,${project.basedir}/src/content/META-INF/vault. User property is: vault.metaInfVaultDirectory. |
name | String | - | The name of the content package Default value is: ${project.artifactId}. User property is: vault.name. |
outputDirectory | File | - | Directory in which the built content package will be output. Default value is: ${project.build.directory}. |
requiresRoot | boolean | - | Defines whether the package requires root. This will become the
requiresRoot property of the properties.xml file. Default value is: false. User property is: vault.requiresRoot. |
version | String | - | The version of the content package. Default value is: ${project.version}. User property is: vault.version. |
workDirectory | File | - | The directory containing the content to be packaged up into the
content package. Default value is: ${project.build.directory}/vault-work. |
Name | Type | Since | Description | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
accessControlHandling | AccessControlHandling | - | Defines the Access control handling. This will become the
acHandling property of the properties.xml file. Possible values:
User property is: vault.acHandling. Alias is: acHandling. |
||||||||||||||||||||||||||
archive | MavenArchiveConfiguration | - | The archive configuration to use. See the
documentation for Maven Archiver. |
||||||||||||||||||||||||||
builtContentDirectory | File | - | The directory containing the content to be packaged up into the
content package. This property is deprecated; use
jcrRootSourceDirectory instead. |
||||||||||||||||||||||||||
dependencies | Dependency[] | - | Defines the list of dependencies A dependency is declared as a
<dependency> element of a list style
<dependencies> element:
<dependency> <group>theGroup</group> <name>theName</name> <version>1.5</version> </dependency> The dependency can also reference a maven project dependency, this is preferred as it yields to more robust builds. <dependency> <groupId>theGroup</groupId> <artifactId>theName</artifactId> </dependency> The versionRange may be indicated as a single version, in which case the version range has no upper bound and defines the minimal version accepted. Otherwise, the version range defines a lower and upper bound of accepted versions, where the bounds are either included using parentheses () or excluded using brackets [] |
||||||||||||||||||||||||||
embeddedTarget | String | - | Defines the path under which the embedded bundles are placed.
defaults to '/apps/bundles/install' User property is: vault.embeddedTarget. |
||||||||||||||||||||||||||
embeddeds | Embedded[] | - | List of filters for artifacts to embed in the package. The
Embedded class represents one or multiple embedded
artifact dependencies from the project descriptor. Each
<embedded> element may configure any of the
following fields
|
||||||||||||||||||||||||||
filterSource | File | - | Optional file that specifies the source of the workspace filter.
The filters specified in the configuration and injected via
emebedds or subpackages are merged into it. |
||||||||||||||||||||||||||
filters | Filters | - | Defines the content of the filter.xml file |
||||||||||||||||||||||||||
generatedImportPackage | File | - | File to store the generated manifest snippet. Default value is: ${project.build.directory}/vault-generated-import.txt. User property is: vault.generatedImportPackage. |
||||||||||||||||||||||||||
importPackage | String | - | Defines additional bundle dependency via the osgi import-package
entry in the manifest. Default value is: -org.apache.sling.scripting.sightly.compiler.expression.nodes,-org.apache.sling.scripting.sightly.java.compiler,-org.apache.sling.scripting.sightly.render. User property is: vault.importPackage. |
||||||||||||||||||||||||||
packageType | PackageType | - | Defines the content package type. this is either 'application',
'content', 'container' or 'mixed'. If omitted, it is calculated
automatically based on filter definitions. certain package types
imply restrictions, for example, 'application' and 'content'
packages are not allowed to contain sub packages or embedded
bundles. Possible values:
User property is: vault.packageType. |
||||||||||||||||||||||||||
prefix | String | - | Adds a path prefix to all resources useful for shallower source
trees. User property is: vault.prefix. |
||||||||||||||||||||||||||
properties | Properties | - | Specifies additional properties to be set in the properties.xml
file. These properties cannot overwrite the following predefined
properties:
|
||||||||||||||||||||||||||
repositoryStructurePackages | Dependency[] | - | Defines the packages that define the repository structure. For the
format description look at dependencies.
The repository-init feature of sling-start can define initial content that will be available in the repository before the first package is installed. Packages that depend on those nodes have no way to reference any dependency package that provides these nodes. A "real" package that would creates those nodes cannot be installed in the repository, because it would void the repository init structure. On the other hand would filevault complain, if the package was listed as dependency but not installed in the repository. So therefor this repository-structure packages serve as indicator packages that helps satisfy the structural dependencies, but are not added as real dependencies to the package. |
||||||||||||||||||||||||||
subPackages | SubPackage[] | - | Defines the list of sub packages to be embedded in this package.
The SubPackage class represents one or multiple
subpackage artifact dependencies from the project descriptor. Each
<subPackage> element may configure any of the
following fields
|
||||||||||||||||||||||||||
thumbnailImage | File | - | Optional reference to PNG image that should be used as thumbnail
for the content package. |
<dependency> <group>theGroup</group> <name>theName</name> <version>1.5</version> </dependency>
The dependency can also reference a maven project dependency, this is preferred as it yields to more robust builds.
<dependency> <groupId>theGroup</groupId> <artifactId>theName</artifactId> </dependency>
The versionRange may be indicated as a single version, in which case the version range has no upper bound and defines the minimal version accepted. Otherwise, the version range defines a lower and upper bound of accepted versions, where the bounds are either included using parentheses () or excluded using brackets []
groupId | String | Filter criterion against the group id of a project dependency. A pattern of format <filter>{,<filter>}. Each filter is a string which is either an exclude (if it starts with a ~) or an include otherwise. If the first filter is an include the pattern acts as whitelist, otherwise as blacklist. The last matching filter determines the outcome. Only matching group ids are being considered for being embedded. |
artifactId | String | Filter criterion against the artifact ids of a project dependency. A pattern of format <filter>{,<filter>}. Each filter is a string which is either an exclude (if it starts with a ~) or an include otherwise. If the first filter is an include the pattern acts as whitelist, otherwise as blacklist. The last matching filter determines the outcome. Only matching artifacts ids are being considered for being embedded. |
scope | ScopeArtifactFilter | Filter criterion against the scope
of a project dependency. Possible values are
|
type | String | Filter criterion against the type of a project dependency. The value given here must be equal to the project dependency's type. |
classifier | String | Filter criterion against the classifier of a project dependency. The value given here must be equal to the project dependency's classifier. |
filter | Boolean | If set to true adds the embedded artifact location to the package's filter. |
target | String | The parent folder location in the package where to place the embedded artifact. Falls back to embeddedTarget if not set. |
This directory is added as fileset to the package archiver before the the workDirectory. This means that files specified in this directory have precedence over the one present in the workDirectory. For example, if this directory contains a properties.xml it will not be overwritten by the generated one. A special case is the filter.xml which will be merged with inline filters if present.
name:
group | Use group parameter to set |
name | Use name parameter to set |
version | Use version parameter to set |
groupId | groupId of the Maven project descriptor |
artifactId | artifactId of the Maven project descriptor |
dependencies | Use dependencies parameter to set |
createdBy | The value of the user.name system property |
created | The current system time |
requiresRoot | Use requiresRoot parameter to set |
allowIndexDefinitions | Use allowIndexDefinitions parameter to set |
packagePath | Automatically generated from the group and package name |
packageType | Set via the package type parameter |
acHandling | Use accessControlHandling parameter to set |
The repository-init feature of sling-start can define initial content that will be available in the repository before the first package is installed. Packages that depend on those nodes have no way to reference any dependency package that provides these nodes. A "real" package that would creates those nodes cannot be installed in the repository, because it would void the repository init structure. On the other hand would filevault complain, if the package was listed as dependency but not installed in the repository. So therefor this repository-structure packages serve as indicator packages that helps satisfy the structural dependencies, but are not added as real dependencies to the package.
groupId | String | Filter criterion against the group id of a project dependency. A pattern of format <filter>{,<filter>}. Each filter is a string which is either an exclude (if it starts with a ~) or an include otherwise. If the first filter is an include the pattern acts as whitelist, otherwise as blacklist. The last matching filter determines the outcome. Only matching group ids are being considered for being embedded. |
artifactId | String | Filter criterion against the artifact ids of a project dependency. A pattern of format <filter>{,<filter>}. Each filter is a string which is either an exclude (if it starts with a ~) or an include otherwise. If the first filter is an include the pattern acts as whitelist, otherwise as blacklist. The last matching filter determines the outcome. Only matching artifacts ids are being considered for being embedded. |
scope | ScopeArtifactFilter | Filter criterion against the scope
of a project dependency. Possible values are
|
type | String | Filter criterion against the type of a project dependency. The value given here must be equal to the project dependency's type. In most cases should be "content-package" or "zip". |
classifier | String | Filter criterion against the classifier of a project dependency. The value given here must be equal to the project dependency's classifier. |
filter | Boolean | If set to true adds the embedded artifact location to the package's filter |