已按你的这个网址进行操作,进行到这个步骤的时候编译报错: mvn clean install -P developer,systemvm 编译到这个步骤的时候,Apache CloudStack Plugin - Hypervisor Xen,错误信息如下: - [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project cloud-plugin-hypervisor-xen: Compilation failure: Compilation failure: [ERROR] /home/wmc/cloudstack-oss/cloudstack/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java:[894,16] cannot find symbol [ERROR] symbol : variable lockingMode [ERROR] location: class com.xensource.xenapi.VIF.Record [ERROR] /home/wmc/cloudstack-oss/cloudstack/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java:[894,36] cannot find symbol [ERROR] symbol : variable VifLockingMode [ERROR] location: class com.xensource.xenapi.Types [ERROR] /home/wmc/cloudstack-oss/cloudstack/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java:[1103,12] cannot find symbol [ERROR] symbol : variable lockingMode [ERROR] location: class com.xensource.xenapi.VIF.Record [ERROR] /home/wmc/cloudstack-oss/cloudstack/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java:[1103,32] cannot find symbol [ERROR] symbol : variable VifLockingMode [ERROR] location: class com.xensource.xenapi.Types [ERROR] /home/wmc/cloudstack-oss/cloudstack/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java:[4907,20] cannot find symbol [ERROR] symbol : variable lockingMode [ERROR] location: class com.xensource.xenapi.VIF.Record [ERROR] /home/wmc/cloudstack-oss/cloudstack/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java:[4907,40] cannot find symbol [ERROR] symbol : variable VifLockingMode [ERROR] location: class com.xensource.xenapi.Types [ERROR] /home/wmc/cloudstack-oss/cloudstack/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServer610Resource.java:[162,43] cannot find symbol [ERROR] symbol : method migrateReceive(com.xensource.xenapi.Connection,com.xensource.xenapi.Network,java.util.Map<java.lang.String,java.lang.String>) [ERROR] location: class com.xensource.xenapi.Host [ERROR] /home/wmc/cloudstack-oss/cloudstack/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServer610Resource.java:[177,30] cannot find symbol [ERROR] symbol : method assertCanMigrateAsync(com.xensource.xenapi.Connection,java.util.Map<java.lang.String,java.lang.String>,boolean,java.util.Map<com.xensource.xenapi.VDI,com.xensource.xenapi.SR>,java.util.Map<com.xensource.xenapi.VIF,com.xensource.xenapi.Network>,java.util.Map<java.lang.String,java.lang.String>) [ERROR] location: class com.xensource.xenapi.VM [ERROR] /home/wmc/cloudstack-oss/cloudstack/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServer610Resource.java:[191,30] cannot find symbol [ERROR] symbol : method migrateSendAsync(com.xensource.xenapi.Connection,java.util.Map<java.lang.String,java.lang.String>,boolean,java.util.Map<com.xensource.xenapi.VDI,com.xensource.xenapi.SR>,java.util.Map<com.xensource.xenapi.VIF,com.xensource.xenapi.Network>,java.util.Map<java.lang.String,java.lang.String>) [ERROR] location: class com.xensource.xenapi.VM [ERROR] /home/wmc/cloudstack-oss/cloudstack/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServer610Resource.java:[253,43] cannot find symbol [ERROR] symbol : method migrateReceive(com.xensource.xenapi.Connection,com.xensource.xenapi.Network,java.util.Map<java.lang.String,java.lang.String>) [ERROR] location: class com.xensource.xenapi.Host [ERROR] /home/wmc/cloudstack-oss/cloudstack/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServer610Resource.java:[312,30] cannot find symbol [ERROR] symbol : method assertCanMigrateAsync(com.xensource.xenapi.Connection,java.util.Map<java.lang.String,java.lang.String>,boolean,java.util.Map<com.xensource.xenapi.VDI,com.xensource.xenapi.SR>,java.util.Map<com.xensource.xenapi.VIF,com.xensource.xenapi.Network>,java.util.Map<java.lang.String,java.lang.String>) [ERROR] location: class com.xensource.xenapi.VM [ERROR] /home/wmc/cloudstack-oss/cloudstack/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServer610Resource.java:[324,30] cannot find symbol [ERROR] symbol : method migrateSendAsync(com.xensource.xenapi.Connection,java.util.Map<java.lang.String,java.lang.String>,boolean,java.util.Map<com.xensource.xenapi.VDI,com.xensource.xenapi.SR>,java.util.Map<com.xensource.xenapi.VIF,com.xensource.xenapi.Network>,java.util.Map<java.lang.String,java.lang.String>) [ERROR] location: class com.xensource.xenapi.VM [ERROR] /home/wmc/cloudstack-oss/cloudstack/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServer610Resource.java:[409,33] cannot find symbol [ERROR] symbol : method poolMigrateAsync(com.xensource.xenapi.Connection,com.xensource.xenapi.SR,java.util.Map<java.lang.String,java.lang.String>) [ERROR] location: class com.xensource.xenapi.VDI [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-plugin-hypervisor-xen [root@localhost cloudstack]# http://detail.tmall.com/item.htm?id=13614885846&spm=0.0.0.0.JhQLui
-- cloudstack菜鸟 在 2014-04-01 16:22:49,"Wei ZHOU" <ustcweiz...@gmail.com> 写道: >https://cwiki.apache.org/confluence/display/CLOUDSTACK/How+to+build+CloudStack > >上一级目录的其他链接都看一下,对你有帮助 > > >在 2014年4月1日 上午10:11,王 <chenzi...@163.com>写道: > >> 感谢你的回复。我是新手,请问如何用maven进行编译?有没有详细一点的操作步骤,谢谢! >> >> >> >> >> >> -- >> cloudstack菜鸟 >> >> >> >> 在 2014-04-01 15:43:10,"Wei ZHOU" <ustcweiz...@gmail.com> 写道: >> >4.1开始改用maven编译了。 >> > >> > >> >在 2014年4月1日 上午9:39,王 <chenzi...@163.com>写道: >> > >> >> >> >> [root@promote apache-cloudstack-4.2.1-src]# ant clear-all >> >> Buildfile: build.xml does not exist! >> >> Build failed >> >> >> >> >> >> 后面的只要是关于ant的指令都不是这个提示!!! >> >> >> >> >> 因为我是刚刚接触,我不理解这里的build.xml是需要自己写呢,还是在cloudstack的源码中就包括的。这个问题是在群组里CloudStack >> >> 在CentOS 平台上的开发环境设置的文章中遇到的。希望能够得到解答。谢谢。 >> >> >> >> >> >> >> >> >> >> -- >> >> _______________________________________________________ >> >> >> >> 王明昌 >> >> chenzi...@163.com >> >> 武汉技术部 - 软件工程师 >> >> >> >> 电话:027-51854676 >> >> 地址:武汉市洪山区街道口 珞瑜路20号阜华大厦A座1201室 >> >> _______________________________________________________ >> >> >> >> 北京鑫海睿杰科技有限公司 >> >> http://www.bjxhrj.com >>