It builds successfully. Star Guo
-----邮件原件----- 发件人: Sanjay Tripathi [mailto:sanjay.tripa...@citrix.com] 发送时间: 2014年10月16日 17:28 收件人: dev@cloudstack.apache.org 主题: RE: About the 4.5 Compile Error Fixed the error, and 4.5 builds are coming up successfully. --Sanjay >-----Original Message----- >From: Star Guo [mailto:st...@ceph.me] >Sent: Thursday, October 16, 2014 12:56 PM >Cc: dev@cloudstack.apache.org >Subject: About the 4.5 Compile Error > >Hello, When I compile -b 4.5 , it show the error as bellow: > > > >[ERROR] Failed to execute goal >org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile >(default-compile) on project cloud-server: Compilation failure: >Compilation >failure: >[ERROR] >/root/.hudson/jobs/cloudstack- >4.5/workspace/server/src/com/cloud/resource/Re >sourceManagerImpl.java:[1649,34] error: variable ssCmd is already >defined in method >createHostVO(StartupCommand[],ServerResource,Map<String,String>,List<St >ring> >,Event) >[ERROR] >/root/.hudson/jobs/cloudstack- >4.5/workspace/server/src/com/cloud/resource/Re >sourceManagerImpl.java:[1650,25] error: variable implicitHostTags is >already defined in method >createHostVO(StartupCommand[],ServerResource,Map<String,String>,List<St >ring> >,Event) >[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> >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-server > > > >And I get the source code about: vim >server/src/com/cloud/resource/ResourceManagerImpl.java > > > >1633 } > >1634 StartupRoutingCommand ssCmd = >(StartupRoutingCommand)startup; > >1635 List<String> implicitHostTags = ssCmd.getHostTags(); > >1636 if (!implicitHostTags.isEmpty()) { > >1637 if (hostTags == null) { > >1638 hostTags = _hostTagsDao.gethostTags(host.getId()); > >1639 } > >1640 if (hostTags != null) { > >1641 implicitHostTags.removeAll(hostTags); > >1642 hostTags.addAll(implicitHostTags); > >1643 } else { > >1644 hostTags = implicitHostTags; > >1645 } > >1646 } > >1647 > >1648 if (startup instanceof StartupRoutingCommand) { > >1649 StartupRoutingCommand ssCmd = >((StartupRoutingCommand)startup); > >1650 List<String> implicitHostTags = ssCmd.getHostTags(); > >1651 if (!implicitHostTags.isEmpty()) { > >1652 if (hostTags == null) { > >1653 hostTags = _hostTagsDao.gethostTags(host.getId()); > > > >It seems 1649 and 1650 should be // . > > > >Star Guo