From 5e5adb37405a4c794ad02a27b2a0f556e531de32 Mon Sep 17 00:00:00 2001 From: Oleg Nenashev Date: Fri, 9 Oct 2020 11:23:21 +0200 Subject: [PATCH] Fix documentation for the list-plugin-dependencies mojo, not all plugins are listed --- .../maven/plugins/hpi/ListPluginDependenciesMojo.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/jenkinsci/maven/plugins/hpi/ListPluginDependenciesMojo.java b/src/main/java/org/jenkinsci/maven/plugins/hpi/ListPluginDependenciesMojo.java index c0147aa2be..3f86a650a8 100644 --- a/src/main/java/org/jenkinsci/maven/plugins/hpi/ListPluginDependenciesMojo.java +++ b/src/main/java/org/jenkinsci/maven/plugins/hpi/ListPluginDependenciesMojo.java @@ -14,7 +14,8 @@ import java.io.Writer; /** - * List up all the plugin dependencies. + * List up all plugin dependencies declared in the project. + * Transitive plugin dependencies will not be listed. * * @author Kohsuke Kawaguchi */ @@ -26,6 +27,9 @@ public class ListPluginDependenciesMojo extends AbstractHpiMojo { @Parameter(property = "outputFile") protected File outputFile; + // TODO(oleg_nenashev): Add support for transitive plugin dependencies. + // Might require reusing/refactoring the plugin dependency tree resolution code in plugin installation mojos. + public void execute() throws MojoExecutionException, MojoFailureException { try { Writer w = outputFile==null ? new NullWriter() : new OutputStreamWriter(new FileOutputStream(outputFile),"UTF-8");