diff --git a/changes.xml b/changes.xml index 67519bbc..49822cd4 100644 --- a/changes.xml +++ b/changes.xml @@ -23,6 +23,14 @@ xsi:schemaLocation="http://maven.apache.org/changes/1.0.0 https://maven.apache.org/plugins/maven-changes-plugin/xsd/changes-1.0.0.xsd"> + + + conga-aem-maven-plugin: Introduce new parameter "packageVersionMode" to "cloudmanager-all-package" goal, which allows to enable a special "RELEASE_SUFFIX_VERSION" mode. + If this is activated, all the versions of all content packages with a release version contained in the "all" package get a suffix consisting of the version of the POM the mojo is executed in. + This is useful when deploying to AMS with Cloud Manager. + + + conga-aem-maven-plugin: Make use of ${project.build.outputTimestamp} for reproducible builds for dispatcher configuration and processed packages in "all" package. diff --git a/conga-aem-plugin/pom.xml b/conga-aem-plugin/pom.xml index 8faddd86..f86235d7 100644 --- a/conga-aem-plugin/pom.xml +++ b/conga-aem-plugin/pom.xml @@ -25,13 +25,13 @@ io.wcm.devops.conga.plugins io.wcm.devops.conga.plugins.aem.parent - 2.18.6 + 2.19.0 ../parent/pom.xml io.wcm.devops.conga.plugins io.wcm.devops.conga.plugins.aem - 2.18.6 + 2.19.0 jar CONGA AEM Plugin diff --git a/parent/pom.xml b/parent/pom.xml index abd7f25d..b1f23eac 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -31,7 +31,7 @@ io.wcm.devops.conga.plugins io.wcm.devops.conga.plugins.aem.parent - 2.18.6 + 2.19.0 pom CONGA AEM Plugin diff --git a/pom.xml b/pom.xml index ad2c03f4..e7765466 100644 --- a/pom.xml +++ b/pom.xml @@ -23,13 +23,13 @@ io.wcm.devops.conga.plugins io.wcm.devops.conga.plugins.aem.parent - 2.18.6 + 2.19.0 parent/pom.xml io.wcm.devops.conga.plugins io.wcm.devops.conga.plugins.aem.root - 2.18.6 + 2.19.0 pom CONGA AEM Plugin diff --git a/tooling/conga-aem-crypto-cli/pom.xml b/tooling/conga-aem-crypto-cli/pom.xml index fca89715..4faec77a 100644 --- a/tooling/conga-aem-crypto-cli/pom.xml +++ b/tooling/conga-aem-crypto-cli/pom.xml @@ -25,14 +25,14 @@ io.wcm.devops.conga.plugins io.wcm.devops.conga.plugins.aem.parent - 2.18.6 + 2.19.0 ../../parent/pom.xml io.wcm.devops.conga.plugins conga-aem-crypto-cli jar - 2.18.6 + 2.19.0 CONGA AEM Crypto Command Line Interface Command line tool to generate Crypto keys for AEM. @@ -42,7 +42,7 @@ io.wcm.devops.conga.plugins io.wcm.devops.conga.plugins.aem - 2.18.6 + 2.19.0 compile diff --git a/tooling/conga-aem-maven-plugin/pom.xml b/tooling/conga-aem-maven-plugin/pom.xml index 958a947d..66ab8bc5 100644 --- a/tooling/conga-aem-maven-plugin/pom.xml +++ b/tooling/conga-aem-maven-plugin/pom.xml @@ -25,14 +25,14 @@ io.wcm.devops.conga.plugins io.wcm.devops.conga.plugins.aem.parent - 2.18.6 + 2.19.0 ../../parent/pom.xml io.wcm.devops.conga.plugins conga-aem-maven-plugin maven-plugin - 2.18.6 + 2.19.0 CONGA AEM Maven Plugin wcm.io DevOps CONGA - CONfiguration GenerAtor Maven Plugin for AEM @@ -63,7 +63,7 @@ io.wcm.devops.conga.plugins io.wcm.devops.conga.plugins.aem - 2.18.6 + 2.19.0 compile diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/archetype-params.txt b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/archetype-params.txt index d81c5cde..9d28edc3 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/archetype-params.txt +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/archetype-params.txt @@ -1,7 +1,7 @@ mvn org.apache.maven.plugins:maven-archetype-plugin:3.1.0:generate -DinteractiveMode=false \ -DarchetypeGroupId=io.wcm.maven.archetypes \ -DarchetypeArtifactId=io.wcm.maven.archetypes.aem \ - -DarchetypeVersion=3.6.0-SNAPSHOT \ + -DarchetypeVersion=3.6.7-SNAPSHOT \ -DprojectName=wcmio-archetype-aem65 \ -DgroupId=io.wcm.devops.conga.plugins.aem.it \ -DartifactId=io.wcm.devops.conga.plugins.aem.it.aem65 \ diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/archetype.properties b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/archetype.properties index 01577bf5..6dc3bf0f 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/archetype.properties +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/archetype.properties @@ -14,6 +14,7 @@ aemPublishPort=4503 optionAemVersion=6.5 optionJavaVersion=8 optionAemServicePack=n +optionAemServicePackAPI=n optionSlingModelsLatest=y optionSlingInitialContentBundle=y optionEditableTemplates=y @@ -22,5 +23,5 @@ optionContextAwareConfig=y optionFrontend=n optionNodeJsPlugin=n optionWcmioHandler=y -optionAcsCommons=n +optionAcsCommons=y optionIntegrationTests=n diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/bundles/core/pom.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/bundles/core/pom.xml index 2dfd237c..660d3f0e 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/bundles/core/pom.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/bundles/core/pom.xml @@ -172,6 +172,11 @@ core.wcm.components.core compile + + com.adobe.acs + acs-aem-commons-bundle + compile + diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/config-definition/pom.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/config-definition/pom.xml index 45442e0b..4d0b9cae 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/config-definition/pom.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/config-definition/pom.xml @@ -57,6 +57,20 @@ compile + + + com.adobe.acs + acs-aem-commons-ui.apps + zip + compile + + + com.adobe.acs + acs-aem-commons-ui.content + zip + compile + + @@ -80,6 +94,28 @@ + + io.wcm.devops.conga.plugins + conga-aem-maven-plugin + + + + + cloudmanager-all-package + generate-resources + + cloudmanager-all-package + + + it + WARN + RELEASE_SUFFIX_VERSION + + + + + + io.wcm.devops.maven.plugins diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/config-definition/src/main/environments/local.yaml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/config-definition/src/main/environments/local.yaml index 2ca15015..7422be2a 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/config-definition/src/main/environments/local.yaml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/config-definition/src/main/environments/local.yaml @@ -21,6 +21,7 @@ nodes: config: contentPackage.group: it + app: # Default log level for application code logLevel: info diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/config-definition/src/main/roles/wcmio-archetype-aem65-aem-cms.yaml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/config-definition/src/main/roles/wcmio-archetype-aem65-aem-cms.yaml index 3b28de20..2dc032f5 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/config-definition/src/main/roles/wcmio-archetype-aem65-aem-cms.yaml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/config-definition/src/main/roles/wcmio-archetype-aem65-aem-cms.yaml @@ -17,6 +17,16 @@ files: - url: mvn:com.adobe.cq/core.wcm.components.all//zip dir: packages +# ACS AEM Commons +- url: mvn:com.adobe.acs/acs-aem-commons-ui.apps//zip + dir: packages + postProcessorOptions: + contentPackage.packageType: application +- url: mvn:com.adobe.acs/acs-aem-commons-ui.content//zip + dir: packages + postProcessorOptions: + contentPackage.packageType: content + # AEM OSGi System Configuration - file: wcmio-archetype-aem65-aem-cms-config.provisioning dir: packages diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/config-definition/src/main/templates/wcmio-archetype-aem65-aem-cms/wcmio-archetype-aem65-aem-cms-config.provisioning.hbs b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/config-definition/src/main/templates/wcmio-archetype-aem65-aem-cms/wcmio-archetype-aem65-aem-cms-config.provisioning.hbs index a1fd2120..03eb4148 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/config-definition/src/main/templates/wcmio-archetype-aem65-aem-cms/wcmio-archetype-aem65-aem-cms-config.provisioning.hbs +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/config-definition/src/main/templates/wcmio-archetype-aem65-aem-cms/wcmio-archetype-aem65-aem-cms-config.provisioning.hbs @@ -48,7 +48,8 @@ "io.wcm.devops.conga.plugins.aem.it.aem65.config.impl.MediaFormatProviderImpl", \ "io.wcm.devops.conga.plugins.aem.it.aem65.config.impl.MediaHandlerConfigImpl", \ "io.wcm.caconfig.extensions.contextpath.impl.RootTemplateContextPathStrategy", \ - "io.wcm.caconfig.extensions.persistence.impl.PagePersistenceStrategy"] + "io.wcm.caconfig.extensions.persistence.impl.PagePersistenceStrategy", + "io.wcm.handler.mediasource.dam.impl.dynamicmedia.DynamicMediaSupportServiceImpl"] [configurations runModes=author] diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/complete/pom.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/complete/pom.xml index 55adab90..9b752dba 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/complete/pom.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/complete/pom.xml @@ -78,6 +78,13 @@ provided + + + com.adobe.acs + acs-aem-commons-bundle + compile + + @@ -135,6 +142,16 @@ jar + + + + com.adobe.acs + + + acs-aem-commons-bundle + + jar + diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/conf-content/jcr_root/conf/wcmio-archetype-aem65/settings/wcm/policies/.content.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/conf-content/jcr_root/conf/wcmio-archetype-aem65/settings/wcm/policies/.content.xml index e24286c5..329140ea 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/conf-content/jcr_root/conf/wcmio-archetype-aem65/settings/wcm/policies/.content.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/conf-content/jcr_root/conf/wcmio-archetype-aem65/settings/wcm/policies/.content.xml @@ -16,7 +16,7 @@ @@ -48,7 +48,7 @@ diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/conf-content/jcr_root/conf/wcmio-archetype-aem65/settings/wcm/templates/contentpage/.content.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/conf-content/jcr_root/conf/wcmio-archetype-aem65/settings/wcm/templates/contentpage/.content.xml index a1957ee9..011ceb85 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/conf-content/jcr_root/conf/wcmio-archetype-aem65/settings/wcm/templates/contentpage/.content.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/conf-content/jcr_root/conf/wcmio-archetype-aem65/settings/wcm/templates/contentpage/.content.xml @@ -9,6 +9,6 @@ ranking="{Long}10" status="enabled" jcr:mixinTypes="[cq:ReplicationStatus]" - cq:lastReplicated="{Date}2022-05-05T00:00:00.000+02:00" + cq:lastReplicated="{Date}2022-10-18T00:00:00.000+02:00" cq:lastReplicationAction="Activate"/> diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/conf-content/jcr_root/conf/wcmio-archetype-aem65/settings/wcm/templates/contentpage/policies/.content.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/conf-content/jcr_root/conf/wcmio-archetype-aem65/settings/wcm/templates/contentpage/policies/.content.xml index 0f6791d0..ade54779 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/conf-content/jcr_root/conf/wcmio-archetype-aem65/settings/wcm/templates/contentpage/policies/.content.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/conf-content/jcr_root/conf/wcmio-archetype-aem65/settings/wcm/templates/contentpage/policies/.content.xml @@ -5,7 +5,7 @@ jcr:primaryType="nt:unstructured" sling:resourceType="wcm/core/components/policies/mappings" jcr:mixinTypes="[cq:ReplicationStatus]" - cq:lastReplicated="{Date}2022-05-05T00:00:00.000+02:00" + cq:lastReplicated="{Date}2022-10-18T00:00:00.000+02:00" cq:lastReplicationAction="Activate"> diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/conf-content/jcr_root/conf/wcmio-archetype-aem65/settings/wcm/templates/experience-fragment-web-variation/policies/.content.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/conf-content/jcr_root/conf/wcmio-archetype-aem65/settings/wcm/templates/experience-fragment-web-variation/policies/.content.xml index 6cb04940..e37b6106 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/conf-content/jcr_root/conf/wcmio-archetype-aem65/settings/wcm/templates/experience-fragment-web-variation/policies/.content.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/conf-content/jcr_root/conf/wcmio-archetype-aem65/settings/wcm/templates/experience-fragment-web-variation/policies/.content.xml @@ -5,7 +5,7 @@ jcr:primaryType="nt:unstructured" sling:resourceType="wcm/core/components/policies/mappings" jcr:mixinTypes="[cq:ReplicationStatus]" - cq:lastReplicated="{Date}2022-05-05T00:00:00.000+02:00" + cq:lastReplicated="{Date}2022-10-18T00:00:00.000+02:00" cq:lastReplicationAction="Activate"> diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/conf-content/jcr_root/conf/wcmio-archetype-aem65/settings/wcm/templates/homepage/policies/.content.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/conf-content/jcr_root/conf/wcmio-archetype-aem65/settings/wcm/templates/homepage/policies/.content.xml index 0f6791d0..ade54779 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/conf-content/jcr_root/conf/wcmio-archetype-aem65/settings/wcm/templates/homepage/policies/.content.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/conf-content/jcr_root/conf/wcmio-archetype-aem65/settings/wcm/templates/homepage/policies/.content.xml @@ -5,7 +5,7 @@ jcr:primaryType="nt:unstructured" sling:resourceType="wcm/core/components/policies/mappings" jcr:mixinTypes="[cq:ReplicationStatus]" - cq:lastReplicated="{Date}2022-05-05T00:00:00.000+02:00" + cq:lastReplicated="{Date}2022-10-18T00:00:00.000+02:00" cq:lastReplicationAction="Activate"> ^/conf/.+/settings/wcm/policies/.+/jcr:content$ ^/conf/.+/settings/wcm/templates/[^/]+(/policies|/structure)?/jcr:content$ - 2022-05-05T00:00:00.000+02:00 + 2022-10-18T00:00:00.000+02:00 diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/conf/wcmio-archetype-aem65/en/_sling_configs/com.adobe.cq.wcm.core.components.internal.DataLayerConfig/.content.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/conf/wcmio-archetype-aem65/en/_sling_configs/com.adobe.cq.wcm.core.components.internal.DataLayerConfig/.content.xml index 5b505bd3..6e529234 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/conf/wcmio-archetype-aem65/en/_sling_configs/com.adobe.cq.wcm.core.components.internal.DataLayerConfig/.content.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/conf/wcmio-archetype-aem65/en/_sling_configs/com.adobe.cq.wcm.core.components.internal.DataLayerConfig/.content.xml @@ -4,5 +4,8 @@ + enabled="{Boolean}true" + jcr:mixinTypes="[cq:ReplicationStatus]" + cq:lastReplicated="{Date}2022-10-18T00:00:00.000+02:00" + cq:lastReplicationAction="Activate"/> diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/chicago.jpg/.content.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/chicago.jpg/.content.xml index e556a8ae..8ba50516 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/chicago.jpg/.content.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/chicago.jpg/.content.xml @@ -1,39 +1,61 @@ - - + - - + tiff:ImageWidth="{Long}1920" + tiff:Orientation="{Long}1" + tiff:PhotometricInterpretation="{Long}2" + tiff:ResolutionUnit="{Long}2" + tiff:SamplesPerPixel="{Long}3" + tiff:XResolution="720000/10000" + tiff:YResolution="720000/10000" + xmp:CreateDate="{Date}2022-08-25T17:25:37.000+02:00" + xmp:CreatorTool="Adobe Photoshop 23.5 (Windows)" + xmp:MetadataDate="{Date}2022-08-25T17:27:08.000+02:00" + xmp:ModifyDate="{Date}2022-08-25T17:27:08.000+02:00" + xmpMM:DocumentID="9C4C672A11C813BF532ADA4201EE2112" + xmpMM:InstanceID="xmp.iid:728440f6-f881-284c-9c9a-6863f105ddc5" + xmpMM:OriginalDocumentID="9C4C672A11C813BF532ADA4201EE2112"/> - + - diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/chicago.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/chicago.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg index 923d5ffe..9177151a 100644 Binary files a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/chicago.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg and b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/chicago.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg differ diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/chicago.jpg/_jcr_content/renditions/original b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/chicago.jpg/_jcr_content/renditions/original index e72857b8..ebab7012 100644 Binary files a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/chicago.jpg/_jcr_content/renditions/original and b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/chicago.jpg/_jcr_content/renditions/original differ diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/nature.jpg/.content.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/nature.jpg/.content.xml index a3ce3bfe..dda1e036 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/nature.jpg/.content.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/nature.jpg/.content.xml @@ -1,10 +1,11 @@ - - + - - + tiff:Model="ILCE-6000" + tiff:Orientation="{Long}1" + tiff:PhotometricInterpretation="{Long}2" + tiff:ResolutionUnit="{Long}2" + tiff:SamplesPerPixel="{Long}3" + tiff:XResolution="3000000/10000" + tiff:YResolution="3000000/10000" + xmp:CreateDate="{Date}2018-08-18T15:56:02.000+02:00" + xmp:CreatorTool="Adobe Photoshop 23.5 (Windows)" + xmp:MetadataDate="{Date}2022-08-25T17:26:56.000+02:00" + xmp:ModifyDate="{Date}2022-08-25T17:26:56.000+02:00" + xmpMM:DocumentID="7123030BBD73CA0C3200CFC9673FA8FF" + xmpMM:InstanceID="xmp.iid:c9581756-440d-4741-bc4d-313fbe107a42" + xmpMM:OriginalDocumentID="7123030BBD73CA0C3200CFC9673FA8FF"/> - - - - diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/nature.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/nature.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg index caa4330e..8ba77255 100644 Binary files a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/nature.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg and b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/nature.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg differ diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/nature.jpg/_jcr_content/renditions/original b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/nature.jpg/_jcr_content/renditions/original index b6099db7..562889fd 100644 Binary files a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/nature.jpg/_jcr_content/renditions/original and b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/nature.jpg/_jcr_content/renditions/original differ diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/prague.jpg/.content.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/prague.jpg/.content.xml index 62ab6f7c..e50a9afb 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/prague.jpg/.content.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/prague.jpg/.content.xml @@ -1,10 +1,11 @@ - - + - - + tiff:Model="ILCE-6300" + tiff:Orientation="{Long}1" + tiff:PhotometricInterpretation="{Long}2" + tiff:ResolutionUnit="{Long}2" + tiff:SamplesPerPixel="{Long}3" + tiff:XResolution="3000000/10000" + tiff:YResolution="3000000/10000" + xmp:CreateDate="{Date}2018-07-08T20:26:32.000+02:00" + xmp:CreatorTool="Adobe Photoshop 23.5 (Windows)" + xmp:MetadataDate="{Date}2022-08-25T17:26:43.000+02:00" + xmp:ModifyDate="{Date}2022-08-25T17:26:43.000+02:00" + xmpMM:DocumentID="18F0CD1490F1800A553E9276693A6E83" + xmpMM:InstanceID="xmp.iid:27e2acef-780c-3a49-9321-c7f8d29e769a" + xmpMM:OriginalDocumentID="18F0CD1490F1800A553E9276693A6E83"/> - + - diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/prague.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/prague.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg index 1481c676..bc1dcd02 100644 Binary files a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/prague.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg and b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/prague.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg differ diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/prague.jpg/_jcr_content/renditions/original b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/prague.jpg/_jcr_content/renditions/original index 3e0e3789..b40178b2 100644 Binary files a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/prague.jpg/_jcr_content/renditions/original and b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-aem65/prague.jpg/_jcr_content/renditions/original differ diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/experience-fragments/.content.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/experience-fragments/.content.xml index f2c66f43..61fa7a20 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/experience-fragments/.content.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/experience-fragments/.content.xml @@ -1,6 +1,6 @@ diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/wcmio-archetype-aem65/en/.content.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/wcmio-archetype-aem65/en/.content.xml index c9c4806d..e64c8825 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/wcmio-archetype-aem65/en/.content.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/wcmio-archetype-aem65/en/.content.xml @@ -9,7 +9,10 @@ jcr:title="en" sling:resourceType="wcmio-archetype-aem65/core/components/global/page" navTitle="HOME" - pageTitle="wcmio-archetype-aem65 Sample Site"> + pageTitle="wcmio-archetype-aem65 Sample Site" + jcr:mixinTypes="[cq:ReplicationStatus]" + cq:lastReplicated="{Date}2022-10-18T00:00:00.000+02:00" + cq:lastReplicationAction="Activate"> diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/wcmio-archetype-aem65/en/tools/.content.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/wcmio-archetype-aem65/en/tools/.content.xml index c137f5ba..9256a01e 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/wcmio-archetype-aem65/en/tools/.content.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/wcmio-archetype-aem65/en/tools/.content.xml @@ -6,6 +6,9 @@ jcr:primaryType="cq:PageContent" jcr:title="tools" sling:resourceType="wcmio-archetype-aem65/core/components/admin/page/structureElement" - hideInNav="{Boolean}true"/> + hideInNav="{Boolean}true" + jcr:mixinTypes="[cq:ReplicationStatus]" + cq:lastReplicated="{Date}2022-10-18T00:00:00.000+02:00" + cq:lastReplicationAction="Activate"/> diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/wcmio-archetype-aem65/en/tools/config/.content.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/wcmio-archetype-aem65/en/tools/config/.content.xml index 188eccb1..f69defee 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/wcmio-archetype-aem65/en/tools/config/.content.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/jcr_root/content/wcmio-archetype-aem65/en/tools/config/.content.xml @@ -5,5 +5,8 @@ cq:template="/apps/wcmio-archetype-aem65/core/templates/admin/configEditor" jcr:primaryType="cq:PageContent" jcr:title="config" - sling:resourceType="wcmio-archetype-aem65/core/components/admin/page/configEditor"/> + sling:resourceType="wcmio-archetype-aem65/core/components/admin/page/configEditor" + jcr:mixinTypes="[cq:ReplicationStatus]" + cq:lastReplicated="{Date}2022-10-18T00:00:00.000+02:00" + cq:lastReplicationAction="Activate"/> diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/pom.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/pom.xml index f9f64636..1ac54b9b 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/pom.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/content-packages/sample-content/pom.xml @@ -55,6 +55,24 @@ + + io.wcm.maven.plugins + wcmio-content-package-maven-plugin + + + true + + ^/conf/.+/jcr:content$ + ^/content/.+/jcr:content$ + + 2022-10-18T00:00:00.000+02:00 + + + io.wcm.devops.maven.plugins diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/parent/pom.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/parent/pom.xml index e9a580bf..f768a03d 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/parent/pom.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/parent/pom.xml @@ -5,7 +5,7 @@ io.wcm.maven io.wcm.maven.aem-global-parent - 2.0.8 + 2.0.16 @@ -30,7 +30,8 @@ enabled - 2.19.0 + 2.21.0 + 5.3.2 2021-01-01T00:00:00Z @@ -111,7 +112,7 @@ org.apache.sling org.apache.sling.models.caconfig - 1.0.0 + 1.0.2 @@ -123,12 +124,12 @@ io.wcm io.wcm.caconfig.editor - 1.11.0 + 1.13.0 io.wcm io.wcm.sling.commons - 1.4.0 + 1.5.0 io.wcm @@ -148,7 +149,7 @@ io.wcm io.wcm.wcm.ui.granite - 1.9.2 + 1.9.8 io.wcm @@ -163,12 +164,12 @@ io.wcm io.wcm.handler.url - 1.7.0 + 1.9.0 io.wcm io.wcm.handler.media - 1.14.2 + 1.14.12 io.wcm @@ -178,24 +179,24 @@ io.wcm io.wcm.handler.richtext - 1.5.8 + 1.6.0 io.wcm io.wcm.wcm.core.components - 1.10.0-2.18.6 + 1.12.0-2.20.0 io.wcm.devops.conga.definitions io.wcm.devops.conga.definitions.aem - 1.12.2 + 1.13.0 io.wcm io.wcm.testing.aem-mock.junit5 - 4.1.8 + 5.1.0 org.apache.sling @@ -255,23 +256,42 @@ zip + + + com.adobe.acs + acs-aem-commons-bundle + ${acs.aem.commons.version} + + + com.adobe.acs + acs-aem-commons-ui.apps + ${acs.aem.commons.version} + zip + + + com.adobe.acs + acs-aem-commons-ui.content + ${acs.aem.commons.version} + zip + + org.junit junit-bom - 5.8.2 + 5.9.1 pom import org.mockito mockito-core - 4.4.0 + 4.8.0 org.mockito mockito-junit-jupiter - 4.4.0 + 4.8.0 @@ -302,7 +322,7 @@ io.wcm.devops.conga conga-maven-plugin - 1.14.8 + 1.14.12 io.wcm.devops.conga.plugins diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/archetype-params.txt b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/archetype-params.txt index 6abd0c71..ab3f618c 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/archetype-params.txt +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/archetype-params.txt @@ -1,7 +1,7 @@ mvn org.apache.maven.plugins:maven-archetype-plugin:3.1.0:generate -DinteractiveMode=false \ -DarchetypeGroupId=io.wcm.maven.archetypes \ -DarchetypeArtifactId=io.wcm.maven.archetypes.aem \ - -DarchetypeVersion=3.6.0-SNAPSHOT \ + -DarchetypeVersion=3.6.7-SNAPSHOT \ -DprojectName=wcmio-archetype-cloud \ -DgroupId=io.wcm.devops.conga.plugins.aem.it \ -DartifactId=io.wcm.devops.conga.plugins.aem.it.aemcloud \ diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/archetype.properties b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/archetype.properties index 104d2ebe..eae58e69 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/archetype.properties +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/archetype.properties @@ -14,6 +14,7 @@ aemPublishPort=4503 optionAemVersion=cloud optionJavaVersion=8 optionAemServicePack=n +optionAemServicePackAPI=n optionSlingModelsLatest=n optionSlingInitialContentBundle=y optionEditableTemplates=y diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/config-definition/pom.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/config-definition/pom.xml index 93ea1168..c741521a 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/config-definition/pom.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/config-definition/pom.xml @@ -49,17 +49,20 @@ + + com.adobe.acs + acs-aem-commons-bundle + compile + com.adobe.acs acs-aem-commons-ui.apps - min zip compile com.adobe.acs acs-aem-commons-ui.content - min zip compile diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/config-definition/src/main/environments/cloud.yaml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/config-definition/src/main/environments/cloud.yaml index 47797bd1..5f46aa38 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/config-definition/src/main/environments/cloud.yaml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/config-definition/src/main/environments/cloud.yaml @@ -29,6 +29,11 @@ nodes: config: contentPackage.group: it + + aem: + # Disable user tracking in author environment + disableAuthorUsageStatisticsCollection: false + app: # Default log level for application code logLevel: warn diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/config-definition/src/main/environments/local.yaml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/config-definition/src/main/environments/local.yaml index 39e1732c..f31cc2f4 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/config-definition/src/main/environments/local.yaml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/config-definition/src/main/environments/local.yaml @@ -21,6 +21,11 @@ nodes: config: contentPackage.group: it + + aem: + # Disable user tracking in author environment + disableAuthorUsageStatisticsCollection: true + app: # Default log level for application code logLevel: info diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/config-definition/src/main/roles/wcmio-archetype-cloud-aem-cms.yaml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/config-definition/src/main/roles/wcmio-archetype-cloud-aem-cms.yaml index d64fb950..775eaf98 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/config-definition/src/main/roles/wcmio-archetype-cloud-aem-cms.yaml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/config-definition/src/main/roles/wcmio-archetype-cloud-aem-cms.yaml @@ -14,11 +14,13 @@ files: # ACS AEM Commons -- url: mvn:com.adobe.acs/acs-aem-commons-ui.apps//zip/min +- url: mvn:com.adobe.acs/acs-aem-commons-bundle + dir: bundles +- url: mvn:com.adobe.acs/acs-aem-commons-ui.apps//zip dir: packages postProcessorOptions: contentPackage.packageType: application -- url: mvn:com.adobe.acs/acs-aem-commons-ui.content//zip/min +- url: mvn:com.adobe.acs/acs-aem-commons-ui.content//zip dir: packages postProcessorOptions: contentPackage.packageType: content @@ -129,6 +131,10 @@ config: group: it version: ${version} + aem: + # Disable user tracking in author environment + disableAuthorUsageStatisticsCollection: false + app: confContent: true sampleContent: false diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/config-definition/src/main/templates/wcmio-archetype-cloud-aem-cms/wcmio-archetype-cloud-aem-cms-config.provisioning.hbs b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/config-definition/src/main/templates/wcmio-archetype-cloud-aem-cms/wcmio-archetype-cloud-aem-cms-config.provisioning.hbs index 08555dfd..492d2c07 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/config-definition/src/main/templates/wcmio-archetype-cloud-aem-cms/wcmio-archetype-cloud-aem-cms-config.provisioning.hbs +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/config-definition/src/main/templates/wcmio-archetype-cloud-aem-cms/wcmio-archetype-cloud-aem-cms-config.provisioning.hbs @@ -43,7 +43,8 @@ "io.wcm.devops.conga.plugins.aem.it.aemcloud.config.impl.MediaFormatProviderImpl", \ "io.wcm.devops.conga.plugins.aem.it.aemcloud.config.impl.MediaHandlerConfigImpl", \ "io.wcm.caconfig.extensions.contextpath.impl.RootTemplateContextPathStrategy", \ - "io.wcm.caconfig.extensions.persistence.impl.PagePersistenceStrategy"] + "io.wcm.caconfig.extensions.persistence.impl.PagePersistenceStrategy", + "io.wcm.handler.mediasource.dam.impl.dynamicmedia.DynamicMediaSupportServiceImpl"] [configurations runModes=author] @@ -51,6 +52,12 @@ com.day.cq.commons.servlets.RootMappingServlet rootmapping.target="/sites.html" +{{#if aem.disableAuthorUsageStatisticsCollection ~}} + # Disable usage tracking by default for admins (esp. for local usage) + com.adobe.cq.experiencelog.impl.ExperienceLogConfigServlet + enabled=B"false" + +{{/if ~}} # Instance type io.wcm.wcm.commons.instancetype.impl.InstanceTypeServiceImpl instance.type="author" diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/conf-content/jcr_root/conf/wcmio-archetype-cloud/settings/wcm/policies/.content.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/conf-content/jcr_root/conf/wcmio-archetype-cloud/settings/wcm/policies/.content.xml index 5fcda86e..f5f8e3db 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/conf-content/jcr_root/conf/wcmio-archetype-cloud/settings/wcm/policies/.content.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/conf-content/jcr_root/conf/wcmio-archetype-cloud/settings/wcm/policies/.content.xml @@ -16,7 +16,7 @@ @@ -48,7 +48,7 @@ diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/conf-content/jcr_root/conf/wcmio-archetype-cloud/settings/wcm/templates/contentpage/.content.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/conf-content/jcr_root/conf/wcmio-archetype-cloud/settings/wcm/templates/contentpage/.content.xml index 00088061..0f99766a 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/conf-content/jcr_root/conf/wcmio-archetype-cloud/settings/wcm/templates/contentpage/.content.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/conf-content/jcr_root/conf/wcmio-archetype-cloud/settings/wcm/templates/contentpage/.content.xml @@ -9,6 +9,6 @@ ranking="{Long}10" status="enabled" jcr:mixinTypes="[cq:ReplicationStatus]" - cq:lastReplicated="{Date}2022-05-05T00:00:00.000+02:00" + cq:lastReplicated="{Date}2022-10-18T00:00:00.000+02:00" cq:lastReplicationAction="Activate"/> diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/conf-content/jcr_root/conf/wcmio-archetype-cloud/settings/wcm/templates/contentpage/policies/.content.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/conf-content/jcr_root/conf/wcmio-archetype-cloud/settings/wcm/templates/contentpage/policies/.content.xml index a55220df..45de492f 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/conf-content/jcr_root/conf/wcmio-archetype-cloud/settings/wcm/templates/contentpage/policies/.content.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/conf-content/jcr_root/conf/wcmio-archetype-cloud/settings/wcm/templates/contentpage/policies/.content.xml @@ -5,7 +5,7 @@ jcr:primaryType="nt:unstructured" sling:resourceType="wcm/core/components/policies/mappings" jcr:mixinTypes="[cq:ReplicationStatus]" - cq:lastReplicated="{Date}2022-05-05T00:00:00.000+02:00" + cq:lastReplicated="{Date}2022-10-18T00:00:00.000+02:00" cq:lastReplicationAction="Activate"> diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/conf-content/jcr_root/conf/wcmio-archetype-cloud/settings/wcm/templates/experience-fragment-web-variation/policies/.content.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/conf-content/jcr_root/conf/wcmio-archetype-cloud/settings/wcm/templates/experience-fragment-web-variation/policies/.content.xml index 7b09e79a..754f514f 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/conf-content/jcr_root/conf/wcmio-archetype-cloud/settings/wcm/templates/experience-fragment-web-variation/policies/.content.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/conf-content/jcr_root/conf/wcmio-archetype-cloud/settings/wcm/templates/experience-fragment-web-variation/policies/.content.xml @@ -5,7 +5,7 @@ jcr:primaryType="nt:unstructured" sling:resourceType="wcm/core/components/policies/mappings" jcr:mixinTypes="[cq:ReplicationStatus]" - cq:lastReplicated="{Date}2022-05-05T00:00:00.000+02:00" + cq:lastReplicated="{Date}2022-10-18T00:00:00.000+02:00" cq:lastReplicationAction="Activate"> diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/conf-content/jcr_root/conf/wcmio-archetype-cloud/settings/wcm/templates/homepage/policies/.content.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/conf-content/jcr_root/conf/wcmio-archetype-cloud/settings/wcm/templates/homepage/policies/.content.xml index a55220df..45de492f 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/conf-content/jcr_root/conf/wcmio-archetype-cloud/settings/wcm/templates/homepage/policies/.content.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/conf-content/jcr_root/conf/wcmio-archetype-cloud/settings/wcm/templates/homepage/policies/.content.xml @@ -5,7 +5,7 @@ jcr:primaryType="nt:unstructured" sling:resourceType="wcm/core/components/policies/mappings" jcr:mixinTypes="[cq:ReplicationStatus]" - cq:lastReplicated="{Date}2022-05-05T00:00:00.000+02:00" + cq:lastReplicated="{Date}2022-10-18T00:00:00.000+02:00" cq:lastReplicationAction="Activate"> ^/conf/.+/settings/wcm/policies/.+/jcr:content$ ^/conf/.+/settings/wcm/templates/[^/]+(/policies|/structure)?/jcr:content$ - 2022-05-05T00:00:00.000+02:00 + 2022-10-18T00:00:00.000+02:00 diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/conf/wcmio-archetype-cloud/en/_sling_configs/com.adobe.cq.wcm.core.components.internal.DataLayerConfig/.content.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/conf/wcmio-archetype-cloud/en/_sling_configs/com.adobe.cq.wcm.core.components.internal.DataLayerConfig/.content.xml index 5b505bd3..6e529234 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/conf/wcmio-archetype-cloud/en/_sling_configs/com.adobe.cq.wcm.core.components.internal.DataLayerConfig/.content.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/conf/wcmio-archetype-cloud/en/_sling_configs/com.adobe.cq.wcm.core.components.internal.DataLayerConfig/.content.xml @@ -4,5 +4,8 @@ + enabled="{Boolean}true" + jcr:mixinTypes="[cq:ReplicationStatus]" + cq:lastReplicated="{Date}2022-10-18T00:00:00.000+02:00" + cq:lastReplicationAction="Activate"/> diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/chicago.jpg/.content.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/chicago.jpg/.content.xml index 7175bf92..8ba50516 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/chicago.jpg/.content.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/chicago.jpg/.content.xml @@ -1,39 +1,61 @@ - - + - - + tiff:ImageWidth="{Long}1920" + tiff:Orientation="{Long}1" + tiff:PhotometricInterpretation="{Long}2" + tiff:ResolutionUnit="{Long}2" + tiff:SamplesPerPixel="{Long}3" + tiff:XResolution="720000/10000" + tiff:YResolution="720000/10000" + xmp:CreateDate="{Date}2022-08-25T17:25:37.000+02:00" + xmp:CreatorTool="Adobe Photoshop 23.5 (Windows)" + xmp:MetadataDate="{Date}2022-08-25T17:27:08.000+02:00" + xmp:ModifyDate="{Date}2022-08-25T17:27:08.000+02:00" + xmpMM:DocumentID="9C4C672A11C813BF532ADA4201EE2112" + xmpMM:InstanceID="xmp.iid:728440f6-f881-284c-9c9a-6863f105ddc5" + xmpMM:OriginalDocumentID="9C4C672A11C813BF532ADA4201EE2112"/> - + - diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/chicago.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/chicago.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg index 923d5ffe..9177151a 100644 Binary files a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/chicago.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg and b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/chicago.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg differ diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/chicago.jpg/_jcr_content/renditions/original b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/chicago.jpg/_jcr_content/renditions/original index e72857b8..ebab7012 100644 Binary files a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/chicago.jpg/_jcr_content/renditions/original and b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/chicago.jpg/_jcr_content/renditions/original differ diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/nature.jpg/.content.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/nature.jpg/.content.xml index 4f7a6a78..dda1e036 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/nature.jpg/.content.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/nature.jpg/.content.xml @@ -1,10 +1,11 @@ - - + - - + tiff:Model="ILCE-6000" + tiff:Orientation="{Long}1" + tiff:PhotometricInterpretation="{Long}2" + tiff:ResolutionUnit="{Long}2" + tiff:SamplesPerPixel="{Long}3" + tiff:XResolution="3000000/10000" + tiff:YResolution="3000000/10000" + xmp:CreateDate="{Date}2018-08-18T15:56:02.000+02:00" + xmp:CreatorTool="Adobe Photoshop 23.5 (Windows)" + xmp:MetadataDate="{Date}2022-08-25T17:26:56.000+02:00" + xmp:ModifyDate="{Date}2022-08-25T17:26:56.000+02:00" + xmpMM:DocumentID="7123030BBD73CA0C3200CFC9673FA8FF" + xmpMM:InstanceID="xmp.iid:c9581756-440d-4741-bc4d-313fbe107a42" + xmpMM:OriginalDocumentID="7123030BBD73CA0C3200CFC9673FA8FF"/> - - - - diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/nature.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/nature.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg index caa4330e..8ba77255 100644 Binary files a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/nature.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg and b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/nature.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg differ diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/nature.jpg/_jcr_content/renditions/original b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/nature.jpg/_jcr_content/renditions/original index b6099db7..562889fd 100644 Binary files a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/nature.jpg/_jcr_content/renditions/original and b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/nature.jpg/_jcr_content/renditions/original differ diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/prague.jpg/.content.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/prague.jpg/.content.xml index 98eee112..e50a9afb 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/prague.jpg/.content.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/prague.jpg/.content.xml @@ -1,10 +1,11 @@ - - + - - + tiff:Model="ILCE-6300" + tiff:Orientation="{Long}1" + tiff:PhotometricInterpretation="{Long}2" + tiff:ResolutionUnit="{Long}2" + tiff:SamplesPerPixel="{Long}3" + tiff:XResolution="3000000/10000" + tiff:YResolution="3000000/10000" + xmp:CreateDate="{Date}2018-07-08T20:26:32.000+02:00" + xmp:CreatorTool="Adobe Photoshop 23.5 (Windows)" + xmp:MetadataDate="{Date}2022-08-25T17:26:43.000+02:00" + xmp:ModifyDate="{Date}2022-08-25T17:26:43.000+02:00" + xmpMM:DocumentID="18F0CD1490F1800A553E9276693A6E83" + xmpMM:InstanceID="xmp.iid:27e2acef-780c-3a49-9321-c7f8d29e769a" + xmpMM:OriginalDocumentID="18F0CD1490F1800A553E9276693A6E83"/> - + - diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/prague.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/prague.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg index 1481c676..bc1dcd02 100644 Binary files a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/prague.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg and b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/prague.jpg/_jcr_content/renditions/cq5dam.web.1280.1280.jpeg differ diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/prague.jpg/_jcr_content/renditions/original b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/prague.jpg/_jcr_content/renditions/original index 3e0e3789..b40178b2 100644 Binary files a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/prague.jpg/_jcr_content/renditions/original and b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/dam/wcmio-archetype-cloud/prague.jpg/_jcr_content/renditions/original differ diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/experience-fragments/.content.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/experience-fragments/.content.xml index f2c66f43..61fa7a20 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/experience-fragments/.content.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/experience-fragments/.content.xml @@ -1,6 +1,6 @@ diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/wcmio-archetype-cloud/en/.content.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/wcmio-archetype-cloud/en/.content.xml index 7f11a4c4..96deaedf 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/wcmio-archetype-cloud/en/.content.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/wcmio-archetype-cloud/en/.content.xml @@ -9,7 +9,10 @@ jcr:title="en" sling:resourceType="wcmio-archetype-cloud/core/components/global/page" navTitle="HOME" - pageTitle="wcmio-archetype-cloud Sample Site"> + pageTitle="wcmio-archetype-cloud Sample Site" + jcr:mixinTypes="[cq:ReplicationStatus]" + cq:lastReplicated="{Date}2022-10-18T00:00:00.000+02:00" + cq:lastReplicationAction="Activate"> diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/wcmio-archetype-cloud/en/tools/.content.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/wcmio-archetype-cloud/en/tools/.content.xml index 5737e06c..b07ff3da 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/wcmio-archetype-cloud/en/tools/.content.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/wcmio-archetype-cloud/en/tools/.content.xml @@ -6,6 +6,9 @@ jcr:primaryType="cq:PageContent" jcr:title="tools" sling:resourceType="wcmio-archetype-cloud/core/components/admin/page/structureElement" - hideInNav="{Boolean}true"/> + hideInNav="{Boolean}true" + jcr:mixinTypes="[cq:ReplicationStatus]" + cq:lastReplicated="{Date}2022-10-18T00:00:00.000+02:00" + cq:lastReplicationAction="Activate"/> diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/wcmio-archetype-cloud/en/tools/config/.content.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/wcmio-archetype-cloud/en/tools/config/.content.xml index 1cda2c6b..bfa8354a 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/wcmio-archetype-cloud/en/tools/config/.content.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/jcr_root/content/wcmio-archetype-cloud/en/tools/config/.content.xml @@ -5,5 +5,8 @@ cq:template="/apps/wcmio-archetype-cloud/core/templates/admin/configEditor" jcr:primaryType="cq:PageContent" jcr:title="config" - sling:resourceType="wcmio-archetype-cloud/core/components/admin/page/configEditor"/> + sling:resourceType="wcmio-archetype-cloud/core/components/admin/page/configEditor" + jcr:mixinTypes="[cq:ReplicationStatus]" + cq:lastReplicated="{Date}2022-10-18T00:00:00.000+02:00" + cq:lastReplicationAction="Activate"/> diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/pom.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/pom.xml index 17f2dc90..ae5a44cd 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/pom.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/content-packages/sample-content/pom.xml @@ -60,6 +60,24 @@ + + io.wcm.maven.plugins + wcmio-content-package-maven-plugin + + + true + + ^/conf/.+/jcr:content$ + ^/content/.+/jcr:content$ + + 2022-10-18T00:00:00.000+02:00 + + + io.wcm.devops.maven.plugins diff --git a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/parent/pom.xml b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/parent/pom.xml index a1405034..c9cd106b 100644 --- a/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/parent/pom.xml +++ b/tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/parent/pom.xml @@ -5,7 +5,7 @@ io.wcm.maven io.wcm.maven.aem-global-parent - 2.0.8 + 2.0.16 @@ -30,7 +30,7 @@ enabled - 5.2.0 + 5.3.2 2021-01-01T00:00:00Z @@ -89,19 +89,19 @@ io.wcm io.wcm.caconfig.editor - 1.11.0 + 1.13.0 io.wcm io.wcm.caconfig.editor - 1.11.0 + 1.13.0 content zip io.wcm io.wcm.sling.commons - 1.4.0 + 1.5.0 io.wcm @@ -135,12 +135,12 @@ io.wcm io.wcm.wcm.ui.granite - 1.9.2 + 1.9.8 io.wcm io.wcm.wcm.ui.granite - 1.9.2 + 1.9.8 content zip @@ -164,24 +164,24 @@ io.wcm io.wcm.handler.url - 1.7.0 + 1.9.0 io.wcm io.wcm.handler.url - 1.7.0 + 1.9.0 content zip io.wcm io.wcm.handler.media - 1.14.2 + 1.14.12 io.wcm io.wcm.handler.media - 1.14.2 + 1.14.12 content zip @@ -200,38 +200,38 @@ io.wcm io.wcm.handler.richtext - 1.5.8 + 1.6.0 io.wcm io.wcm.handler.richtext - 1.5.8 + 1.6.0 content zip io.wcm io.wcm.wcm.core.components - 1.10.0-2.18.6 + 1.12.0-2.20.0 io.wcm io.wcm.wcm.core.components - 1.10.0-2.18.6 + 1.12.0-2.20.0 content zip io.wcm.devops.conga.definitions io.wcm.devops.conga.definitions.aem - 1.12.2 + 1.13.0 io.wcm io.wcm.testing.aem-mock.junit5 - 4.1.8 + 5.1.0 org.apache.sling @@ -268,7 +268,7 @@ io.wcm.maven io.wcm.maven.aem-cloud-dependencies - 2022.4.7100.20220421T124010Z-220400.0000 + 2022.10.9145.20221006T013555Z-220800.0000 pom import @@ -283,14 +283,12 @@ com.adobe.acs acs-aem-commons-ui.apps ${acs.aem.commons.version} - min zip com.adobe.acs acs-aem-commons-ui.content ${acs.aem.commons.version} - min zip @@ -298,19 +296,19 @@ org.junit junit-bom - 5.8.2 + 5.9.1 pom import org.mockito mockito-core - 4.4.0 + 4.8.0 org.mockito mockito-junit-jupiter - 4.4.0 + 4.8.0 @@ -341,7 +339,7 @@ io.wcm.devops.conga conga-maven-plugin - 1.14.8 + 1.14.12 io.wcm.devops.conga.plugins diff --git a/tooling/conga-aem-maven-plugin/src/main/java/io/wcm/devops/conga/plugins/aem/maven/CloudManagerAllPackageMojo.java b/tooling/conga-aem-maven-plugin/src/main/java/io/wcm/devops/conga/plugins/aem/maven/CloudManagerAllPackageMojo.java index 81538cf2..a8115e3a 100644 --- a/tooling/conga-aem-maven-plugin/src/main/java/io/wcm/devops/conga/plugins/aem/maven/CloudManagerAllPackageMojo.java +++ b/tooling/conga-aem-maven-plugin/src/main/java/io/wcm/devops/conga/plugins/aem/maven/CloudManagerAllPackageMojo.java @@ -86,16 +86,9 @@ public final class CloudManagerAllPackageMojo extends AbstractCloudManagerMojo { /** * Automatically generate dependencies between content packages based on file order in CONGA configuration. *

