Ask Your Question
0

Feature not installing

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

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 org:opendaylight.l2switch.xxx:xxx-model:jar:0.1.0-Helium: Could not transfer artifact org:opendaylight.l2switch.xxx:xxx-model:jar:0.1.0-Helium 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>
    <bundle>mvn:org:opendaylight.l2switch.xxx/xxx-model/0.1.0-Helium</bundle>
    <bundle>mvn:org:opendaylight.l2switch.xxx/xxx-impl/0.1.0-Helium</bundle>
  </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
0

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

Vishal Thapar gravatar image

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

  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

Comments

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 -0700 )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 -0700 )edit

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

Janki ( 2015-08-10 22:08:09 -0700 )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 -0700 )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 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

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

Seen: 145 times

Last updated: Aug 10 '15