On Tue, 2014-09-23 at 08:53 -0400, Gary Gregory wrote:
> I ran:
>
> mvn test
> mvn install -DskipTests
>
> and got:
>
> [INFO] Rat check: Summary of files. Unapproved: 2 unknown: 2 generated: 0
> approved: 546 licence.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache HttpComponents Client ....................... SUCCESS [
> 9.254 s]
> [INFO] Apache HttpClient .................................. FAILURE [
> 44.541 s]
> [INFO] Apache HttpClient Mime ............................. SKIPPED
> [INFO] Apache HttpClient Fluent API ....................... SKIPPED
> [INFO] Apache HttpClient Cache ............................ SKIPPED
> [INFO] Apache HttpClient Windows features ................. SKIPPED
> [INFO] Apache HttpClient OSGi bundle ...................... SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 55.306 s
> [INFO] Finished at: 2014-09-23T08:47:23-04:00
> [INFO] Final Memory: 46M/600M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check
> (default) on project httpclient: Too many files with unapproved license: 2
> See RAT report in:
> C:\temp\rc\httpcomponents-client-4.4-beta1\httpclient\target\rat.txt ->
> [Help 1]
>
> that rat.txt:
>
> 2 Unknown Licenses
>
> *******************************
>
> Unapproved licenses:
>
>
> C:/temp/rc/httpcomponents-client-4.4-beta1/httpclient/src/test/resources/hc-test-1.truststore
>
> C:/temp/rc/httpcomponents-client-4.4-beta1/httpclient/src/test/resources/hc-test-2.truststore
>
> *******************************
>
> Am I the only one to see this?
>
> I am on:
>
> Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4;
> 2014-08-11T16:58:10-04:00)
> Maven home: C:\Java\apache-maven-3.2.3
> Java version: 1.8.0_20, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.8.0_20\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
>
> Gary
>
I cannot reproduce it locally. RAT checks always pass for me. See below
---
mvn clean test install -DskipTests
...
INFO] --- apache-rat-plugin:0.11:check (default) @ httpclient ---
[INFO] 51 implicit excludes (use -debug for more details).
[INFO] Exclude: src/docbkx/resources/**
[INFO] 550 resources included (use -debug for more details)
[INFO] Rat check: Summary of files. Unapproved: 0 unknown: 0 generated:
0 approved: 546 licence.
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @
httpclient ---
[INFO]
Installing
/home/oleg/src/apache.org/httpcomponents/project-release-tools/build/repos-dist-dev-httpcomponents/httpclient-4.4-beta1-RC1/httpcomponents-client-4.4-beta1/httpclient/target/httpclient-4.4-beta1.jar
to
/home/oleg/.m2/repository/org/apache/httpcomponents/httpclient/4.4-beta1/httpclient-4.4-beta1.jar
...
[INFO] Reactor Summary:
[INFO]
[INFO] Apache HttpComponents Client ...................... SUCCESS
[3.820s]
[INFO] Apache HttpClient ................................. SUCCESS
[31.770s]
[INFO] Apache HttpClient Mime ............................ SUCCESS
[4.056s]
[INFO] Apache HttpClient Fluent API ...................... SUCCESS
[3.714s]
[INFO] Apache HttpClient Cache ........................... SUCCESS
[6.729s]
[INFO] Apache HttpClient Windows features ................ SUCCESS
[3.167s]
[INFO] Apache HttpClient OSGi bundle ..................... SUCCESS
[10.247s]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
---
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da;
2013-02-19 14:51:28+0100)
Maven home: /opt/maven
Java version: 1.6.0_45, vendor: Sun Microsystems Inc.
Java home: /opt/oracle-jdk-1.6.0.45/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-35-generic", arch: "amd64", family:
"unix"
---
Any chance could add explicit exclude for *.truststore binaries to
httpclient module pom.xml, like that?
---
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>0.11</version>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<excludes>
<exclude>src/docbkx/resources/**</exclude>
<exclude>**/*.truststore</exclude>
</excludes>
</configuration>
</plugin>
---
Oleg
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]