Skip to content

Commit

Permalink
Don't warn if mapping p2 dependencies is not enabled
Browse files Browse the repository at this point in the history
If mapping p2 dependencies is not enabled there should be no warning but
just an info message about the number.
  • Loading branch information
laeubi committed Feb 4, 2024
1 parent bf896e0 commit ce3b3d1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -259,14 +259,16 @@ public void execute() throws MojoExecutionException, MojoFailureException {
}
if (p2Skipped.isEmpty()) {
log.info("All system scoped dependencies were mapped to maven artifacts");
} else {
} else if (mapP2Dependencies) {
log.warn(resolved + " system scoped dependencies were mapped to maven artifacts, " + p2Skipped.size()
+ " were skipped");
if (log.isDebugEnabled()) {
for (String skipped : p2Skipped) {
log.debug("Skipped: " + skipped);
}
}
} else {
log.info(p2Skipped.size() + " system scoped dependencies were not mapped to maven artifacts");
}
try {
modelWriter.write(output, null, projectModel);
Expand Down

0 comments on commit ce3b3d1

Please sign in to comment.