You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@creadur.apache.org by ant elder <an...@gmail.com> on 2010/06/14 21:39:24 UTC

Why does rat plugin fail with unapproved licenses for things that are excluded?

I'm trying to set up the rat maven plugin to validate a distribution
build but the build fails with "Too many unapproved licenses:" for
files that I've excluded, is there some other parameter i need to set?

The pom.xml has:

                   <plugin>
                       <groupId>org.apache.rat</groupId>
                       <artifactId>apache-rat-plugin</artifactId>
                       <version>0.6</version>
                       <executions>
                           <execution>
                               <goals>
                                   <goal>check</goal>
                               </goals>
                           </execution>
                       </executions>
                       <configuration>

<basedir>target\apache-tuscany-sca-all-2.0-SNAPSHOT.dir</basedir>
                          <excludeSubProjects>false</excludeSubProjects>
                          <excludes>
                             <exclude>CHANGES</exclude>
                             <exclude>**/*.mf</exclude>

<exclude>features/configuration/config.ini</exclude>
                          </excludes>
                       </configuration>
                   </plugin>

the  build console shows:

[INFO] [apache-rat:check {execution: default-cli}]
[INFO] Exclude: CHANGES
[INFO] Exclude: **/*.mf
[INFO] Exclude: features/configuration/config.ini
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Too many unapproved licenses: 105
[INFO] ------------------------------------------------------------------------

and the rat report thats generated in the target directory is at:
http://people.apache.org/~antelder/tuscany/rat/rat.txt

What do i need to do so that the rat uses the excluded files to stop
the build failing?

Many thanks,

  ...ant

Re: Why does rat plugin fail with unapproved licenses for things that are excluded?

Posted by ant elder <an...@apache.org>.
Terrific so it is. Thanks for the quick reply Jukka.

   ...ant

On Tue, Jun 15, 2010 at 8:34 AM, Jukka Zitting <ju...@gmail.com> wrote:
> Hi,
>
> On Mon, Jun 14, 2010 at 9:39 PM, ant elder <an...@gmail.com> wrote:
>> <exclude>**/*.mf</exclude>
>
> Try: <exclude>**/*.MF</exclude>
>
> AFAIUI the exclude patterns are case-sensitive.
>
> BR,
>
> Jukka Zitting
>

Re: Why does rat plugin fail with unapproved licenses for things that are excluded?

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

On Mon, Jun 14, 2010 at 9:39 PM, ant elder <an...@gmail.com> wrote:
> <exclude>**/*.mf</exclude>

Try: <exclude>**/*.MF</exclude>

AFAIUI the exclude patterns are case-sensitive.

BR,

Jukka Zitting

Re: Why does rat plugin fail with unapproved licenses for things that are excluded?

Posted by Ross Gardler <rg...@apache.org>.
Perhaps because you are excluding ".mf" but your files are ".MF"

Sent from my mobile device.

On 14 Jun 2010, at 20:39, ant elder <an...@gmail.com> wrote:

> I'm trying to set up the rat maven plugin to validate a distribution
> build but the build fails with "Too many unapproved licenses:" for
> files that I've excluded, is there some other parameter i need to set?
>
> The pom.xml has:
>
>                   <plugin>
>                       <groupId>org.apache.rat</groupId>
>                       <artifactId>apache-rat-plugin</artifactId>
>                       <version>0.6</version>
>                       <executions>
>                           <execution>
>                               <goals>
>                                   <goal>check</goal>
>                               </goals>
>                           </execution>
>                       </executions>
>                       <configuration>
>
> <basedir>target\apache-tuscany-sca-all-2.0-SNAPSHOT.dir</basedir>
>                          <excludeSubProjects>false</ 
> excludeSubProjects>
>                          <excludes>
>                             <exclude>CHANGES</exclude>
>                             <exclude>**/*.mf</exclude>
>
> <exclude>features/configuration/config.ini</exclude>
>                          </excludes>
>                       </configuration>
>                   </plugin>
>
> the  build console shows:
>
> [INFO] [apache-rat:check {execution: default-cli}]
> [INFO] Exclude: CHANGES
> [INFO] Exclude: **/*.mf
> [INFO] Exclude: features/configuration/config.ini
> [INFO]  
> --- 
> ---------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]  
> --- 
> ---------------------------------------------------------------------
> [INFO] Too many unapproved licenses: 105
> [INFO]  
> --- 
> ---------------------------------------------------------------------
>
> and the rat report thats generated in the target directory is at:
> http://people.apache.org/~antelder/tuscany/rat/rat.txt
>
> What do i need to do so that the rat uses the excluded files to stop
> the build failing?
>
> Many thanks,
>
>  ...ant