Added a property name to the "sources" parameter for CLI usage by gjd6640 · Pull Request #157 · mojohaus/build-helper-maven-plugin (original) (raw)

See issue #156.

This command demonstrate this change in action:

mvn dependency:tree -DoutputFile=target/sonar-scan-reports/maven-dependency-tree.txt org.codehaus.mojo:build-helper-maven-plugin:3.4.0-SNAPSHOT:add-source -Dsources="./target/sonar-scan-reports/,./target/someOtherDir/"

As described in the issue the idea here is to enable the user to generate files for each of the project's Maven modules and teach Maven where to find those files. This way when a plugin that runs later (ie: Sonarqube's scanner) executes Maven will provide it with the locations of these additional source files.