Skip to content

Commit 81d14a9

Browse files
committed
Merge branch 'develop'
2 parents 933986a + 59a4626 commit 81d14a9

9 files changed

Lines changed: 36 additions & 16 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<img src="https://wcm.io/images/favicon-16@2x.png"/> CONGA Plugin for AEM
22
======
33
[![Build](https://github.com/wcm-io-devops/conga-aem-plugin/workflows/Build/badge.svg?branch=develop)](https://github.com/wcm-io-devops/conga-aem-plugin/actions?query=workflow%3ABuild+branch%3Adevelop)
4-
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.wcm.devops.conga.plugins/io.wcm.devops.conga.plugins.aem/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.wcm.devops.conga.plugins/io.wcm.devops.conga.plugins.aem)
4+
[![Maven Central](https://img.shields.io/maven-central/v/io.wcm.devops.conga.plugins/io.wcm.devops.conga.plugins.aem)](https://repo1.maven.org/maven2/io/wcm/devops/conga/plugins/io.wcm.devops.conga.plugins.aem)
55
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=wcm-io-devops_conga-aem-plugin&metric=coverage)](https://sonarcloud.io/summary/new_code?id=wcm-io-devops_conga-aem-plugin)
66

77
Documentation: https://devops.wcm.io/conga/plugins/aem/<br/>

changes.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@
2323
xsi:schemaLocation="http://maven.apache.org/changes/1.0.0 https://maven.apache.org/plugins/maven-changes-plugin/xsd/changes-1.0.0.xsd">
2424
<body>
2525

26+
<release version="2.18.4" date="2022-08-15">
27+
<action type="update" dev="sseifert">
28+
conga-aem-maven-plugin: Check bundle status before package manager install status as the latter may report errors if certain bundles are restarted.
29+
</action>
30+
<action type="fix" dev="sseifert">
31+
conga-aem-maven-plugin: Ensure last modification dates for content package ZIP file entries are kept the same when rebuilding the "all" package.
32+
</action>
33+
</release>
34+
2635
<release version="2.18.2" date="2022-06-20">
2736
<action type="fix" dev="sseifert">
2837
conga-aem-maven-plugin: Add explicit handling for responses with invalid JSON payload for packager manager install status and bundle status calls.

conga-aem-plugin/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
<parent>
2626
<groupId>io.wcm.devops.conga.plugins</groupId>
2727
<artifactId>io.wcm.devops.conga.plugins.aem.parent</artifactId>
28-
<version>2.18.2</version>
28+
<version>2.18.4</version>
2929
<relativePath>../parent/pom.xml</relativePath>
3030
</parent>
3131

3232
<groupId>io.wcm.devops.conga.plugins</groupId>
3333
<artifactId>io.wcm.devops.conga.plugins.aem</artifactId>
34-
<version>2.18.2</version>
34+
<version>2.18.4</version>
3535
<packaging>jar</packaging>
3636

3737
<name>CONGA AEM Plugin</name>

parent/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
<groupId>io.wcm.devops.conga.plugins</groupId>
3333
<artifactId>io.wcm.devops.conga.plugins.aem.parent</artifactId>
34-
<version>2.18.2</version>
34+
<version>2.18.4</version>
3535
<packaging>pom</packaging>
3636

3737
<name>CONGA AEM Plugin</name>
@@ -75,7 +75,7 @@
7575
<dependency>
7676
<groupId>io.wcm.tooling.commons</groupId>
7777
<artifactId>io.wcm.tooling.commons.crx-packmgr-helper</artifactId>
78-
<version>2.1.2</version>
78+
<version>2.1.4</version>
7979
</dependency>
8080

8181
<dependency>

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
<parent>
2424
<groupId>io.wcm.devops.conga.plugins</groupId>
2525
<artifactId>io.wcm.devops.conga.plugins.aem.parent</artifactId>
26-
<version>2.18.2</version>
26+
<version>2.18.4</version>
2727
<relativePath>parent/pom.xml</relativePath>
2828
</parent>
2929

3030
<groupId>io.wcm.devops.conga.plugins</groupId>
3131
<artifactId>io.wcm.devops.conga.plugins.aem.root</artifactId>
32-
<version>2.18.2</version>
32+
<version>2.18.4</version>
3333
<packaging>pom</packaging>
3434

3535
<name>CONGA AEM Plugin</name>

src/site/markdown/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
wcm.io DevOps CONGA Plugin for [Adobe Experience Manager (AEM)][aem].
44

5-
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.wcm.devops.conga.plugins/io.wcm.devops.conga.plugins.aem/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.wcm.devops.conga.plugins/io.wcm.devops.conga.plugins.aem)
5+
[![Maven Central](https://img.shields.io/maven-central/v/io.wcm.devops.conga.plugins/io.wcm.devops.conga.plugins.aem)](https://repo1.maven.org/maven2/io/wcm/devops/conga/plugins/io.wcm.devops.conga.plugins.aem)
66

77

88
### Documentation

tooling/conga-aem-crypto-cli/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
<parent>
2626
<groupId>io.wcm.devops.conga.plugins</groupId>
2727
<artifactId>io.wcm.devops.conga.plugins.aem.parent</artifactId>
28-
<version>2.18.2</version>
28+
<version>2.18.4</version>
2929
<relativePath>../../parent/pom.xml</relativePath>
3030
</parent>
3131

3232
<groupId>io.wcm.devops.conga.plugins</groupId>
3333
<artifactId>conga-aem-crypto-cli</artifactId>
3434
<packaging>jar</packaging>
35-
<version>2.18.2</version>
35+
<version>2.18.4</version>
3636

3737
<name>CONGA AEM Crypto Command Line Interface</name>
3838
<description>Command line tool to generate Crypto keys for AEM.</description>
@@ -42,7 +42,7 @@
4242
<dependency>
4343
<groupId>io.wcm.devops.conga.plugins</groupId>
4444
<artifactId>io.wcm.devops.conga.plugins.aem</artifactId>
45-
<version>2.18.2</version>
45+
<version>2.18.4</version>
4646
<scope>compile</scope>
4747
<exclusions>
4848
<!-- Exclude all deps - only crypto util classes are used -->

tooling/conga-aem-maven-plugin/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
<parent>
2626
<groupId>io.wcm.devops.conga.plugins</groupId>
2727
<artifactId>io.wcm.devops.conga.plugins.aem.parent</artifactId>
28-
<version>2.18.2</version>
28+
<version>2.18.4</version>
2929
<relativePath>../../parent/pom.xml</relativePath>
3030
</parent>
3131

3232
<groupId>io.wcm.devops.conga.plugins</groupId>
3333
<artifactId>conga-aem-maven-plugin</artifactId>
3434
<packaging>maven-plugin</packaging>
35-
<version>2.18.2</version>
35+
<version>2.18.4</version>
3636

3737
<name>CONGA AEM Maven Plugin</name>
3838
<description>wcm.io DevOps CONGA - CONfiguration GenerAtor Maven Plugin for AEM</description>
@@ -63,7 +63,7 @@
6363
<dependency>
6464
<groupId>io.wcm.devops.conga.plugins</groupId>
6565
<artifactId>io.wcm.devops.conga.plugins.aem</artifactId>
66-
<version>2.18.2</version>
66+
<version>2.18.4</version>
6767
<scope>compile</scope>
6868
</dependency>
6969
<dependency>

tooling/conga-aem-maven-plugin/src/main/java/io/wcm/devops/conga/plugins/aem/maven/allpackage/AllPackageBuilder.java

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ private List<TemporaryContentPackageFile> processContentPackage(ContentPackageFi
557557
props.put(NAME_PACKAGE_TYPE, packageType);
558558
}
559559

560-
ZipEntry zipOutEntry = new ZipEntry(zipInEntry.getName());
560+
ZipEntry zipOutEntry = newZipEntry(zipInEntry);
561561
zipOut.putNextEntry(zipOutEntry);
562562
props.storeToXML(zipOut, null);
563563
processedEntry = true;
@@ -589,7 +589,7 @@ else if (StringUtils.equals(FilenameUtils.getExtension(zipInEntry.getName()), "z
589589

590590
// otherwise transfer the binary data 1:1
591591
if (!processedEntry) {
592-
ZipEntry zipOutEntry = new ZipEntry(zipInEntry.getName());
592+
ZipEntry zipOutEntry = newZipEntry(zipInEntry);
593593
zipOut.putNextEntry(zipOutEntry);
594594
IOUtils.copy(is, zipOut);
595595
}
@@ -615,6 +615,17 @@ else if (StringUtils.equals(FilenameUtils.getExtension(zipInEntry.getName()), "z
615615
return result;
616616
}
617617

618+
private static ZipEntry newZipEntry(ZipEntry in) {
619+
ZipEntry out = new ZipEntry(in.getName());
620+
if (in.getCreationTime() != null) {
621+
out.setCreationTime(in.getCreationTime());
622+
}
623+
if (in.getLastModifiedTime() != null) {
624+
out.setLastModifiedTime(in.getLastModifiedTime());
625+
}
626+
return out;
627+
}
628+
618629
/**
619630
* Add dependency information to dependencies string in properties (if it does not exist already).
620631
* @param props Properties

0 commit comments

Comments
 (0)