Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C280B17FB6 for ; Thu, 16 Oct 2014 09:46:16 +0000 (UTC) Received: (qmail 14319 invoked by uid 500); 16 Oct 2014 09:46:16 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 14272 invoked by uid 500); 16 Oct 2014 09:46:16 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 14261 invoked by uid 99); 16 Oct 2014 09:46:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Oct 2014 09:46:15 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [42.62.73.34] (HELO mail.ceph.me) (42.62.73.34) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Oct 2014 09:45:48 +0000 Received: from starpc (unknown [183.63.83.179]) by mail.ceph.me (Postfix) with ESMTPA id 3A6D7121B0C for ; Thu, 16 Oct 2014 17:45:38 +0800 (CST) From: "Star Guo" To: References: <006601cfe912$79541370$6bfc3a50$@ceph.me> <6EC52516D972D146AC4D159FC4383A7C29EF3B29@SINPEX01CL01.citrite.net> In-Reply-To: <6EC52516D972D146AC4D159FC4383A7C29EF3B29@SINPEX01CL01.citrite.net> Subject: =?gb2312?B?tPC4tDogQWJvdXQgdGhlIDQuNSBDb21waWxlIEVycm9y?= Date: Thu, 16 Oct 2014 17:45:46 +0800 Message-ID: <007701cfe925$f77a6890$e66f39b0$@ceph.me> MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQD2GqygDbUibRr8X4mt4N96io78DQHBtrPfndgIxTA= Content-Language: zh-cn X-Virus-Checked: Checked by ClamAV on apache.org It builds successfully. Star Guo -----=D3=CA=BC=FE=D4=AD=BC=FE----- =B7=A2=BC=FE=C8=CB: Sanjay Tripathi [mailto:sanjay.tripathi@citrix.com]=20 =B7=A2=CB=CD=CA=B1=BC=E4: 2014=C4=EA10=D4=C216=C8=D5 17:28 =CA=D5=BC=FE=C8=CB: dev@cloudstack.apache.org =D6=F7=CC=E2: 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:starg@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:=20 >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=20 >defined in method=20 >createHostVO(StartupCommand[],ServerResource,Map,Listring> >,Event) >[ERROR] >/root/.hudson/jobs/cloudstack- >4.5/workspace/server/src/com/cloud/resource/Re >sourceManagerImpl.java:[1650,25] error: variable implicitHostTags is=20 >already defined in method=20 >createHostVO(StartupCommand[],ServerResource,Map,Listring> >,Event) >[ERROR] -> [Help 1] >[ERROR] >[ERROR] To see the full stack trace of the errors, re-run Maven with=20 >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,=20 >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=20 >the command >[ERROR] mvn -rf :cloud-server > > > >And I get the source code about: vim >server/src/com/cloud/resource/ResourceManagerImpl.java > > > >1633 } > >1634 StartupRoutingCommand ssCmd =3D >(StartupRoutingCommand)startup; > >1635 List implicitHostTags =3D ssCmd.getHostTags(); > >1636 if (!implicitHostTags.isEmpty()) { > >1637 if (hostTags =3D=3D null) { > >1638 hostTags =3D = _hostTagsDao.gethostTags(host.getId()); > >1639 } > >1640 if (hostTags !=3D null) { > >1641 implicitHostTags.removeAll(hostTags); > >1642 hostTags.addAll(implicitHostTags); > >1643 } else { > >1644 hostTags =3D implicitHostTags; > >1645 } > >1646 } > >1647 > >1648 if (startup instanceof StartupRoutingCommand) { > >1649 StartupRoutingCommand ssCmd =3D >((StartupRoutingCommand)startup); > >1650 List implicitHostTags =3D ssCmd.getHostTags(); > >1651 if (!implicitHostTags.isEmpty()) { > >1652 if (hostTags =3D=3D null) { > >1653 hostTags =3D = _hostTagsDao.gethostTags(host.getId()); > > > >It seems 1649 and 1650 should be // . > > > >Star Guo