Maven 2.x Dependency Plugin

dependy:resolve-plugins doesn't output to file when using outputFile parameter

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.2
  • Component/s: resolve-plugins
  • Labels:
    None
  • Environment:
    $ mvn --version
    Maven version: 2.0.8
    Java version: 1.6.0_03
    OS name: "linux" version: "2.6.22-14-generic" arch: "i386" Family: "unix"
  • Number of attachments :
    0

Description

The dependency:tree and dependency:resolve goals output to file when there's an outputFile parameter. The documentation for resolve-plugins indicates it's possible, but running mvn dependency:resolve-plugins -DoutputFile=plugin-dep.txt only outputs to the console.

Activity

Hide
Nedko Hristov added a comment -

I came upon the same problem. The documentation specifies that the option is valid and working:
http://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html#outputFile
I tried both full and relative paths and neither works correctly. Unfortunately the description does not provide any examles. A workaround will be to use the following command for generating output:
mvn dependency:tree > foo.txt
Unfortunately that will include the unnecessary extra reactor information that you probably don't need.

Show
Nedko Hristov added a comment - I came upon the same problem. The documentation specifies that the option is valid and working: http://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html#outputFile I tried both full and relative paths and neither works correctly. Unfortunately the description does not provide any examles. A workaround will be to use the following command for generating output: mvn dependency:tree > foo.txt Unfortunately that will include the unnecessary extra reactor information that you probably don't need.
Hide
Dan Tran added a comment -

Fixed at

Revision: 894988
Author: dantran
Date: 2:14:27 AM, Friday, January 01, 2010
Message:
MDEP-161 Implement outputFile configuration in dependency:resolve-plugins goal


Modified : /maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/resolvers/ResolvePluginsMojo.java

Show
Dan Tran added a comment - Fixed at Revision: 894988 Author: dantran Date: 2:14:27 AM, Friday, January 01, 2010 Message: MDEP-161 Implement outputFile configuration in dependency:resolve-plugins goal
Modified : /maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/resolvers/ResolvePluginsMojo.java

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: