You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@creadur.apache.org by "Karl Heinz Marbaise (JIRA)" <ji...@apache.org> on 2016/12/18 14:38:58 UTC
[jira] [Comment Edited] (RAT-225) Maven RAT excludes do not work
under windows
[ https://issues.apache.org/jira/browse/RAT-225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15758921#comment-15758921 ]
Karl Heinz Marbaise edited comment on RAT-225 at 12/18/16 2:38 PM:
-------------------------------------------------------------------
First I can say there is no relationship to Windows. It will fail also on Mac and Linux (not tested).
The problem is simply if you call the goal directly via: {{mvn apache-rat:check}} without the life cycle the execution with the id {{default-cli}} will be used to configure the appropriate plugin. In this case the plugin is configured in the reporting area which means only for running {{mvn site}} but not for running out of the life cycle.
This problem can be simply solved by moving the configuration in a {{pluginManagement}} area which will result in a working execution.
I have attached a patch to this issue which solves the configuration issue in commons...
was (Author: khmarbaise):
First I can say there is no relationship to Windows. It will fail also on Mac and Linux (not tested).
The problem is simply if you call the goal directly via: `mvn apache-rat:check` without the life cycle the execution with the id `default-cli` will be used to configure the appropriate plugin. In this case the plugin is configured in the reporting area which means only for running `mvn site` but not for running out of the life cycle.
This problem can be simply solved by moving the configuration in a `pluginManagement` area which will result in a working execution.
I have attached a patch to this issue which solves the configuration issue in commons...
> Maven RAT excludes do not work under windows
> --------------------------------------------
>
> Key: RAT-225
> URL: https://issues.apache.org/jira/browse/RAT-225
> Project: Apache Rat
> Issue Type: Bug
> Components: maven
> Affects Versions: 0.12
> Environment: windows 10
> Reporter: Pascal Schumacher
> Attachments: apache-rat.patch
>
>
> {code}mvn apache-rat:check{code} fails for projects like commons-lang and commons-compress.
> Commons lang uses this plugin configuration:
> {code}<plugin>
> <groupId>org.apache.rat</groupId>
> <artifactId>apache-rat-plugin</artifactId>
> <configuration>
> <excludes>
> <exclude>site-content/**</exclude>
> <exclude>src/site/resources/.htaccess</exclude>
> <exclude>src/site/resources/download_lang.cgi</exclude>
> <exclude>src/site/resources/release-notes/RELEASE-NOTES-*.txt</exclude>
> <exclude>src/test/resources/lang-708-input.txt</exclude>
> </excludes>
> </configuration>
> </plugin>{code}
> see https://github.com/apache/commons-lang/blob/master/pom.xml#L733
> {code}mvn apache-rat:check{code} fails and rat.txt contains:
> {code}!????? src/site/resources/.htaccess
> !????? src/site/resources/release-notes/RELEASE-NOTES-1.0.1.txt{code}
> I guess this is because I'm using Windows.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)