Ask Your Question
0

yangtools-artifacts couldn't be resolved

asked 2015-01-25 15:22:08 -0700

SN gravatar image

Hi,

Totally new to opendaylight. I followed the steps on the wiki to:

  • create an account.
  • new fedora vm
  • installed java (1.8) and maven (3.2)
  • pulled code (git clone ssh://<username>@git.opendaylight.org:29418/controller.git)</username>
  • inside controller/opendaylight I do not see any "distribution" directory
  • updated the ~/.m2/settings.xml file per the instructions to reflect opendaylight mirror information for maven
  • I simply did "mvn clean install" from the controller directory and I see a lot of errors.

I would appreciate any pointers.

[harnan@localhost controller]$ ls features karaf NOTICE pom.xml itests LICENSE opendaylight README.OPENDAYLIGHT

[harnan@localhost controller]$ mvn -v Apache Maven 3.2.2 (NON-CANONICAL2014-06-19T11:19:24mockbuild; 2014-06-19T04:19:24-07:00) Maven home: /usr/share/maven Java version: 1.8.025, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.25-5.b18.fc21.x8664/jre Default locale: enUS, platform encoding: UTF-8 OS name: "linux", version: "3.17.4-301.fc21.x8664", arch: "amd64", family: "unix"

[harnan@localhost controller]$ mvn clean install [INFO] Scanning for projects... [ERROR] The build could not read 90 projects -> [Help 1] [ERROR]
[ERROR] The project org.opendaylight.controller:sal-parent:1.2.0-SNAPSHOT (/home/harnan/opendaylight/controller/opendaylight/md-sal/pom.xml) has 1 error [ERROR] Non-resolvable import POM: Could not find artifact org.opendaylight.yangtools:yangtools-artifacts:pom:0.7.0-SNAPSHOT @ org.opendaylight.controller:commons.opendaylight:1.5.0-SNAPSHOT, /home/harnan/opendaylight/controller/opendaylight/commons/opendaylight/pom.xml, line 1239, column 19 -> [Help 2] [ERROR]
[ERROR] The project org.opendaylight.controller:config-subsystem:0.3.0-SNAPSHOT (/home/harnan/opendaylight/controller/opendaylight/config/pom.xml) has 1 error [ERROR] Non-resolvable import POM: Could not find artifact org.opendaylight.yangtools:yangtools-artifacts:pom:0.7.0-SNAPSHOT @ org.opendaylight.controller:commons.opendaylight:1.5.0-SNAPSHOT, /home/harnan/opendaylight/controller/opendaylight/commons/opendaylight/pom.xml, line 1239, column 19 -> [Help 2] [ERROR]
[ERROR] The project org.opendaylight.controller:netconf-subsystem:0.3.0-SNAPSHOT (/home/harnan/opendaylight/controller/opendaylight/netconf/pom.xml) has 1 error [ERROR] Non-resolvable import POM: Could not find artifact org.opendaylight.yangtools:yangtools-artifacts:pom:0.7.0-SNAPSHOT @ org.opendaylight.controller:commons.opendaylight:1.5.0-SNAPSHOT, /home/harnan/opendaylight/controller/opendaylight/commons/opendaylight/pom.xml, line 1239, column 19 -> [Help 2] [ERROR]
[ERROR] The project org.opendaylight.controller:forwarding.staticrouting:0.6.0-SNAPSHOT (/home/harnan/opendaylight/controller/opendaylight/adsal/forwarding/staticrouting/pom.xml) has 1 error [ERROR] Non-resolvable import POM: Could not find artifact org.opendaylight.yangtools:yangtools-artifacts:pom:0.7.0-SNAPSHOT @ org.opendaylight.controller:commons.opendaylight:1.5.0-SNAPSHOT, /home/harnan/opendaylight/controller/opendaylight/commons/opendaylight/pom.xml, line 1239, column 19 -> [Help 2] [ERROR]
.....

Thanks Siva

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2015-01-25 17:05:11 -0700

SN gravatar image

Hm. Well. I pulled the yangtools project also (git clone ssh://${ODL_USERNAME}@git.opendaylight.org:29418/yangtools.git) and it seemed as if the build went beyond the first part of the error. But then it still failed compiling a bunch of northbound pieces:

[INFO] topology.northbound ................................ FAILURE [ 0.978 s] [INFO] forwarding.staticrouting.northbound ................ FAILURE [ 1.318 s] [INFO] statistics.northbound .............................. FAILURE [ 0.358 s] [INFO] flowprogrammer.northbound .......................... FAILURE [ 0.353 s] [INFO] hosttracker.northbound ............................. FAILURE [ 0.397 s] [INFO] subnets.northbound ................................. FAILURE [ 0.579 s] [INFO] switchmanager.northbound ........................... FAILURE [ 1.132 s] [INFO] containermanager.northbound ........................ FAILURE [ 0.687 s] [INFO] networkconfig.bridgedomain.northbound .............. FAILURE [ 0.296 s] [INFO] connectionmanager.northbound ....................... FAILURE [ 0.288 s] [INFO] usermanager.northbound ............................. FAILURE [ 0.192 s] [INFO] controllermanager.northbound ....................... FAILURE [ 3.663 s] [INFO] samples.loadbalancer.northbound .................... FAILURE [ 0.267 s] [INFO] networkconfig.neutron.northbound ................... FAILURE [ 1.384 s]

[INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 14:42 min [INFO] Finished at: 2015-01-25T15:30:08-08:00 [INFO] Final Memory: 287M/363M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.enunciate:maven-enunciate-plugin:1.28:docs (default) on project topology.northbound: Execution default of goal org.codehaus.enunciate:maven-enunciate-plugin:1.28:docs failed: A required class was missing while executing org.codehaus.enunciate:maven-enunciate-plugin:1.28:docs: com/sun/mirror/apt/AnnotationProcessorFactory [ERROR] ----------------------------------------------------- .....

I suppose I need to look at what is going on with this one now.

Siva

edit flag offensive delete publish link more
0

answered 2015-07-01 07:46:24 -0700

ramonm gravatar image

Controller can be compiled only with Java 7. Check your Java version

edit flag offensive delete publish link more
0

answered 2015-07-01 09:19:20 -0700

faizan gravatar image

Installed java 1.7 and try again

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-01-25 15:22:08 -0700

Seen: 581 times

Last updated: Jul 01 '15