summaryrefslogtreecommitdiffstats
path: root/maven-plugins/trunk/maven-dependency-plugin/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'maven-plugins/trunk/maven-dependency-plugin/src/main/java')
-rw-r--r--maven-plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/tuscany/maven/dependency/plugin/ClassConflictsDetectorMojo.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/maven-plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/tuscany/maven/dependency/plugin/ClassConflictsDetectorMojo.java b/maven-plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/tuscany/maven/dependency/plugin/ClassConflictsDetectorMojo.java
index 7c072a6b5c..c565030ed8 100644
--- a/maven-plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/tuscany/maven/dependency/plugin/ClassConflictsDetectorMojo.java
+++ b/maven-plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/tuscany/maven/dependency/plugin/ClassConflictsDetectorMojo.java
@@ -107,7 +107,8 @@ public class ClassConflictsDetectorMojo extends AbstractMojo {
continue;
}
if (artifact.isResolved()) {
- if ("jar".equals(artifact.getType())) {
+ //Check if artifact is a jar & actually points to a file
+ if ("jar".equals(artifact.getType()) && (artifact.getFile() != null && artifact.getFile().isFile())) {
files.add(artifact.getFile());
}
}