distribution-karaf failure stating "java.lang.TypeNotPresentException: Type org.opendaylight.odlparent.PopulateLocalRepoMojo not present" [closed]

asked 2016-02-13 20:30:23 -0700

kirancherian gravatar image

This was the first time I was installing ODL on my ubuntu 14.04 using the below link:

https://wiki.opendaylight.org/view/In...OnUbuntu_14.04

and i ended up with the following error after executing "mvn clean install -DskipTests":

Downloaded: http://nexus.opendaylight.org/content... (29 KB at 6.6 KB/sec) Downloaded: http://nexus.opendaylight.org/content... (158 KB at 34.3 KB/sec) Downloaded: http://nexus.opendaylight.org/content... (114 KB at 23.8 KB/sec) [WARNING] Error injecting: org.opendaylight.odlparent.PopulateLocalRepoMojo java.lang.TypeNotPresentException: Type org.opendaylight.odlparent.PopulateLocalRepoMojo not present ....

[INFO] Reactor Summary: [INFO] [INFO] integration ........................................ SUCCESS [04:14 min] [INFO] features-integration-index ......................... SUCCESS [30:56 min] [INFO] features-integration-test .......................... SUCCESS [ 3.855 s] [INFO] distribution-karaf ................................. FAILURE [02:44 min] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 41:44 min [INFO] Finished at: 2016-02-14T08:45:54+05:30 [INFO] Final Memory: 138M/330M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.opendaylight.odlparent:karaf-plugin:1.7.0-SNAPSHOT:populate-local-repo (populate-local-repo) on project distribution-karaf: Execution populate-local-repo of goal org.opendaylight.odlparent:karaf-plugin:1.7.0-SNAPSHOT:populate-local-repo failed: Unable to load the mojo 'populate-local-repo' in the plugin 'org.opendaylight.odlparent:karaf-plugin:1.7.0-SNAPSHOT' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: org/opendaylight/odlparent/PopulateLocalRepoMojo : Unsupported major.minor version 52.0 [ERROR] ----------------------------------------------------- [ERROR] realm = plugin>org.opendaylight.odlparent:karaf-plugin:1.7.0-SNAPSHOT [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] urls[0] = file:/home/odl/.m2/repository/org/opendaylight/odlparent/karaf-plugin/1.7.0-SNAPSHOT/karaf-plugin-1.7.0-SNAPSHOT.jar [ERROR] urls[1] = file:/home/odl/.m2/repository/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar [ERROR] urls[2] = file:/home/odl/.m2/repository/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar [ERROR] urls[3] = file:/home/odl/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.0/org.eclipse.sisu.inject-0.3.0.jar [ERROR] urls[4] = file:/home/odl/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar ....

I will be obliged if someone could help understand what i may have done wrong here.

Thank you.

Kiran Cherian

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by kirancherian
close date 2016-02-16 16:44:30

Comments

Never mind this question. Instead of building the same, using the Lithium version available for download.

kirancherian ( 2016-02-16 16:44:03 -0700 )edit

Hi kirancherian, I'm having exactly the same problem and I dont know how to solve it. When you say "using the Lithium version available for download" do you mean the .zip distribution that you can unzip and execute using .bin/karaf ?? Can I add my own apps to this distribution? Thx in advance.

agpozuelo ( 2016-03-18 10:35:11 -0700 )edit