You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expand error messages when quarkus cli fail hard on bad settings.xml
* Fixes#29817
* recurse the exception stack when we can't create the artifact resolver, and append together all of the error messages
* the useful error message isn't in the `BootstrapMavenException`, it's in the cause for that exception
Signed-off-by:Nathan Erwin <[email protected]>
Copy file name to clipboardExpand all lines: independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/project/QuarkusProjectHelper.java
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -237,7 +237,18 @@ public static MavenArtifactResolver artifactResolver() {
237
237
.setWorkspaceDiscovery(false)
238
238
.build();
239
239
} catch (BootstrapMavenExceptione) {
240
-
thrownewIllegalStateException("Failed to initialize the Maven artifact resolver", e);
240
+
StringBuildermessages = newStringBuilder("Failed to initialize the Maven artifact resolver");
241
+
Throwablecurrent = e;
242
+
while (null != current) {
243
+
if (null != current.getMessage() && !current.getMessage().isBlank()) {
0 commit comments