Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
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 :
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.
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.