Skip to content

Commit ce3b3d1

Browse files
committed
Don't warn if mapping p2 dependencies is not enabled
If mapping p2 dependencies is not enabled there should be no warning but just an info message about the number.
1 parent bf896e0 commit ce3b3d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tycho-packaging-plugin/src/main/java/org/eclipse/tycho/packaging/UpdateConsumerPomMojo.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,14 +259,16 @@ public void execute() throws MojoExecutionException, MojoFailureException {
259259
}
260260
if (p2Skipped.isEmpty()) {
261261
log.info("All system scoped dependencies were mapped to maven artifacts");
262-
} else {
262+
} else if (mapP2Dependencies) {
263263
log.warn(resolved + " system scoped dependencies were mapped to maven artifacts, " + p2Skipped.size()
264264
+ " were skipped");
265265
if (log.isDebugEnabled()) {
266266
for (String skipped : p2Skipped) {
267267
log.debug("Skipped: " + skipped);
268268
}
269269
}
270+
} else {
271+
log.info(p2Skipped.size() + " system scoped dependencies were not mapped to maven artifacts");
270272
}
271273
try {
272274
modelWriter.write(output, null, projectModel);

0 commit comments

Comments
 (0)