[ 
https://issues.apache.org/jira/browse/RAT-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bernd Eckenfels updated RAT-127:
--------------------------------

    Description: 
When running the RAT 0.8 maven plugin from command line (no POM entry for the 
plugin) it will print a short error message how many violations it found, but 
this message could be enhanced by pointing to the report file:

C:\ws\proj>\ws\apache-maven-3.0.4\bin\mvn -s ..\empty.xml 
org.apache.rat:apache-rat-plugin:check
...
[INFO] --- apache-rat-plugin:0.8:check (default-cli) @ proj ---
...
[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.8:check 
(default-cli) on project proj: Too many unapproved licenses: 26 -> [Help 1]

Better:

[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.8:check 
(default-cli) on project proj: Too many unapproved licenses: 26. See 
target/rat.txt

  was:
When running the RAT 0.8 maven plugin from command line (no POM entry for the 
plugin) it will print a short error message how many violations it found, but 
this message could be enhanced by pointing to the report file:

C:\ws\proj>\ws\apache-maven-3.0.4\bin\mvn -s ..\empty.xml 
org.apache.rat:apache-rat-plugin:check
...
[INFO] --- apache-rat-plugin:0.8:check (default-cli) @ proj ---
...
[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.8:check 
(default-cli) on project proj: Too many unapproved licenses: 26 -> [Help 1]

Better:

[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.8:check 
(default-cli) on project proj: Too many unapproved licenses: 26. See 
target/rat.txt



The excludes should eighter be contained in the eclipse defaults or have its 
own dotfile or scm category. A workaround would be to specify the excludes, 
unfortunatelly there seems to be no expression associated with the exclude 
property of the mojo.

    
> Print report file location in error message
> -------------------------------------------
>
>                 Key: RAT-127
>                 URL: https://issues.apache.org/jira/browse/RAT-127
>             Project: Apache Rat
>          Issue Type: Wish
>          Components: maven
>    Affects Versions: 0.8
>         Environment: Windows 7, Maven 3.0.4, Oracle JDK 1.7.0_11, Eclipse
>            Reporter: Bernd Eckenfels
>            Priority: Minor
>              Labels: maven, ux
>         Attachments: rat127.patch
>
>
> When running the RAT 0.8 maven plugin from command line (no POM entry for the 
> plugin) it will print a short error message how many violations it found, but 
> this message could be enhanced by pointing to the report file:
> C:\ws\proj>\ws\apache-maven-3.0.4\bin\mvn -s ..\empty.xml 
> org.apache.rat:apache-rat-plugin:check
> ...
> [INFO] --- apache-rat-plugin:0.8:check (default-cli) @ proj ---
> ...
> [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.8:check 
> (default-cli) on project proj: Too many unapproved licenses: 26 -> [Help 1]
> Better:
> [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.8:check 
> (default-cli) on project proj: Too many unapproved licenses: 26. See 
> target/rat.txt

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to