Re: ovsdb neutron compile failed, and propose a possible patch for this issue.


denghui huang
 

Hi all
 
    ovsdb northbound compiles failed too, error information is the following:
steven@steven-Vostro-2420 ~/code/SDN/controller/opendaylight/ovsdb/northbound/ovsdb $ mvn clean install
[INFO] Scanning for projects...
Downloading: http://nexus.opendaylight.org/content/repositories/central2/org/apache/felix/maven-bundle-plugin/${bundle.plugin.version}/maven-bundle-plugin-${bundle.plugin.version}.pom
Downloading: http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/apache/felix/maven-bundle-plugin/${bundle.plugin.version}/maven-bundle-plugin-${bundle.plugin.version}.pom
Downloading: http://repo.maven.apache.org/maven2/org/apache/felix/maven-bundle-plugin/${bundle.plugin.version}/maven-bundle-plugin-${bundle.plugin.version}.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]  
[ERROR]   The project org.opendaylight.ovsdb:ovsdb.northbound:0.5.0-SNAPSHOT (/home/steven/code/SDN/controller/opendaylight/ovsdb/northbound/ovsdb/pom.xml) has 3 errors
[ERROR]     Unresolveable build extension: Plugin org.apache.felix:maven-bundle-plugin:${bundle.plugin.version} or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.felix:maven-bundle-plugin:jar:${bundle.plugin.version} (): Failed to read artifact descriptor for org.apache.felix:maven-bundle-plugin:jar:${bundle.plugin.version}: Could not transfer artifact org.apache.felix:maven-bundle-plugin:pom:${bundle.plugin.version} from/to central2 (http://nexus.opendaylight.org/content/repositories/central2/): Invalid uri 'http://nexus.opendaylight.org/content/repositories/central2//org/apache/felix/maven-bundle-plugin/${bundle.plugin.version}/maven-bundle-plugin-${bundle.plugin.version}.pom': escaped absolute path not valid -> [Help 2]
[ERROR]     Unknown packaging: bundle @ line 19, column 14
[ERROR]     'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin must be a valid version but is '${bundle.plugin.version}'. @ line 30, column 18
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException



2013/11/28 huang denghui <huangdenghui@...>

Hi all
   
    Today, i follow https://wiki.opendaylight.org/view/OVSDB_Integration:Mininet_OVSDB_Tutorial section

Clone the OVSDB Repo and Insert into Controller, to compile ovsdb neutron, but i get the following error.

    steven@steven-Vostro-2420 ~/code/SDN/controller/opendaylight/ovsdb/neutron $ mvn clean install
    [INFO] Scanning for projects...
    [INFO]                                                                        
    [INFO] ------------------------------------------------------------------------
    [INFO] Building ovsdb.neutron 0.5.0-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ ovsdb.neutron ---
    [INFO]
    [INFO] --- properties-maven-plugin:1.0-alpha-2:set-system-properties (default) @ ovsdb.neutron ---
    [INFO] Set 1 system property
    [INFO]
    [INFO] --- maven-checkstyle-plugin:2.10:check (default) @ ovsdb.neutron ---
    [INFO] Starting audit...
    Audit done.
     
    [INFO]
    [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ ovsdb.neutron ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/resources
    [INFO]
    [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ ovsdb.neutron ---
    [INFO] Compiling 13 source files to /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/target/classes
    [INFO] -------------------------------------------------------------
    [ERROR] COMPILATION ERROR :
    [INFO] -------------------------------------------------------------
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/provider/OF10ProviderManager.java:[83,53] error: cannot access ForwardingSet
    [ERROR]   class file for com.google.common.collect.ForwardingSet not found
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/provider/OF10ProviderManager.java:[127,53] error: incompatible types
    [ERROR]     OvsDBSet<String>
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/provider/OF10ProviderManager.java:[172,53] error: incompatible types
    [ERROR]     OvsDBSet<String>
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/provider/OF10ProviderManager.java:[231,62] error: cannot access ForwardingMap
    [ERROR]   class file for com.google.common.collect.ForwardingMap not found
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/provider/OF10ProviderManager.java:[252,70] error: incompatible types
    [ERROR]     OvsDBSet<BigInteger>
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/provider/OF10ProviderManager.java:[268,68] error: incompatible types
    [ERROR]     OvsDBSet<BigInteger>
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/provider/OF10ProviderManager.java:[347,45] error: incompatible types
    [ERROR]     OvsDBSet<UUID>
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/provider/OF10ProviderManager.java:[397,31] error: bad operand types for binary operator '=='
    [ERROR]  <null>
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/provider/OF10ProviderManager.java:[397,52] error: cannot find symbol
    [ERROR]  variable interfaces of type OvsDBSet<UUID>
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/provider/OF10ProviderManager.java:[403,42] error: cannot find symbol
    [ERROR]  variable interfaces of type OvsDBSet<UUID>
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/provider/OF10ProviderManager.java:[416,19] error: cannot find symbol
    [ERROR]  variable options of type OvsDBMap<String,String>
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/provider/OF10ProviderManager.java:[417,19] error: cannot find symbol
    [ERROR]  variable options of type OvsDBMap<String,String>
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/provider/OF10ProviderManager.java:[418,19] error: cannot find symbol
    [ERROR]  variable options of type OvsDBMap<String,String>
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/SouthboundHandler.java:[117,57] error: incompatible types
    [ERROR]     OvsDBSet<UUID>
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/SouthboundHandler.java:[165,61] error: incompatible types
    [ERROR]     OvsDBSet<UUID>
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/InternalNetworkManager.java:[155,27] error: bad operand types for binary operator '=='
    [ERROR]  <null>
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/InternalNetworkManager.java:[155,48] error: cannot find symbol
    [ERROR]  variable interfaces of type OvsDBSet<UUID>
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/InternalNetworkManager.java:[161,38] error: cannot find symbol
    [ERROR]  variable interfaces of type OvsDBSet<UUID>
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/InternalNetworkManager.java:[171,15] error: cannot find symbol
    [ERROR]  variable options of type OvsDBMap<String,String>
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/InternalNetworkManager.java:[224,53] error: incompatible types
    [ERROR]     OvsDBSet<String>
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/InternalNetworkManager.java:[258,53] error: incompatible types
    [ERROR]     OvsDBSet<String>
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/TenantNetworkManager.java:[144,70] error: incompatible types
    [ERROR]     OvsDBMap<String,String>
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/TenantNetworkManager.java:[184,62] error: incompatible types
    [ERROR]     OvsDBMap<String,String>
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/TenantNetworkManager.java:[209,12] error: cannot find symbol
    [ERROR]  variable tags of type OvsDBSet<BigInteger>
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/TenantNetworkManager.java:[228,53] error: incompatible types
    [ERROR]     OvsDBSet<UUID>
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/TenantNetworkManager.java:[238,53] error: incompatible types
    [ERROR]     OvsDBSet<String>
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/TenantNetworkManager.java:[245,57] error: incompatible types
    [ERROR]     OvsDBSet<BigInteger>
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/TenantNetworkManager.java:[283,53] error: incompatible types
    [ERROR]     OvsDBSet<UUID>
    /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/AdminConfigManager.java:[117,57] error: incompatible types
    [INFO] 29 errors
    [INFO] -------------------------------------------------------------
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 5.522s
    [INFO] Finished at: Thu Nov 28 20:14:23 CST 2013
    [INFO] Final Memory: 31M/284M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project ovsdb.neutron: Compilation failure: Compilation failure:
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/provider/OF10ProviderManager.java:[83,53] error: cannot access ForwardingSet
    [ERROR] class file for com.google.common.collect.ForwardingSet not found
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/provider/OF10ProviderManager.java:[127,53] error: incompatible types
    [ERROR] OvsDBSet<String>
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/provider/OF10ProviderManager.java:[172,53] error: incompatible types
    [ERROR] OvsDBSet<String>
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/provider/OF10ProviderManager.java:[231,62] error: cannot access ForwardingMap
    [ERROR] class file for com.google.common.collect.ForwardingMap not found
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/provider/OF10ProviderManager.java:[252,70] error: incompatible types
    [ERROR] OvsDBSet<BigInteger>
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/provider/OF10ProviderManager.java:[268,68] error: incompatible types
    [ERROR] OvsDBSet<BigInteger>
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/provider/OF10ProviderManager.java:[347,45] error: incompatible types
    [ERROR] OvsDBSet<UUID>
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/provider/OF10ProviderManager.java:[397,31] error: bad operand types for binary operator '=='
    [ERROR] <null>
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/provider/OF10ProviderManager.java:[397,52] error: cannot find symbol
    [ERROR] variable interfaces of type OvsDBSet<UUID>
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/provider/OF10ProviderManager.java:[403,42] error: cannot find symbol
    [ERROR] variable interfaces of type OvsDBSet<UUID>
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/provider/OF10ProviderManager.java:[416,19] error: cannot find symbol
    [ERROR] variable options of type OvsDBMap<String,String>
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/provider/OF10ProviderManager.java:[417,19] error: cannot find symbol
    [ERROR] variable options of type OvsDBMap<String,String>
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/provider/OF10ProviderManager.java:[418,19] error: cannot find symbol
    [ERROR] variable options of type OvsDBMap<String,String>
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/SouthboundHandler.java:[117,57] error: incompatible types
    [ERROR] OvsDBSet<UUID>
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/SouthboundHandler.java:[165,61] error: incompatible types
    [ERROR] OvsDBSet<UUID>
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/InternalNetworkManager.java:[155,27] error: bad operand types for binary operator '=='
    [ERROR] <null>
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/InternalNetworkManager.java:[155,48] error: cannot find symbol
    [ERROR] variable interfaces of type OvsDBSet<UUID>
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/InternalNetworkManager.java:[161,38] error: cannot find symbol
    [ERROR] variable interfaces of type OvsDBSet<UUID>
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/InternalNetworkManager.java:[171,15] error: cannot find symbol
    [ERROR] variable options of type OvsDBMap<String,String>
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/InternalNetworkManager.java:[224,53] error: incompatible types
    [ERROR] OvsDBSet<String>
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/InternalNetworkManager.java:[258,53] error: incompatible types
    [ERROR] OvsDBSet<String>
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/TenantNetworkManager.java:[144,70] error: incompatible types
    [ERROR] OvsDBMap<String,String>
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/TenantNetworkManager.java:[184,62] error: incompatible types
    [ERROR] OvsDBMap<String,String>
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/TenantNetworkManager.java:[209,12] error: cannot find symbol
    [ERROR] variable tags of type OvsDBSet<BigInteger>
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/TenantNetworkManager.java:[228,53] error: incompatible types
    [ERROR] OvsDBSet<UUID>
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/TenantNetworkManager.java:[238,53] error: incompatible types
    [ERROR] OvsDBSet<String>
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/TenantNetworkManager.java:[245,57] error: incompatible types
    [ERROR] OvsDBSet<BigInteger>
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/TenantNetworkManager.java:[283,53] error: incompatible types
    [ERROR] OvsDBSet<UUID>
    [ERROR] /home/steven/code/SDN/controller/opendaylight/ovsdb/neutron/src/main/java/org/opendaylight/ovsdb/neutron/AdminConfigManager.java:[117,57] error: incompatible types
    [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

    After checked with pom.xml in ovsdb/neutron, i found that dependency google-collections is missed, by adding this missed piece, it works,
    So i propose a possible patch (in attachment) for this issue. Hopefully, it really help.  And if it is necessary, i can fire a bug for this, than patch it.

Join z.archive.ovsdb-dev@lists.opendaylight.org to automatically receive all group messages.