pzygielo commented on issue #1592:
URL: 
https://github.com/apache/maven-dependency-plugin/issues/1592#issuecomment-3943230255

   I guess it's because `commons-io-2.6.pom` uses `maven-dependency-plugin` in 
version different  than you think.
   
   Use **specific** plugin version that supports `outputType`, for example:
   ```
   mvn --quiet org.apache.maven.plugins:maven-dependency-plugin:3.8.1:tree 
-DoutputType=json -DoutputFile=/dev/stdout -f commons-io-2.6.pom
   ```
   instead to get
   ```json
   {
     "groupId": "commons-io",
     "artifactId": "commons-io",
     "version": "2.6",
     "type": "jar",
     "scope": "",
     "classifier": "",
     "optional": "false",
     "children": [
       {
         "groupId": "junit",
         "artifactId": "junit",
         "version": "4.12",
         "type": "jar",
         "scope": "test",
         "classifier": "",
         "optional": "false",
         "children": [
           {
             "groupId": "org.hamcrest",
             "artifactId": "hamcrest-core",
             "version": "1.3",
             "type": "jar",
             "scope": "test",
             "classifier": "",
             "optional": "false"
           }
           ]
       }
       ]
   }
   ```
   
   
   I suggest to close this as _not planned_.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to