Skip to content

Commit

Permalink
Re-throw CoreException only if we couldn't find the project locations of
Browse files Browse the repository at this point in the history
the plugin dependencies
  • Loading branch information
ArloL committed May 31, 2016
1 parent cdb0e3b commit 464a051
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,9 @@ public static ResourceResolver getResourceResolver(
mvn.getConfiguredMojo(session, mojoExecution, Mojo.class);
mvn.releaseMojo(configuredMojo, mojoExecution);
} catch (CoreException e) {
if (pluginDepencyProjectLocations.isEmpty()) {
throw e;
}
LOG.error("Could not get mojo", e);
}
return new ResourceResolver(mojoExecution.getMojoDescriptor()
Expand Down

0 comments on commit 464a051

Please sign in to comment.