You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Bjoern Teipel <bj...@internetbrands.com> on 2013/10/17 20:06:36 UTC

4.2.1 package issues

Hi all,

did somebody encounter issues during RPM packaging ?
I got jar file read errors and I can't tell where they are coming from.
It seems maven tries to download those jars during the compile from an 
invalid url, because those just contain a webpage

<title>Internet2 Shibboleth Project has moved</title>

How can I fix the dependency urls ?

Bjoern

[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 44:39.903s
[INFO] Finished at: Thu Oct 17 10:12:50 PDT 2013
[INFO] Final Memory: 57M/393M
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile 
(default-compile) on project cloud-awsapi: Compilation failure: 
Compilation failure:
[ERROR] error: error reading 
/home/bteipel/.m2/repository/org/apache/axis2/mex/1.5.4/mex-1.5.4-impl.jar; 
error in opening zip file
[ERROR] error: error reading 
/home/bteipel/.m2/repository/org/apache/axis2/axis2-mtompolicy/1.5.4/axis2-mtompolicy-1.5.4.jar; 
error in opening zip file
[ERROR] error: error reading 
/home/bteipel/.m2/repository/org/apache/ws/commons/axiom/axiom-dom/1.2.10/axiom-dom-1.2.10.jar; 
error in opening zip file
[ERROR] error: error reading 
/home/bteipel/.m2/repository/org/opensaml/opensaml1/1.1/opensaml1-1.1.jar; 
error in opening zip file
[ERROR] error: error reading 
/home/bteipel/.m2/repository/commons-lang/commons-lang/2.3/commons-lang-2.3.jar; 
error in opening zip file
[ERROR] -> [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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the 
command
[ERROR]   mvn <goals> -rf :cloud-awsapi
error: Bad exit status from /var/tmp/rpm-tmp.4NppiB (%build)



Re: 4.2.1 package issues

Posted by Darren Shepherd <da...@gmail.com>.
On 10/17/2013 11:06 AM, Bjoern Teipel wrote:
> Compilation failure:
> [ERROR] error: error reading
> /home/bteipel/.m2/repository/org/apache/axis2/mex/1.5.4/mex-1.5.4-impl.jar;
> error in opening zip file
> [ERROR] error: error reading
> /home/bteipel/.m2/repository/org/apache/axis2/axis2-mtompolicy/1.5.4/axis2-mtompolicy-1.5.4.jar;
> error in opening zip file
> [ERROR] error: error reading
> /home/bteipel/.m2/repository/org/apache/ws/commons/axiom/axiom-dom/1.2.10/axiom-dom-1.2.10.jar;
> error in opening zip file
> [ERROR] error: error reading
> /home/bteipel/.m2/repository/org/opensaml/opensaml1/1.1/opensaml1-1.1.jar;
> error in opening zip file
> [ERROR] error: error reading
> /home/bteipel/.m2/repository/commons-lang/commons-lang/2.3/commons-lang-2.3.jar;
> error in opening zip file

Typically this happens when a maven mirror doesn't exist any more, 
moved, is having issues, etc.  Actually open up one of those bad jars in 
a text editor and good chance there is some HTML error document in there.

You can try just deleteing the folders that contain the bad jars and 
hopefully it will download them from a good location.  In general its a 
swell idea to use a maven proxy, Nexus or Artifactory, they usually do a 
better job of avoiding these errors.

Darren