- * Possible values: + * Possible options see + * AutoDependenciesMode. *

- *
    - *
  • IMMUTABLE_MUTABLE_COMBINED: Generate a single dependency chain spanning both immutable and mutable - * content packages.
  • - *
  • IMMUTABLE_MUTABLE_SEPARATE: Generate separate dependency chains for immutable and mutable content - * packages.
  • - *
  • IMMUTABLE_ONLY: Generate a dependency chain only for immutable content packages.
  • - *
  • OFF: Do not generate dependencies between content packages.
  • - *
*/ @Parameter(property = "conga.cloudManager.allPackage.autoDependenciesMode") private AutoDependenciesMode autoDependenciesMode; @@ -103,14 +96,9 @@ public final class CloudManagerAllPackageMojo extends AbstractCloudManagerMojo { /** * How to optimize author/publish run modes in resulting "all" package. *

- * Possible values: + * Possible options see + * RunModeOptimization. *

- *
    - *
  • OFF: No optimization takes place. Content packages and bundles are duplicated for author/publish - * run modes to ensure strict following of dependency chain defined in CONGA.
  • - *
  • ELIMINATE_DUPLICATES: Eliminates duplicates to ensure that content packages and bundles that are - * installed on both author and publish instances are contained only once in the "all" package.
  • - *
*/ @Parameter(property = "conga.cloudManager.allPackage.runModeOptimization", defaultValue = "OFF") private RunModeOptimization runModeOptimization; @@ -118,18 +106,23 @@ public final class CloudManagerAllPackageMojo extends AbstractCloudManagerMojo { /** * How to validate package types to be included in "all" package. *

- * Possible values: + * Possible options see + * PackageTypeValidation. *

- *
    - *
  • STRICT: Strict mode: Ignores packages without content type (with warning), fails build if "mixed" - * package types are used. For AEMaaCS it is mandatory to use this mode.
  • - *
  • WARN: Includes all packages, but generated warnings about packages without content type or "mixed" - * package types.
  • - *
*/ @Parameter(property = "conga.cloudManager.allPackage.packageTypeValidation", defaultValue = "STRICT") private PackageTypeValidation packageTypeValidation; + /** + * How to handle versions of packages and sub-packages inside "all" package. + *

+ * Possible options see + * PackageVersionMode. + *

+ */ + @Parameter(property = "conga.cloudManager.allPackage.packageVersionMode", defaultValue = "DEFAULT") + private PackageVersionMode packageVersionMode; + /** * Automatically generate dependencies between content packages based on file order in CONGA configuration. * @deprecated Please use autoDependenciesMode instead. @@ -267,6 +260,7 @@ private AllPackageBuilder createBuilder(String packageName) { .autoDependenciesMode(this.autoDependenciesMode) .runModeOptimization(this.runModeOptimization) .packageTypeValidation(this.packageTypeValidation) + .packageVersionMode(this.packageVersionMode) .logger(getLog()) .buildOutputTimestamp(new BuildOutputTimestamp(outputTimestamp)); } diff --git a/tooling/conga-aem-maven-plugin/src/main/java/io/wcm/devops/conga/plugins/aem/maven/PackageVersionMode.java b/tooling/conga-aem-maven-plugin/src/main/java/io/wcm/devops/conga/plugins/aem/maven/PackageVersionMode.java new file mode 100644 index 00000000..e160106e --- /dev/null +++ b/tooling/conga-aem-maven-plugin/src/main/java/io/wcm/devops/conga/plugins/aem/maven/PackageVersionMode.java @@ -0,0 +1,47 @@ +/* + * #%L + * wcm.io + * %% + * Copyright (C) 2022 wcm.io + * %% + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * #L% + */ +package io.wcm.devops.conga.plugins.aem.maven; + +/** + * How to handle versions of packages and sub-packages inside "all" package. + */ +public enum PackageVersionMode { + + /** + * Keep original versions. + */ + DEFAULT, + + /** + * Suffix the version number of all packages with a release version with the version of the POM the Mojo runs in. + * Within the version suffix, dots are replaced with underlines to avoid convision with the main version number. + * This is useful when deploying to AMS with Cloud Manager. + *

+ * Example: + *

+ *
    + *
  • Original package version: 2.5.0
  • + *
  • POM version: 2022.1103.152749.0000000571
  • + *
  • Resulting package version: 2.5.0-2022_1103_152749_0000000571
  • + *
+ */ + RELEASE_SUFFIX_VERSION + +} diff --git a/tooling/conga-aem-maven-plugin/src/main/java/io/wcm/devops/conga/plugins/aem/maven/allpackage/AllPackageBuilder.java b/tooling/conga-aem-maven-plugin/src/main/java/io/wcm/devops/conga/plugins/aem/maven/allpackage/AllPackageBuilder.java index 66b52108..1e71a05b 100644 --- a/tooling/conga-aem-maven-plugin/src/main/java/io/wcm/devops/conga/plugins/aem/maven/allpackage/AllPackageBuilder.java +++ b/tooling/conga-aem-maven-plugin/src/main/java/io/wcm/devops/conga/plugins/aem/maven/allpackage/AllPackageBuilder.java @@ -29,6 +29,7 @@ import static org.apache.jackrabbit.vault.packaging.PackageProperties.NAME_DEPENDENCIES; import static org.apache.jackrabbit.vault.packaging.PackageProperties.NAME_NAME; import static org.apache.jackrabbit.vault.packaging.PackageProperties.NAME_PACKAGE_TYPE; +import static org.apache.jackrabbit.vault.packaging.PackageProperties.NAME_VERSION; import java.io.File; import java.io.FileOutputStream; @@ -57,6 +58,7 @@ import org.apache.jackrabbit.vault.packaging.DependencyUtil; import org.apache.jackrabbit.vault.packaging.PackageType; import org.apache.jackrabbit.vault.packaging.VersionRange; +import org.apache.maven.artifact.ArtifactUtils; import org.apache.maven.plugin.logging.Log; import org.apache.maven.plugin.logging.SystemStreamLog; import org.jetbrains.annotations.NotNull; @@ -67,6 +69,7 @@ import io.wcm.devops.conga.plugins.aem.maven.AutoDependenciesMode; import io.wcm.devops.conga.plugins.aem.maven.BuildOutputTimestamp; import io.wcm.devops.conga.plugins.aem.maven.PackageTypeValidation; +import io.wcm.devops.conga.plugins.aem.maven.PackageVersionMode; import io.wcm.devops.conga.plugins.aem.maven.RunModeOptimization; import io.wcm.devops.conga.plugins.aem.maven.model.BundleFile; import io.wcm.devops.conga.plugins.aem.maven.model.ContentPackageFile; @@ -105,6 +108,7 @@ public final class AllPackageBuilder { private AutoDependenciesMode autoDependenciesMode = AutoDependenciesMode.OFF; private RunModeOptimization runModeOptimization = RunModeOptimization.OFF; private PackageTypeValidation packageTypeValidation = PackageTypeValidation.STRICT; + private PackageVersionMode packageVersionMode = PackageVersionMode.DEFAULT; private Log log; private BuildOutputTimestamp buildOutputTimestamp; @@ -113,6 +117,7 @@ public final class AllPackageBuilder { PackageType.APPLICATION.name().toLowerCase(), PackageType.CONTAINER.name().toLowerCase(), PackageType.CONTENT.name().toLowerCase()); + private static final String VERSION_SUFFIX_SEPARATOR = "-"; private final List contentPackageFileSets = new ArrayList<>(); private final List bundleFileSets = new ArrayList<>(); @@ -156,6 +161,15 @@ public AllPackageBuilder packageTypeValidation(PackageTypeValidation value) { return this; } + /** + * @param value How to handle versions of packages and sub-packages inside "all" package. + * @return this + */ + public AllPackageBuilder packageVersionMode(PackageVersionMode value) { + this.packageVersionMode = value; + return this; + } + /** * @param value Maven logger * @return this @@ -457,8 +471,8 @@ private static String buildRootPath(String groupName, String packageName) { /** * Generate suffix for instance and environment run modes. - * @param file Content package - * @return Package path + * @param file File + * @return Suffix string */ private static String buildRunModeSuffix(InstallableFile file, String environmentRunMode) { StringBuilder runModeSuffix = new StringBuilder(); @@ -474,6 +488,26 @@ else if (isOnlyPublish(file)) { return runModeSuffix.toString(); } + /** + * Generate suffix for versions of content packages. + * @param pkg Content package + * @param ignoreSnapshot Do not build version suffix for SNAPSHOT versions + * @return Suffix string + */ + private String buildVersionSuffix(ContentPackageFile pkg, boolean ignoreSnapshot) { + StringBuilder versionSuffix = new StringBuilder(); + + if (this.packageVersionMode == PackageVersionMode.RELEASE_SUFFIX_VERSION + && (!ArtifactUtils.isSnapshot(pkg.getVersion()) || !ignoreSnapshot) + && this.version != null) { + versionSuffix.append(VERSION_SUFFIX_SEPARATOR) + // replace dots with underlines in version suffix to avoid confusion with main version number + .append(StringUtils.replace(this.version, ".", "_")); + } + + return versionSuffix.toString(); + } + /** * Build path to be used for embedded package. * @param pkg Package @@ -492,7 +526,11 @@ private String buildPackagePath(ContentPackageFile pkg, String rootPath, String String versionSuffix = ""; String packageVersion = pkg.getVersion(); - if (packageVersion != null && pkg.getFile().getName().contains(packageVersion)) { + String packageVersionWithoutSuffix = packageVersion; + if (this.packageVersionMode == PackageVersionMode.RELEASE_SUFFIX_VERSION && this.version != null) { + packageVersionWithoutSuffix = StringUtils.removeEnd(packageVersion, buildVersionSuffix(pkg, false)); + } + if (packageVersion != null && pkg.getFile().getName().contains(packageVersionWithoutSuffix)) { versionSuffix = "-" + packageVersion; } String fileName = pkg.getName() + versionSuffix @@ -554,6 +592,7 @@ private List processContentPackage(ContentPackageFi FileVaultProperties fileVaultProps = new FileVaultProperties(is); Properties props = fileVaultProps.getProperties(); addSuffixToPackageName(props, pkg, environmentRunMode); + addSuffixToVersion(props, pkg); // update package dependencies ContentPackageFile dependencyFile = previousPkg; @@ -562,7 +601,7 @@ private List processContentPackage(ContentPackageFi } updateDependencies(props, dependencyFile, environmentRunMode, allPackagesFromFileSets); - // if package type is missing package properties, put in the type defined in model + // if package type is missing in package properties, put in the type defined in model String packageType = pkg.getPackageType(); if (props.get(NAME_PACKAGE_TYPE) == null && packageType != null) { props.put(NAME_PACKAGE_TYPE, packageType); @@ -583,7 +622,7 @@ else if (StringUtils.equals(FilenameUtils.getExtension(zipInEntry.getName()), "z } // check if contained ZIP file is really a content package - // then process it as well, remove if from the content package is was contained it + // then process it as well, remove if from the content package is was contained in // and add it as "1st level package" to the all package TemporaryContentPackageFile tempSubPackage = new TemporaryContentPackageFile(tempSubPackageFile, pkg.getVariants()); if (packageTypeValidation == PackageTypeValidation.STRICT && !isValidPackageType(tempSubPackage)) { @@ -644,7 +683,7 @@ else if (in.getLastModifiedTime() != null) { * @param dependencyFile Dependency package * @param allPackagesFromFileSets Set with all packages from all file sets as dependency instances */ - private static void updateDependencies(Properties props, ContentPackageFile dependencyFile, String environmentRunMode, + private void updateDependencies(Properties props, ContentPackageFile dependencyFile, String environmentRunMode, Set allPackagesFromFileSets) { String[] existingDepsStrings = StringUtils.split(props.getProperty(NAME_DEPENDENCIES), ","); Dependency[] existingDeps = null; @@ -658,9 +697,10 @@ private static void updateDependencies(Properties props, ContentPackageFile depe Dependency[] deps; if (dependencyFile != null) { String runModeSuffix = buildRunModeSuffix(dependencyFile, environmentRunMode); + String dependencyVersion = dependencyFile.getVersion() + buildVersionSuffix(dependencyFile, true); Dependency newDependency = new Dependency(dependencyFile.getGroup(), dependencyFile.getName() + runModeSuffix, - VersionRange.fromString(dependencyFile.getVersion())); + VersionRange.fromString(dependencyVersion)); deps = addDependency(existingDeps, newDependency); } else { @@ -688,6 +728,15 @@ private static void addSuffixToPackageName(Properties props, ContentPackageFile props.put(NAME_NAME, packageName); } + private void addSuffixToVersion(Properties props, ContentPackageFile pkg) { + // package version + if (StringUtils.isEmpty(pkg.getVersion())) { + return; + } + String suffixedVersion = pkg.getVersion() + buildVersionSuffix(pkg, true); + props.put(NAME_VERSION, suffixedVersion); + } + /** * Removes existing references to packages contained in the list of packages to manage by this builder because * they are added new (and probably with a different package name) during processing. diff --git a/tooling/conga-aem-maven-plugin/src/test/java/io/wcm/devops/conga/plugins/aem/maven/allpackage/AllPackageBuilderPackageVersionModeTest.java b/tooling/conga-aem-maven-plugin/src/test/java/io/wcm/devops/conga/plugins/aem/maven/allpackage/AllPackageBuilderPackageVersionModeTest.java new file mode 100644 index 00000000..2151eb77 --- /dev/null +++ b/tooling/conga-aem-maven-plugin/src/test/java/io/wcm/devops/conga/plugins/aem/maven/allpackage/AllPackageBuilderPackageVersionModeTest.java @@ -0,0 +1,286 @@ +/* + * #%L + * wcm.io + * %% + * Copyright (C) 2022 wcm.io + * %% + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * #L% + */ +package io.wcm.devops.conga.plugins.aem.maven.allpackage; + +import static io.wcm.devops.conga.plugins.aem.maven.allpackage.AllPackageBuilderTest.toInstallFolderNames; +import static io.wcm.devops.conga.plugins.aem.maven.allpackage.FileTestUtil.assertDirectories; +import static io.wcm.devops.conga.plugins.aem.maven.allpackage.FileTestUtil.assertFiles; +import static io.wcm.devops.conga.plugins.aem.maven.allpackage.FileTestUtil.contentPackage; +import static io.wcm.devops.conga.plugins.aem.maven.allpackage.FileTestUtil.dep; +import static io.wcm.devops.conga.plugins.aem.maven.allpackage.FileTestUtil.file; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import java.io.File; +import java.io.IOException; +import java.util.Collections; +import java.util.List; + +import org.apache.commons.io.FileUtils; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestInfo; +import org.zeroturnaround.zip.ZipUtil; + +import io.wcm.devops.conga.plugins.aem.maven.AutoDependenciesMode; +import io.wcm.devops.conga.plugins.aem.maven.PackageVersionMode; +import io.wcm.devops.conga.plugins.aem.maven.model.InstallableFile; +import io.wcm.devops.conga.plugins.aem.maven.model.ModelParser; + +class AllPackageBuilderPackageVersionModeTest { + + private File nodeDir; + private File targetDir; + private File targetUnpackDir; + + @BeforeEach + void setUp(TestInfo testInfo) throws IOException { + nodeDir = new File("src/test/resources/node/aem-author"); + targetDir = new File("target/test-" + getClass().getSimpleName() + "_" + testInfo.getDisplayName()); + targetUnpackDir = new File(targetDir, "unpack"); + FileUtils.deleteDirectory(targetDir); + targetDir.mkdirs(); + targetUnpackDir.mkdirs(); + } + + @Test + void testBuild_DEFAULT() throws Exception { + List files = new ModelParser(nodeDir).getInstallableFilesForNode(); + List runmodeSuffixes = Collections.singletonList(".author"); + File targetFile = new File(targetDir, "all.zip"); + + AllPackageBuilder builder = new AllPackageBuilder(targetFile, "test-group", "test-pkg") + .autoDependenciesMode(AutoDependenciesMode.IMMUTABLE_MUTABLE_SEPARATE) + .version("99.99"); + builder.add(files, Collections.emptySet()); + assertTrue(builder.build(null)); + + ZipUtil.unpack(targetFile, targetUnpackDir); + + File appsDir = new File(targetUnpackDir, "jcr_root/apps/test-group-test-pkg-packages"); + assertDirectories(appsDir, "application", "content", "container"); + + File applicationDir = new File(appsDir, "application"); + assertDirectories(applicationDir, toInstallFolderNames("install", runmodeSuffixes)); + + for (String runmodeSuffix : runmodeSuffixes) { + File applicationInstallDir = new File(applicationDir, "install" + runmodeSuffix); + assertFiles(applicationInstallDir, runmodeSuffix, + contentPackage("accesscontroltool-apps-package{runmode}", "3.0.0", + dep("adobe/consulting:acs-aem-commons-ui.apps{runmode}:4.10.0")), + contentPackage("accesscontroltool-oakindex-package{runmode}", "3.0.0", + dep("Netcentric:accesscontroltool-package{runmode}:3.0.0")), + contentPackage("core.wcm.components.content{runmode}", "2.17.0", + dep("day/cq60/product:cq-platform-content:1.3.248"), + dep("Netcentric:accesscontroltool-oakindex-package{runmode}:3.0.0")), + contentPackage("core.wcm.components.extensions.amp.content{runmode}", "2.17.0", + dep("Netcentric:accesscontroltool-oakindex-package{runmode}:3.0.0")), + contentPackage("acs-aem-commons-ui.apps{runmode}", "4.10.0", + dep("day/cq60/product:cq-content:6.3.64")), + contentPackage("aem-cms-system-config{runmode}", + dep("day/cq60/product:cq-ui-wcm-editor-content:1.1.224"), + dep("adobe/cq/product:cq-remotedam-client-ui-components:1.1.6"), + dep("adobe/cq60:core.wcm.components.all{runmode}:2.17.0")), + file("io.wcm.caconfig.editor-1.11.0.jar"), + file("io.wcm.wcm.ui.granite-1.9.2.jar")); + } + + File contentDir = new File(appsDir, "content"); + assertDirectories(contentDir, toInstallFolderNames("install", runmodeSuffixes)); + + for (String runmodeSuffix : runmodeSuffixes) { + File contentInstallDir = new File(contentDir, "install" + runmodeSuffix); + assertFiles(contentInstallDir, runmodeSuffix, + contentPackage("acs-aem-commons-ui.content{runmode}", "4.10.0"), + contentPackage("aem-cms-author-replicationagents{runmode}", + dep("adobe/consulting:acs-aem-commons-ui.content{runmode}:4.10.0")), + contentPackage("wcm-io-samples-sample-content{runmode}", "1.3.1-SNAPSHOT", + dep("wcm-io-samples:aem-cms-author-replicationagents{runmode}:1.3.1-SNAPSHOT"))); + } + + File containerDir = new File(appsDir, "container"); + assertDirectories(containerDir, toInstallFolderNames("install", runmodeSuffixes)); + + for (String runmodeSuffix : runmodeSuffixes) { + File containerInstallDir = new File(containerDir, "install" + runmodeSuffix); + assertFiles(containerInstallDir, runmodeSuffix, + contentPackage("accesscontroltool-package{runmode}", "3.0.0", + dep("adobe/consulting:acs-aem-commons-ui.apps{runmode}:4.10.0")), + contentPackage("core.wcm.components.all{runmode}", "2.17.0", + dep("Netcentric:accesscontroltool-oakindex-package{runmode}:3.0.0")), + contentPackage("core.wcm.components.config{runmode}", "2.17.0", + dep("Netcentric:accesscontroltool-oakindex-package{runmode}:3.0.0")), + contentPackage("wcm-io-samples-aem-cms-config{runmode}", + dep("wcm-io-samples:aem-cms-system-config{runmode}:1.3.1-SNAPSHOT")), + contentPackage("wcm-io-samples-complete{runmode}", "1.3.1-SNAPSHOT", + dep("wcm-io-samples:wcm-io-samples-aem-cms-config{runmode}:1.3.1-SNAPSHOT"))); + } + } + + @Test + void testBuild_RELEASE_SUFFIX_VERSION() throws Exception { + List files = new ModelParser(nodeDir).getInstallableFilesForNode(); + List runmodeSuffixes = Collections.singletonList(".author"); + File targetFile = new File(targetDir, "all.zip"); + + AllPackageBuilder builder = new AllPackageBuilder(targetFile, "test-group", "test-pkg") + .autoDependenciesMode(AutoDependenciesMode.IMMUTABLE_MUTABLE_SEPARATE) + .packageVersionMode(PackageVersionMode.RELEASE_SUFFIX_VERSION) + .version("99.99"); + builder.add(files, Collections.emptySet()); + assertTrue(builder.build(null)); + + ZipUtil.unpack(targetFile, targetUnpackDir); + + File appsDir = new File(targetUnpackDir, "jcr_root/apps/test-group-test-pkg-packages"); + assertDirectories(appsDir, "application", "content", "container"); + + File applicationDir = new File(appsDir, "application"); + assertDirectories(applicationDir, toInstallFolderNames("install", runmodeSuffixes)); + + for (String runmodeSuffix : runmodeSuffixes) { + File applicationInstallDir = new File(applicationDir, "install" + runmodeSuffix); + assertFiles(applicationInstallDir, runmodeSuffix, + contentPackage("accesscontroltool-apps-package{runmode}", "3.0.0-99_99", + dep("adobe/consulting:acs-aem-commons-ui.apps{runmode}:4.10.0-99_99")), + contentPackage("accesscontroltool-oakindex-package{runmode}", "3.0.0-99_99", + dep("Netcentric:accesscontroltool-package{runmode}:3.0.0-99_99")), + contentPackage("core.wcm.components.content{runmode}", "2.17.0-99_99", + dep("day/cq60/product:cq-platform-content:1.3.248"), + dep("Netcentric:accesscontroltool-oakindex-package{runmode}:3.0.0-99_99")), + contentPackage("core.wcm.components.extensions.amp.content{runmode}", "2.17.0-99_99", + dep("Netcentric:accesscontroltool-oakindex-package{runmode}:3.0.0-99_99")), + contentPackage("acs-aem-commons-ui.apps{runmode}", "4.10.0-99_99", + dep("day/cq60/product:cq-content:6.3.64")), + contentPackage("aem-cms-system-config{runmode}", + dep("day/cq60/product:cq-ui-wcm-editor-content:1.1.224"), + dep("adobe/cq/product:cq-remotedam-client-ui-components:1.1.6"), + dep("adobe/cq60:core.wcm.components.all{runmode}:2.17.0-99_99")), + file("io.wcm.caconfig.editor-1.11.0.jar"), + file("io.wcm.wcm.ui.granite-1.9.2.jar")); + } + + File contentDir = new File(appsDir, "content"); + assertDirectories(contentDir, toInstallFolderNames("install", runmodeSuffixes)); + + for (String runmodeSuffix : runmodeSuffixes) { + File contentInstallDir = new File(contentDir, "install" + runmodeSuffix); + assertFiles(contentInstallDir, runmodeSuffix, + contentPackage("acs-aem-commons-ui.content{runmode}", "4.10.0-99_99"), + contentPackage("aem-cms-author-replicationagents{runmode}", + dep("adobe/consulting:acs-aem-commons-ui.content{runmode}:4.10.0-99_99")), + contentPackage("wcm-io-samples-sample-content{runmode}", "1.3.1-SNAPSHOT", + dep("wcm-io-samples:aem-cms-author-replicationagents{runmode}:1.3.1-SNAPSHOT"))); + } + + File containerDir = new File(appsDir, "container"); + assertDirectories(containerDir, toInstallFolderNames("install", runmodeSuffixes)); + + for (String runmodeSuffix : runmodeSuffixes) { + File containerInstallDir = new File(containerDir, "install" + runmodeSuffix); + assertFiles(containerInstallDir, runmodeSuffix, + contentPackage("accesscontroltool-package{runmode}", "3.0.0-99_99", + dep("adobe/consulting:acs-aem-commons-ui.apps{runmode}:4.10.0-99_99")), + contentPackage("core.wcm.components.all{runmode}", "2.17.0-99_99", + dep("Netcentric:accesscontroltool-oakindex-package{runmode}:3.0.0-99_99")), + contentPackage("core.wcm.components.config{runmode}", "2.17.0-99_99", + dep("Netcentric:accesscontroltool-oakindex-package{runmode}:3.0.0-99_99")), + contentPackage("wcm-io-samples-aem-cms-config{runmode}", + dep("wcm-io-samples:aem-cms-system-config{runmode}:1.3.1-SNAPSHOT")), + contentPackage("wcm-io-samples-complete{runmode}", "1.3.1-SNAPSHOT", + dep("wcm-io-samples:wcm-io-samples-aem-cms-config{runmode}:1.3.1-SNAPSHOT"))); + } + } + + @Test + void testBuild_RELEASE_SUFFIX_VERSION_SNAPSHOT() throws Exception { + List files = new ModelParser(nodeDir).getInstallableFilesForNode(); + List runmodeSuffixes = Collections.singletonList(".author"); + File targetFile = new File(targetDir, "all.zip"); + + AllPackageBuilder builder = new AllPackageBuilder(targetFile, "test-group", "test-pkg") + .autoDependenciesMode(AutoDependenciesMode.IMMUTABLE_MUTABLE_SEPARATE) + .packageVersionMode(PackageVersionMode.RELEASE_SUFFIX_VERSION) + .version("99.99-SNAPSHOT"); + builder.add(files, Collections.emptySet()); + assertTrue(builder.build(null)); + + ZipUtil.unpack(targetFile, targetUnpackDir); + + File appsDir = new File(targetUnpackDir, "jcr_root/apps/test-group-test-pkg-packages"); + assertDirectories(appsDir, "application", "content", "container"); + + File applicationDir = new File(appsDir, "application"); + assertDirectories(applicationDir, toInstallFolderNames("install", runmodeSuffixes)); + + for (String runmodeSuffix : runmodeSuffixes) { + File applicationInstallDir = new File(applicationDir, "install" + runmodeSuffix); + assertFiles(applicationInstallDir, runmodeSuffix, + contentPackage("accesscontroltool-apps-package{runmode}", "3.0.0-99_99-SNAPSHOT", + dep("adobe/consulting:acs-aem-commons-ui.apps{runmode}:4.10.0-99_99-SNAPSHOT")), + contentPackage("accesscontroltool-oakindex-package{runmode}", "3.0.0-99_99-SNAPSHOT", + dep("Netcentric:accesscontroltool-package{runmode}:3.0.0-99_99-SNAPSHOT")), + contentPackage("core.wcm.components.content{runmode}", "2.17.0-99_99-SNAPSHOT", + dep("day/cq60/product:cq-platform-content:1.3.248"), + dep("Netcentric:accesscontroltool-oakindex-package{runmode}:3.0.0-99_99-SNAPSHOT")), + contentPackage("core.wcm.components.extensions.amp.content{runmode}", "2.17.0-99_99-SNAPSHOT", + dep("Netcentric:accesscontroltool-oakindex-package{runmode}:3.0.0-99_99-SNAPSHOT")), + contentPackage("acs-aem-commons-ui.apps{runmode}", "4.10.0-99_99-SNAPSHOT", + dep("day/cq60/product:cq-content:6.3.64")), + contentPackage("aem-cms-system-config{runmode}", + dep("day/cq60/product:cq-ui-wcm-editor-content:1.1.224"), + dep("adobe/cq/product:cq-remotedam-client-ui-components:1.1.6"), + dep("adobe/cq60:core.wcm.components.all{runmode}:2.17.0-99_99-SNAPSHOT")), + file("io.wcm.caconfig.editor-1.11.0.jar"), + file("io.wcm.wcm.ui.granite-1.9.2.jar")); + } + + File contentDir = new File(appsDir, "content"); + assertDirectories(contentDir, toInstallFolderNames("install", runmodeSuffixes)); + + for (String runmodeSuffix : runmodeSuffixes) { + File contentInstallDir = new File(contentDir, "install" + runmodeSuffix); + assertFiles(contentInstallDir, runmodeSuffix, + contentPackage("acs-aem-commons-ui.content{runmode}", "4.10.0-99_99-SNAPSHOT"), + contentPackage("aem-cms-author-replicationagents{runmode}", + dep("adobe/consulting:acs-aem-commons-ui.content{runmode}:4.10.0-99_99-SNAPSHOT")), + contentPackage("wcm-io-samples-sample-content{runmode}", "1.3.1-SNAPSHOT", + dep("wcm-io-samples:aem-cms-author-replicationagents{runmode}:1.3.1-SNAPSHOT"))); + } + + File containerDir = new File(appsDir, "container"); + assertDirectories(containerDir, toInstallFolderNames("install", runmodeSuffixes)); + + for (String runmodeSuffix : runmodeSuffixes) { + File containerInstallDir = new File(containerDir, "install" + runmodeSuffix); + assertFiles(containerInstallDir, runmodeSuffix, + contentPackage("accesscontroltool-package{runmode}", "3.0.0-99_99-SNAPSHOT", + dep("adobe/consulting:acs-aem-commons-ui.apps{runmode}:4.10.0-99_99-SNAPSHOT")), + contentPackage("core.wcm.components.all{runmode}", "2.17.0-99_99-SNAPSHOT", + dep("Netcentric:accesscontroltool-oakindex-package{runmode}:3.0.0-99_99-SNAPSHOT")), + contentPackage("core.wcm.components.config{runmode}", "2.17.0-99_99-SNAPSHOT", + dep("Netcentric:accesscontroltool-oakindex-package{runmode}:3.0.0-99_99-SNAPSHOT")), + contentPackage("wcm-io-samples-aem-cms-config{runmode}", + dep("wcm-io-samples:aem-cms-system-config{runmode}:1.3.1-SNAPSHOT")), + contentPackage("wcm-io-samples-complete{runmode}", "1.3.1-SNAPSHOT", + dep("wcm-io-samples:wcm-io-samples-aem-cms-config{runmode}:1.3.1-SNAPSHOT"))); + } + } + +} diff --git a/tooling/conga-aem-maven-plugin/src/test/java/io/wcm/devops/conga/plugins/aem/maven/allpackage/AllPackageBuilderTest.java b/tooling/conga-aem-maven-plugin/src/test/java/io/wcm/devops/conga/plugins/aem/maven/allpackage/AllPackageBuilderTest.java index e3be4a19..41652868 100644 --- a/tooling/conga-aem-maven-plugin/src/test/java/io/wcm/devops/conga/plugins/aem/maven/allpackage/AllPackageBuilderTest.java +++ b/tooling/conga-aem-maven-plugin/src/test/java/io/wcm/devops/conga/plugins/aem/maven/allpackage/AllPackageBuilderTest.java @@ -352,7 +352,7 @@ void testBuild_IMMUTABLE_ONLY(Set cloudManagerTarget, List runmo } } - private String[] toInstallFolderNames(String baseName, List runmodeSuffixes) { + static String[] toInstallFolderNames(String baseName, List runmodeSuffixes) { return runmodeSuffixes.stream() .map(suffix -> baseName + suffix) .toArray(size -> new String[size]);