rcongiu / Hive-JSON-Serde

Read - Write JSON SerDe for Apache Hive.
Other
732 stars 391 forks source link

Maven build is failing #152

Closed vkroz closed 7 years ago

vkroz commented 8 years ago

I'm just trying to compile the project as described in readme

$ mvn -Pcdh4 clean package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] openx-json-serde
[INFO] json
[INFO] json-cdh4-shim
[INFO] json-cdh5-shim
[INFO] json-serde-main
[INFO] json-udf
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building openx-json-serde 1.3.8-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ json-serde-parent ---
[INFO]
[INFO] --- buildnumber-maven-plugin:1.1:create (default) @ json-serde-parent ---
Downloading: http://repo.maven.apache.org/maven2/net/java/dev/jna/jna/3.2.2/jna-3.2.2.jar
Downloading: http://gec-maven-nexus.walmart.com/nexus/content/groups/public/net/java/dev/jna/jna/3.2.2/jna-3.2.2.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] openx-json-serde ................................... FAILURE [  2.200 s]
[INFO] json ............................................... SKIPPED
[INFO] json-cdh4-shim ..................................... SKIPPED
[INFO] json-cdh5-shim ..................................... SKIPPED
[INFO] json-serde-main .................................... SKIPPED
[INFO] json-udf ........................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.382 s
[INFO] Finished at: 2016-06-13T11:29:09-07:00
[INFO] Final Memory: 10M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.1:create (default) on project json-serde-parent: Execution default of goal org.codehaus.mojo:buildnumber-maven-plugin:1.1:create failed: Plugin org.codehaus.mojo:buildnumber-maven-plugin:1.1 or one of its dependencies could not be resolved: Could not transfer artifact net.java.dev.jna:jna:jar:3.2.2 from/to USCentral (http://repo.maven.apache.org/maven2): GET request of: net/java/dev/jna/jna/3.2.2/jna-3.2.2.jar from USCentral failed: Premature end of Content-Length delimited message body (expected: 858336; received: 213846 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
rcongiu commented 8 years ago

Are you building from the development or the master branch ? In any case, I tried a fresh copy and compiles fine on my machine. More importantly, jna, which is the dependency causing an error, is not required by the serde, also, those repos are not in the pom. My hunch is that you have some plugins/setting in your ~/.m2/settings.xml that is interfering with the build.

abij commented 8 years ago

He @vkroz, at the end of your stacktrace it sais: GET request of: net/java/dev/jna/jna/3.2.2/jna-3.2.2.jar from USCentral failed: Premature end of Content-Length delimited message body (expected: 858336; received: 213846 -> [Help 1]

Looks like a failure in downloading stuff from the interweBbzzzz.

dblock commented 7 years ago

This should be closed. We have CI since #180, and that obviously works. @vkroz did you resolve your original issue? Care to hit close?

rcongiu commented 7 years ago

I'll close it as I am doing bug scrubbing. Reopen with more info if needed.