cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Star Guo" <st...@ceph.me>
Subject About the 4.5 Compile Error
Date Thu, 16 Oct 2014 07:26:14 GMT
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<String>
,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<String>
,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


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message