You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by da...@apache.org on 2020/10/16 07:48:39 UTC
[sling-feature-converter-maven-plugin] 22/26: Throw exception if
artifact cannot be resolved, rather than ignoring it
This is an automated email from the ASF dual-hosted git repository.
davidb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-feature-converter-maven-plugin.git
commit bda5a6a0b0176414e22985955df21327a3c05221
Author: David Bosschaert <bo...@adobe.com>
AuthorDate: Tue Oct 6 19:30:13 2020 +0100
Throw exception if artifact cannot be resolved, rather than ignoring it
---
.../java/org/apache/sling/cpconverter/maven/mojos/ContentPackage.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/main/java/org/apache/sling/cpconverter/maven/mojos/ContentPackage.java b/src/main/java/org/apache/sling/cpconverter/maven/mojos/ContentPackage.java
index 0956a5f..57a22d4 100644
--- a/src/main/java/org/apache/sling/cpconverter/maven/mojos/ContentPackage.java
+++ b/src/main/java/org/apache/sling/cpconverter/maven/mojos/ContentPackage.java
@@ -111,6 +111,8 @@ public class ContentPackage {
Artifact fileArt = resolveArtifact(repoSystem, repoSession, a);
if (fileArt != null) {
fileArtifacts.add(fileArt);
+ } else {
+ throw new RuntimeException("Unable to resolve artifact: " + a);
}
}
}