On Mon, Nov 27, 2017 at 11:41 AM, ant . <[email protected]> wrote:
The src package files to build for me with the error below. This is on
my work mac which I've never tried to build this on before so its
quite possibly my environment, but I don't have time to investigate
till later. So fyi:

[INFO] --- animal-sniffer-maven-plugin:1.16:check
(checkAPIcompatibility) @ httpclient ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java16:1.0 [ERROR] /Users/anthonyelder/Development/httpcomponents/httpcomponents-client-4.5.4/httpclient/src/main/java/org/apache/http/auth/AuthSchemeRegistry.java:127:
Undefined reference: java.util.concurrent.ConcurrentHashMap.KeySetView
[ERROR] /Users/anthonyelder/Development/httpcomponents/httpcomponents-client-4.5.4/httpclient/src/main/java/org/apache/http/auth/AuthSchemeRegistry.java:127:
Undefined reference: java.util.concurrent.ConcurrentHashMap.KeySetView
java.util.concurrent.ConcurrentHashMap.keySet()
[ERROR] /Users/anthonyelder/Development/httpcomponents/httpcomponents-client-4.5.4/httpclient/src/main/java/org/apache/http/conn/scheme/SchemeRegistry.java:151:
Undefined reference: java.util.concurrent.ConcurrentHashMap.KeySetView
[ERROR] /Users/anthonyelder/Development/httpcomponents/httpcomponents-client-4.5.4/httpclient/src/main/java/org/apache/http/conn/scheme/SchemeRegistry.java:151:
Undefined reference: java.util.concurrent.ConcurrentHashMap.KeySetView
java.util.concurrent.ConcurrentHashMap.keySet()
[ERROR] /Users/anthonyelder/Development/httpcomponents/httpcomponents-client-4.5.4/httpclient/src/main/java/org/apache/http/cookie/CookieSpecRegistry.java:139:
Undefined reference: java.util.concurrent.ConcurrentHashMap.KeySetView
[ERROR] /Users/anthonyelder/Development/httpcomponents/httpcomponents-client-4.5.4/httpclient/src/main/java/org/apache/http/cookie/CookieSpecRegistry.java:139:
Undefined reference: java.util.concurrent.ConcurrentHashMap.KeySetView
java.util.concurrent.ConcurrentHashMap.keySet()

If I read it correctly this is actually a animal-sniffer-maven-plugin compatibility issue with JRE 1.8, and not a problem with HttpClient code as such.

I get exactly the same error when building HttpClient with JDK 1.8 without Maven toolchains:

---
export JAVA_HOME=/opt/oracle-jdk-1.8.0
mvn clean test -P-use-toolchains
---

There are two ways to fix the problem: use JDK 1.7 to build HttpClient without Maven toolchains or configure Maven toolchains.

Oleg




[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache HttpComponents Client ....................... SUCCESS [ 4.295 s] [INFO] Apache HttpClient .................................. FAILURE [ 6.967 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: 11.918 s
[INFO] Finished at: 2017-11-27T10:36:39Z
[INFO] Final Memory: 46M/621M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.codehaus.mojo:animal-sniffer-maven-plugin:1.16:check
(checkAPIcompatibility) on project httpclient: Signature errors found.
Verify them and ignore them with the proper annotation if needed. ->
[Help 1]

   ...ant

On Mon, Nov 27, 2017 at 9:54 AM, Oleg Kalnichevski <[email protected]> wrote:
 Please vote on releasing these packages as HttpClient 4.5.4.
 The vote is open for the at least 72 hours, and only votes from
 HttpComponents PMC members are binding. The vote passes if at least
 three binding +1 votes are cast and there are more +1 than -1 votes.

 Release notes:

https://dist.apache.org/repos/dist/dev/httpcomponents/httpclient-4.5.4-RC1/RELEASE_NOTES-4.5.x.txt

 Maven artefacts:

https://repository.apache.org/content/repositories/orgapachehttpcomponents-1071/org/apache/httpcomponents/

 Git Tag: 4.5.4-RC1
 https://github.com/apache/httpcomponents-client/tree/4.5.4-RC1

 Packages:

https://dist.apache.org/repos/dist/dev/httpcomponents/httpclient-4.5.4-RC1
 revision 23288

 Hashes:
114569d7c8de4de6cd178c610c8bf68f httpcomponents-client-4.5.4-src.tar.gz c929bab52e49e11a345993be531784c3 httpcomponents-client-4.5.4-osgi-bin.zip 05a8b6bb3eba517f69099882105a9048 httpcomponents-client-4.5.4-osgi-bin.tar.gz
 c53fe2258ec25396890f1c68aa40daa6 httpcomponents-client-4.5.4-bin.zip
87c15013da44acb9a08aa04711901876 httpcomponents-client-4.5.4-bin.tar.gz
 d6031d0f7f1b628978f5c75f6dc73589 httpcomponents-client-4.5.4-src.zip

 Keys:
 http://www.apache.org/dist/httpcomponents/httpclient/KEYS

--------------------------------------------------------------------------
 Vote: HttpClient 4.5.4 release
 [ ] +1 Release the packages as HttpClient 4.5.4.
 [ ] -1 I am against releasing the packages (must include a reason).


---------------------------------------------------------------------
 To unsubscribe, e-mail: [email protected]
 For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to