Passing properties via command line
chrassy opened this issue · comments
Describe the bug
Passing properties via command line has a bug in documentation.
It states:
"You can also pass properties directly on the command line, e.g.
mvn cluecumber-report:reporting -DsourceJsonReportDirectory=path_to_json_files -D..."
But this is not true. Expected mandatory parameters are:
reporting.generatedHtmlReportDirectory
reporting.sourceJsonReportDirectory
So the docs should be:
mvn cluecumber-report:reporting -Dreporting.sourceJsonReportDirectory=path_to_json_files -D..."
The error is also not very telling:
The parameters 'generatedHtmlReportDirectory', 'sourceJsonReportDirectory' for goal com.trivago.rta:cluecumber-report-plugin:2.9.4:reporting are missing or invalid -
To Reproduce
Steps to reproduce the behavior:
- Run in a maven project : mvn com.trivago.rta:cluecumber-report-plugin:2.9.4:reporting -DsourceJsonReportDirectory=target -DgeneratedHtmlReportDirectory=test
- See error
Expected behavior
Report should be generated
Additional context
The error was evident after i looked at the PropertyCollector.java class. So the docs and error returned should be changed. Or the code should be changed.