This is an automated email from the ASF dual-hosted git repository.
sseifert 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 04786ef SLING-13081 Improve error message when providing incomplete
includea artifact configuration (#97)
04786ef is described below
commit 04786ef9d06dbf4f0d5a3e4c76da3bdf5e4ae1f1
Author: Stefan Seifert <[email protected]>
AuthorDate: Thu Jan 29 11:41:28 2026 +0100
SLING-13081 Improve error message when providing incomplete includea
artifact configuration (#97)
---
.../apache/sling/feature/maven/mojos/FeatureSelectionConfig.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git
a/src/main/java/org/apache/sling/feature/maven/mojos/FeatureSelectionConfig.java
b/src/main/java/org/apache/sling/feature/maven/mojos/FeatureSelectionConfig.java
index 131eddd..46494eb 100644
---
a/src/main/java/org/apache/sling/feature/maven/mojos/FeatureSelectionConfig.java
+++
b/src/main/java/org/apache/sling/feature/maven/mojos/FeatureSelectionConfig.java
@@ -93,8 +93,12 @@ public class FeatureSelectionConfig {
}
public void setIncludeArtifact(final Dependency a) {
- selections.add(new Selection(
- SelectionType.ARTIFACT,
ProjectHelper.toArtifactId(a).toMvnId()));
+ try {
+ selections.add(new Selection(
+ SelectionType.ARTIFACT,
ProjectHelper.toArtifactId(a).toMvnId()));
+ } catch (IllegalArgumentException ex) {
+ throw new IllegalArgumentException("Unable to set include
artifact: " + a, ex);
+ }
}
public void setIncludeClassifier(final String classifier) {