Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


Following errors are coming when I am trying to integrate karaf with plugin2oc module.

asked 2014-08-20 23:44:45 -0700

JYOTI111111 gravatar image

Within odl controller I have copied plugin2oc module.Within this plugin2oc module I have following subfolders: -common |-parent |-pom.xml -neutron |-src |-target |-pom.xml -pom.xml Apart from this I have created features subfolder inside plugin2oc where I have created pom.xml and feature.xml.Now when I am giving parent as pom.xml of plugin2oc,it is giving follwing errors.Kindly help as soon as possible.

[ERROR] The project org.opendaylight.plugin2oc:plugin2oc.project-features:0.1 (/home/tcs/Desktop/controller/opendaylight/plugin2oc/features/pom.xml) has 3 errors [ERROR] Unresolveable build extension: Plugin org.apache.karaf.tooling:karaf-maven-plugin:${karaf.version} or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.karaf.tooling:karaf-maven-plugin:jar:${karaf.version} (): Failed to read artifact descriptor for org.apache.karaf.tooling:karaf-maven-plugin:jar:${karaf.version}: Could not transfer artifact org.apache.karaf.tooling:karaf-maven-plugin:pom:${karaf.version} from/to opendaylight-public ( ): Invalid uri '${karaf.version}/karaf-maven-plugin-${karaf.version}.pom': escaped absolute path not valid -> [Help 2] [ERROR] Unknown packaging: kar @ line 12, column 14 [ERROR] 'build.plugins.plugin.version' for org.apache.karaf.tooling:karaf-maven-plugin must be a valid version but is '${karaf.version}'. @ line 27, column 18

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-08-21 13:35:23 -0700

Madhu gravatar image

The formatting in the question makes it difficult to clearly understand the problem. But, it seems like the karaf.version properties is NOT resolved.

Can you please make sure if your pom.xml (or) the parent pom contains the karaf.version properties defined appropriately ?

edit flag offensive delete publish link more


I have hardcoded the karaf version which resolves the above error but now I am getting following error and I am not getting why it is coming.Can you please help me? ERROR:Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:3.0.1:features-create-kar (features-create-kar) on project plugin2oc.project-features: Could not interpret features.xml: /home/tcs/Desktop/controller/opendaylight/plugin2oc(this is my project)/features/src/main/resources/features.xml (No such file or directory) ->

JYOTI111111 ( 2014-08-22 01:35:52 -0700 )edit

It is getting to be a debugging session :) so please push the code in gerrit as a DRAFT and include me as a reviewer, i will be able to help you out. But in this case, the error states that the file is missing. Can you please make sure the file is available in the said location ?

Madhu ( 2014-08-22 05:38:02 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-08-20 23:44:45 -0700

Seen: 399 times

Last updated: Aug 21 '14