diff --git a/ui/src/main/java/org/eclipse/starter/ui/MavenUtility.java b/ui/src/main/java/org/eclipse/starter/ui/MavenUtility.java index 195121f4..33ab4953 100644 --- a/ui/src/main/java/org/eclipse/starter/ui/MavenUtility.java +++ b/ui/src/main/java/org/eclipse/starter/ui/MavenUtility.java @@ -23,7 +23,11 @@ public static void invokeMavenArchetype(String archetypeGroupId, String archetyp System.out, System.err); if (result != 0) { - throw new RuntimeException("Failed to invoke Maven Archetype."); + StringBuffer mavenCommand = new StringBuffer("mvn"); + options.forEach(o -> mavenCommand.append(" " + o)); + + throw new RuntimeException( + "Failed to invoke Maven Archetype command: " + mavenCommand.toString()); } } }