修改mirror后,用下面两个命令: 1> mvn clean install -P developer,systemvm //这个执行成功,无报错 2> 执行src/packaging/centos63/package.sh 打包成rpm,报如下错: [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 /vpool/maven/repo/org/apache/axis2/mex/1.5.4/mex-1.5.4-impl.jar; error in opening zip file [ERROR] error: error reading /vpool/maven/repo/org/apache/axis2/axis2-mtompolicy/1.5.4/axis2-mtompolicy-1.5.4.jar; error in opening zip file [ERROR] error: error reading /vpool/maven/repo/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 /vpool/maven/repo/org/opensaml/opensaml1/1.1/opensaml1-1.1.jar; error in opening zip file [ERROR] error: error reading /vpool/maven/repo/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.FpP4AI (%build)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.FpP4AI (%build) 2014-05-19 16:52 GMT+08:00 aix.niuy <aix.n...@gmail.com>: > http://maven.oschina.net/content/groups/public/ 没有 > org.apache.cloudstack:cloud-plugin-hypervisor-kvm:jar:4.3.0 > 把maven settings.xml配置文件的 <mirrors> </mirrors> 配置注释掉用中央库 > > 2014-05-19 > > > > aix.niuy > > > > 发件人:zhihua jiang <jiang.zhihua...@gmail.com> > 发送时间:2014-05-19 16:48 > 主题:请教各位cs 4.3打包成RPM时报错,寻求解决方法。 > 收件人:"cloudstack中文邮件组"<users-cn@cloudstack.apache.org> > 抄送: > > 我当前的环境简介: > 1、centos 6.3 > 2、cs 4.3 > 3、deps:如下包 > apputils.jar > cloud-iControl.jar > vim25_51.jar > XenServerJava > cloud-netscaler.jar > cloud-netscaler-sdx.jar > manageontap.jar > vim.jar > > 在执行src/packaging/centos63/package.sh 打包成rpm时,报如下错: > > *[ERROR] Failed to execute goal on project cloud-plugin-hypervisor-kvm: > Could not resolve dependencies for project > org.apache.cloudstack:cloud-plugin-hypervisor-kvm:jar:4.3.0: The following > artifacts could not be resolved: org.libvirt:libvirt:jar:0.5.1, > com.ceph:rados:jar:0.1.3: Failure to find org.libvirt:libvirt:jar:0.5.1 in > http://maven.oschina.net/content/groups/public/ > <http://maven.oschina.net/content/groups/public/> was cached in the local > repository, resolution will not be reattempted until the update interval of > nexus-osc has elapsed or updates are forced -> [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/DependencyResolutionException > < > http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException > >* > *[ERROR] * > *[ERROR] After correcting the problems, you can resume the build with the > command* > *[ERROR] mvn <goals> -rf :cloud-plugin-hypervisor-kvm* > *error: Bad exit status from /var/tmp/rpm-tmp.P7knC6 (%build)* > > > *RPM build errors:* > * Bad exit status from /var/tmp/rpm-tmp.P7knC6 (%build)*