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


Feature not installing

asked 2015-08-10 06:31:14 -0800

Janki gravatar image

Hi all

I have added my own feature on top of L2switch in distribution-karaf-0.2.0-Helium. It is listed in feature:list. While trying to install, it is throwing NullPointerException. The full error is

opendaylight-user@root>feature:install odl-l2switch-xxx
Error executing command: Error resolving artifact Could not transfer artifact from/to defaultlocal (file:/home/user1/.m2/repository/): NullPointerException

Added it into the

/distribution-karaf-0.2.0-Helium/system/org/opendaylight/l2switch/features-l2switch/0.1.0-Helium/features-l2switch-0.1.0-Helium-features.xml file

  <feature name='odl-l2switch-xxx' description="OpenDaylight :: L2Switch :: xxx" version='0.1.0-Helium'>
   <feature version="0.1.0-Helium">odl-l2switch-arphandler</feature>

What is the cause of error and how to solve it?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-08-10 20:06:31 -0800

Vishal Thapar gravatar image

updated 2015-08-10 22:00:38 -0800

  1. Is it added to the features pom.xml? Something like: <dependency> <groupId>org.opendaylight.openflowplugin</groupId> <artifactId>features-openflowplugin-li</artifactId> <classifier>features</classifier> <version>${openflowplugin.version}</version> <type>xml</type> <scope>runtime</scope> </dependency> Replace openflowplugin-li with l2switch equivalent.
  2. Is your settings.xml setup correctly?
edit flag offensive delete publish link more


I think so. 1. Have added feature in "features-l2switch-0.1.0-Helium-features.xml" as seen in question. 2. didnot change settings.xml. Does it need to be changed?

Janki ( 2015-08-10 21:46:53 -0800 )edit

1. Updated answer. You need to add dependency to feature in features/pom.xml also. 2. If settings.xml is setup already, then shouldn't be an issue.

Vishal Thapar ( 2015-08-10 22:01:21 -0800 )edit

where is feature/pom.xml file? I am using pre-built helium version.

Janki ( 2015-08-10 22:08:09 -0800 )edit

That would be in features-l2switch directory as per the location of features.xml that you shared. Not sure how it works with modifying distribution, I've never worked with adding a new module to binary distribution before. I think you're going about it the wrong way.

Vishal Thapar ( 2015-08-10 22:10:41 -0800 )edit

Ohh.. I will try with adding it to the source. Can you share any documents, links to doing so if you have?

Janki ( 2015-08-10 22:45:04 -0800 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-08-10 06:31:14 -0800

Seen: 210 times

Last updated: Aug 10 '15