You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by pa...@apache.org on 2021/08/15 21:45:22 UTC
[sling-slingfeature-maven-plugin] branch master updated:
SLING-10737: only warn and not fail on empty aggregates.
This is an automated email from the ASF dual-hosted git repository.
pauls pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-slingfeature-maven-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 2b3ff44 SLING-10737: only warn and not fail on empty aggregates.
2b3ff44 is described below
commit 2b3ff44f6119ea9479ae0bf446dd233cee633ab5
Author: Karl Pauls <ka...@gmail.com>
AuthorDate: Sun Aug 15 23:45:14 2021 +0200
SLING-10737: only warn and not fail on empty aggregates.
---
.../org/apache/sling/feature/maven/mojos/AggregateFeaturesMojo.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/sling/feature/maven/mojos/AggregateFeaturesMojo.java b/src/main/java/org/apache/sling/feature/maven/mojos/AggregateFeaturesMojo.java
index 9035e24..ebdb761 100644
--- a/src/main/java/org/apache/sling/feature/maven/mojos/AggregateFeaturesMojo.java
+++ b/src/main/java/org/apache/sling/feature/maven/mojos/AggregateFeaturesMojo.java
@@ -94,8 +94,7 @@ public class AggregateFeaturesMojo extends AbstractIncludingFeatureMojo {
final Map<String, Feature> selection = this.getSelectedFeatures(aggregate);
if (selection.isEmpty()) {
- throw new MojoExecutionException(
- "No features found for aggregate with classifier " + aggregate.classifier);
+ getLog().warn("No features found for aggregate with classifier " + aggregate.classifier);
}
final Map<String,String> variablesOverwrites = new HashMap<>();