Skip to content

Commit 7057472

Browse files
committed
[jgitflow-maven-plugin] merging 'release/1.10.0' into 'master'
2 parents 55bed71 + 08f762a commit 7057472

21 files changed

Lines changed: 271 additions & 41 deletions

File tree

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,19 @@ npm-debug.log
1616
.settings
1717
.externalToolBuilders
1818
.pmd
19+
.eclipse-pmd
1920
.checkstyle
2021
.idea
2122
.vagrant
2223
*.iml
2324
.DS_Store
25+
*.retry
2426
.rubygems
2527
.sass-cache
2628
.rubygems-gem-maven-plugin
2729
*.sublime-*
2830
*nbactions*.xml
2931
.temp/
32+
.vlt
33+
.vlt-sync*
34+
.brackets.json

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ jdk:
2626
# Make sure travis can use container-based infrastructure
2727
sudo: false
2828

29+
# Switch back to Maven 3.6.1 due to https://github.com/mojohaus/build-helper-maven-plugin/issues/81
30+
before_install:
31+
- wget https://archive.apache.org/dist/maven/maven-3/3.6.1/binaries/apache-maven-3.6.1-bin.zip
32+
- unzip -qq apache-maven-3.6.1-bin.zip
33+
- export M2_HOME=$PWD/apache-maven-3.6.1
34+
- export PATH=$M2_HOME/bin:$PATH
35+
2936
install: "mvn -s ./.travis.maven-settings.xml clean"
3037

3138
script:

changes.xml

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

26+
<release version="1.10.0" date="2020-01-30">
27+
<action type="add" dev="sseifert">
28+
conga-aem-crypto-cli: Add command line options to encrypt and decrypt values using AEM crypto support.
29+
</action>
30+
<action type="fix" dev="sseifert">
31+
conga-aem-crypto-cli: Allow to generate AEM crypto keys without specifying and Ansible vault password.
32+
</action>
33+
<action type="fix" dev="sseifert">
34+
conga-aem-maven-plugin: Retry HTTP action in case of JSON parse failure (system may respond temporarily with non-JSON response).
35+
</action>
36+
<action type="fix" dev="mrozati" issue="WTOOL-56">
37+
Add support for XML namespace "granite" when building content packages.
38+
</action>
39+
</release>
40+
2641
<release version="1.9.2" date="2019-10-01">
2742
<action type="add" dev="sseifert" issue="WTOOL-54">
2843
conga-aem-maven-plugin: Add two more bundles to "Bundle Status Whitelist Bundle Names" property.

conga-aem-plugin/pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
<parent>
2626
<groupId>io.wcm.devops</groupId>
2727
<artifactId>io.wcm.devops.parent_toplevel</artifactId>
28-
<version>1.1.6</version>
28+
<version>1.2.0</version>
2929
<relativePath />
3030
</parent>
3131

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

3737
<name>CONGA AEM Plugin</name>
@@ -67,13 +67,13 @@
6767
<dependency>
6868
<groupId>io.wcm.tooling.commons</groupId>
6969
<artifactId>io.wcm.tooling.commons.content-package-builder</artifactId>
70-
<version>1.4.2</version>
70+
<version>1.4.4</version>
7171
<scope>compile</scope>
7272
</dependency>
7373
<dependency>
7474
<groupId>io.wcm.tooling.commons</groupId>
7575
<artifactId>io.wcm.tooling.commons.crx-packmgr-helper</artifactId>
76-
<version>1.6.0</version>
76+
<version>1.6.2</version>
7777
<scope>compile</scope>
7878
</dependency>
7979

@@ -93,7 +93,7 @@
9393
<dependency>
9494
<groupId>org.apache.commons</groupId>
9595
<artifactId>commons-compress</artifactId>
96-
<version>1.18</version>
96+
<version>1.19</version>
9797
<scope>compile</scope>
9898
</dependency>
9999

