Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • a) Stick with Adobe content-package-maven-plugin and add the missing configuration
  • b) Switch to Jackrabbit filevault-package-maven-plugin (recommended)
  • c) Switch to wcmio-content-package-maven-plugin

...

  • Edit all pom.xml with packaging type content-package
  • Add

    Code Block
    xml
    xml
    <extensions>true</extensions>

    to the plugin definition of com.day.jcr.vault:content-package-maven-plugin

Solution b) Switch to Jackrabbit filevault-package-maven-plugin (recommended)

Info
You need to update to aem-global-parent 1.2.10 or higher for this solution.
  • Edit all pom.xml with packaging type content-package
  • Switch plugin definition from com.day.jcr.vault:content-package-maven-plugin to org.apache.jackrabbit:filevault-package-maven-plugin
  • Add

    Code Block
    xml
    xml
    <extensions>true</extensions>

    to the plugin definition of org.apache.jackrabbit:filevault-package-maven-plugin

Solution c) Switch to wcmio-content-package-maven-plugin

  • Edit all pom.xml with packaging type content-package
  • Switch plugin definition from com.day.jcr.vault:content-package-maven-plugin to io.wcm.maven.plugins:wcmio-content-package-maven-plugin
  • Add

    Code Block
    xml
    xml
    <extensions>true</extensions>

    to the plugin definition of io.wcm.maven.plugins:wcmio-content-package-maven-plugin

  • Add a resource definition to copy the content of your jcr_root folder to the target/classes folder like this:

    Code Block
    xml
    xml
    <resources>
      <!-- Include all files from jcr_root in content package -->
      <resource>
        <directory>jcr_root</directory>
      </resource>
    </resources>


  • If your project does not contain a jcr_content folder, but only OSGi bundles copied via maven-dependency-plugin to the vault-work folder you can omit the previous step ("complete" package)

...