ThStock commented on pull request #76: URL: https://github.com/apache/maven-dependency-plugin/pull/76#issuecomment-655104731
``` cat pom.xml && mvn -U dependency:tree -DoutputFile=dep.tree && sed 's, $,TRAILING_SPACE,g' dep.tree <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>test</groupId> <artifactId>test</artifactId> <version>0.1.0-SNAPSHOT</version> <dependencies> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <version>3.10</version> <optional>true</optional> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-math3</artifactId> <version>3.6.1</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>3.1.2</version> </plugin> </plugins> </build> </project> [INFO] Scanning for projects... [INFO] [INFO] -----------------------------< test:test >------------------------------ [INFO] Building test 0.1.0-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-dependency-plugin:3.1.2:tree (default-cli) @ test --- [INFO] Wrote dependency tree to: ... /dep.tree [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.877 s [INFO] Finished at: 2020-07-07T22:12:29+02:00 [INFO] ------------------------------------------------------------------------ test:test:jar:0.1.0-SNAPSHOT +- org.apache.commons:commons-lang3:jar:3.10:compile (optional)TRAILING_SPACE \- org.apache.commons:commons-math3:jar:3.6.1:compile ``` ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
