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


goal "install-kars“ of karaf-maven-plugin 3.0.3 takes too long time?

asked 2016-09-24 02:13:02 -0700

wusandi gravatar image

I use openflowplugin/distribution/karaf/pom.xml to build karaf which includes my own features through "mvn clean install" command. And when it executes goal of karaf-maven-plugin "install-kars", it resoving features and installs their own bundles, but it looks that different features which depends on the same feature will install feature-depended repeatedly, so the building will take more than 12 minutes to complete rather than 2 or 3 minutes normal. karaf-maven-plugin version is "3.0.3". When I change this version to "3.0.1", it takes normal time to what I want to ask is what is difference between karaf-maven-plugin "3.0.3 " and "3.0.1" and why "3.0.3" takes more time and how to solve it?

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2016-10-21 07:46:39 -0700


This question seems to be aoub karaf-maven-plugin, hence not OpenDaylight related.

As far as I know, I never faced any long build, depending on the version. Make sure you don't over-add things in the karaf/pom.xml file. If you can share snippet of your pom and/or step to reproduce, I'll try to give it a try to better assess your problem.

Thanks, Alexis

edit flag offensive delete publish link more

answered 2016-10-22 11:21:42 -0700

Mandeep gravatar image

Reason could be karaf-maven-plugin 3.0.3 might have added new features which intern added few more dependencies and that could increased build time.

To solve try different Maven options instead of 'mvn clean install'.

Try different options suggested in Maven build time improvement.

Hope this will help.

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


Asked: 2016-09-24 02:13:02 -0700

Seen: 39 times

Last updated: Oct 22 '16