conga-aem-plugin/src/main/java/io/wcm/devops/conga/plugins/aem/handlebars/helper/AbstractFilter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ protected final String getValue(Map<String, Object> map, String key) {
5151
* @param key Key
5252
* @return Value or null if not set
5353
*/
54+
@SuppressWarnings("PMD.PreserveStackTrace")
5455
protected final String getRegexValue(Map<String, Object> map, String key) {
5556
String value = getValue(map, key);
5657

conga-aem-plugin/src/main/java/io/wcm/devops/conga/plugins/aem/handlebars/helper/AbstractFilterHelper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
abstract class AbstractFilterHelper implements HelperPlugin<Object> {
3434

3535
@Override
36+
@SuppressWarnings("PMD.PreserveStackTrace")
3637
public final Object apply(Object context, Options options, HelperContext pluginContext) throws IOException {
3738
if (!(context instanceof Map)) {
3839
throw new IllegalArgumentException("Excpected map object for filter rule.");

conga-aem-plugin/src/main/java/io/wcm/devops/conga/plugins/aem/handlebars/helper/AemDispatcherFilterHelper.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ public String getName() {
4545
protected String generateFilter(Map<String, Object> filterMap, Options options) {
4646
DispatcherFilter filter = new DispatcherFilter(filterMap);
4747

48-
StringBuilder sb = new StringBuilder();
49-
sb.append("{ ");
50-
sb.append("/type \"").append(filter.getType()).append("\" ");
48+
StringBuilder sb = new StringBuilder()
49+
.append("{ ")
50+
.append("/type \"").append(filter.getType()).append("\" ");
5151

5252
if (StringUtils.isNotEmpty(filter.getMethod())) {
5353
sb.append("/method '").append(filter.getMethod()).append("' ");

conga-aem-plugin/src/main/java/io/wcm/devops/conga/plugins/aem/handlebars/helper/WebConsolePasswordHashHelper.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ public Object apply(Object context, Options options, HelperContext pluginContext
9494
* @param hashAlgorithm The hash algorithm to use
9595
* @param encoding The encoding to use
9696
* @return The hashed password (hashed + encoded as Base64)
97-
* @throws IOException
9897
*/
9998
private String hashPassword(String password, final String hashAlgorithm, final String encoding) throws IOException {
10099
byte[] bytePassword;
@@ -104,25 +103,25 @@ private String hashPassword(String password, final String hashAlgorithm, final S
104103
try {
105104
bytePassword = password.getBytes(encoding);
106105
}
107-
catch (UnsupportedEncodingException e) {
108-
throw new IOException("Cannot hash the password: " + e);
106+
catch (UnsupportedEncodingException ex) {
107+
throw new IOException("Cannot hash the password.", ex);
109108
}
110109

111110
// create password hash
112111
try {
113112
final MessageDigest md = MessageDigest.getInstance(hashAlgorithm);
114113
hashedPassword = md.digest(bytePassword);
115114
}
116-
catch (NoSuchAlgorithmException e) {
117-
throw new IOException("Cannot hash the password: " + e);
115+
catch (NoSuchAlgorithmException ex) {
116+
throw new IOException("Cannot hash the password.", ex);
118117
}
119118

120119
// encode hashed password to utf8
121120
try {
122121
hashedPasswordBase64 = new String(Base64.getEncoder().encode(hashedPassword), encoding);
123122
}
124-
catch (UnsupportedEncodingException e) {
125-
throw new IOException("Invalid Encoding: " + e);
123+
catch (UnsupportedEncodingException ex) {
124+
throw new IOException("Invalid Encoding.", ex);
126125
}
127126

128127
return String.format("{%s}%s", hashAlgorithm.toLowerCase(), hashedPasswordBase64);

conga-aem-plugin/src/main/java/io/wcm/devops/conga/plugins/aem/postprocessor/ContentPackageOsgiConfigPostProcessor.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public List<FileContext> apply(FileContext fileContext, PostProcessorContext con
9090

9191
// create AEM content package with configurations
9292
File zipFile = new File(file.getParentFile(), FilenameUtils.getBaseName(file.getName()) + ".zip");
93-
logger.info("Generate " + zipFile.getCanonicalPath());
93+
logger.info("Generate {}", zipFile.getCanonicalPath());
9494

9595
String rootPath = ContentPackageUtil.getMandatoryProp(options, PROPERTY_PACKAGE_ROOT_PATH);
9696

@@ -126,7 +126,6 @@ public List<FileContext> apply(FileContext fileContext, PostProcessorContext con
126126
* @param rootPath Root path
127127
* @param fileHeader File header
128128
* @param context Post processor context
129-
* @throws IOException
130129
*/
131130
private void generateOsgiConfigurations(Model model, ContentPackage contentPackage,
132131
String rootPath, FileHeaderContext fileHeader, PostProcessorContext context) throws IOException {

conga-aem-plugin/src/main/java/io/wcm/devops/conga/plugins/aem/postprocessor/ContentPackagePostProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public List<FileContext> apply(FileContext fileContext, PostProcessorContext con
8383

8484
// create AEM content package with configurations
8585
File zipFile = new File(file.getParentFile(), FilenameUtils.getBaseName(file.getName()) + ".zip");
86-
logger.info("Generate " + zipFile.getCanonicalPath());
86+
logger.info("Generate {}", zipFile.getCanonicalPath());
8787

8888
String rootPath = ContentPackageUtil.getMandatoryProp(options, PROPERTY_PACKAGE_ROOT_PATH);
8989

0 commit comments

Comments
 (0)