Versions Compared

Key

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

...

This page describes how to configure the plugin in an AEM projects that was set up with the Adobe AEM Project Archetype.

Instructions

  1. In the root/parent pom.xml add to the pluginManagement/plugins section:

    Code Block
    languagexml
    <!-- wcm.io Content Package Plugin -->
    <plugin>
      

...

  1. <groupId>io.wcm.maven.plugins</groupId>

...

  1. 
      <artifactId>wcmio-content-package-maven-plugin</artifactId>
      

...

  1. <version>2.

...

  1. 1.

...

  1. 6</version>
      

...

  1. <configuration>

...

  1. 
        <serviceURL>http://${aem.host}:${aem.port}/crx/packmgr/service</serviceURL>

...

  1. 
        <userId>${sling.vault.user}</userId>
        

...

  1. <password>${sling.vault.password}</password>

...

  1. 
        <consoleUserId>${sling.console.user}</consoleUserId>

...

  1. 
        <consolePassword>${sling.console.password}</consolePassword>

...

  1. 
        

...

  1. <excludeFiles>
          

...

  1. <exclude>^META-INF/.*</exclude>

...

  1. 
          <!-- exclude renditions that are automatically generated -->

...

  1. 
          

...

  1. <exclude>.*/cq5dam\.thumbnail\..*</exclude>

...

  1. 
        </excludeFiles>

...

  1. 
        <excludeProperties>

...

  1. 
          

...

  1. <exclude>jcr\:created</exclude>

...

  1. 
          <exclude>jcr\:createdBy</exclude>

...

  1. 
          <exclude>jcr\:lastModified</exclude>
          

...

  1. <exclude>jcr\:lastModifiedBy</exclude>

...

  1. 
          <exclude>jcr\:uuid</exclude>

...

  1. 
          

...

  1. <exclude>jcr\:isCheckedOut</exclude>

...

  1. 
          <exclude>cq\:lastModified</exclude>

...

  1. 
          <exclude>cq\:lastModifiedBy</exclude>
          

...

  1. <exclude>cq\:lastReplicated</exclude>

...

  1. 
          <exclude>cq\:lastReplicatedBy</exclude>

...

  1. 
          

...

  1. <exclude>cq\:lastReplicationAction</exclude>

...

  1. 
          <exclude>cq\:lastRolledout</exclude>

...

  1. 
          <exclude>cq\:lastRolledoutBy</exclude>
          

...

  1. <exclude>dam\:extracted</exclude>

...

  1. 
          <exclude>dam\:sha1</exclude>

...

  1. 
          

...

  1. <exclude>dam\:Comments</exclude>

...

  1. 
          <exclude>dam\:assetState</exclude>

...

  1. 
          <exclude>dam\:relativePath</exclude>
          

...

  1. <exclude>dc\:modified</exclude>

...

  1. 
        </excludeProperties>

...

  1. 
        <excludeMixins>

...

  1. 
          

...

  1. <exclude>mix\:versionable</exclude>

...

  1. 
          <exclude>mix\:referenceable</exclude>

...

  1. 
          

...

  1. <exclude>cq\:Taggable</exclude>

...

  1. 
          <exclude>cq\:ReplicationStatus</exclude>

...

  1. 
        </excludeMixins>

...

  1. 
        

...

  1. <unpackDirectory>src/main/content</unpackDirectory>
        

...

  1. <unpackDeleteDirectories>

...

  1. 
          <directory>jcr_root</directory>

...

  1. 
        </unpackDeleteDirectories>
        

...

  1. <failOnMissingEmbed>true</failOnMissingEmbed>
      

...

  1. </configuration>
    </plugin>
  2. In the folder of the content package project (e.g. ui.content) use the following commands to upload/download the content:

    Code Block
    languagebash
    # Upload content
    mvn clean package wcmio-content-package:install
    
    # Download & unpack content
    mvn package -Dvault.unpack=true wcmio-content-package:download
  3. Alternatively you can use these convenience scripts:

Attachments

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@4e99be7
sortmodified
showSpacefalse
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "WCMIO"
labelskb-how-to-article
Page Properties
hiddentrue

Related issues