vltpack:package

Full name:

net.adamcin:vltpack-maven-plugin:1.3.0:package

Description:

Creates a vault package based on the generated metadata and configured content root

Attributes:

  • Requires a Maven project to be executed.
  • The goal is thread-safe and supports parallel builds.
  • Since version: 0.6.0.
  • Binds by default to the lifecycle phase: package.

Optional Parameters

Name Type Since Description
jcrPath String 0.6.0
Specify the JCR path that the jcr_root folder maps to. For instance, if the content was checked out using the vlt command, a jcrPath parameter may have been explicitly specified as something other than '/'. In this case, the same explicit value must be set for this mojo to properly create Jar entries so that the package contents wind up at the correct path when installed

Default value is: /.
User property is: jcrPath.
serverTimezone String 0.6.0
Specify the server timezone if different from the local timezone. When CRX installs the package, it will check the lastmodified timestamps on the Jar entries and compare them to the jcr:lastModified properties in the repository to determine if each file should be installed or not. Because the Jar entry timestamp does not account for timezone, it is possible for packages created in different timezones to be installed inconsistently on the same server. By setting this parameter, the Jar entry timestamps will be adjusted to reflect the local time of the server timezone instead of the local timezone
The value of this property will be passed to TimeZone.getTimeZone(String id), which will be compared against the build machine's default time zone, TimeZone.getDefault(), for computing the desired timestamp offset.
As described in the TimeZone javadocs, if the value of this property is not empty and is not a valid TimeZone id, the GMT timezone will be used for adjustment of timestamps.

User property is: vltpack.tz.
vltRoot File 0.6.0
Content root directory containing jcr_root and META-INF folders

Default value is: ${project.build.outputDirectory}.

Parameter Details

jcrPath:

Specify the JCR path that the jcr_root folder maps to. For instance, if the content was checked out using the vlt command, a jcrPath parameter may have been explicitly specified as something other than '/'. In this case, the same explicit value must be set for this mojo to properly create Jar entries so that the package contents wind up at the correct path when installed
  • Type: java.lang.String
  • Since: 0.6.0
  • Required: No
  • User Property: jcrPath
  • Default: /

serverTimezone:

Specify the server timezone if different from the local timezone. When CRX installs the package, it will check the lastmodified timestamps on the Jar entries and compare them to the jcr:lastModified properties in the repository to determine if each file should be installed or not. Because the Jar entry timestamp does not account for timezone, it is possible for packages created in different timezones to be installed inconsistently on the same server. By setting this parameter, the Jar entry timestamps will be adjusted to reflect the local time of the server timezone instead of the local timezone
The value of this property will be passed to TimeZone.getTimeZone(String id), which will be compared against the build machine's default time zone, TimeZone.getDefault(), for computing the desired timestamp offset.
As described in the TimeZone javadocs, if the value of this property is not empty and is not a valid TimeZone id, the GMT timezone will be used for adjustment of timestamps.
  • Type: java.lang.String
  • Since: 0.6.0
  • Required: No
  • User Property: vltpack.tz

vltRoot:

Content root directory containing jcr_root and META-INF folders
  • Type: java.io.File
  • Since: 0.6.0
  • Required: No
  • Default: ${project.build.outputDirectory}