Error when trying to install a feature in Karaf - apache-karaf

I have installed and run Karaf, and I have also installed many features. But when I try this :
feature:install odl-openflowplugin-app-lldp-speaker-li
I get the following error :
Error executing command: Can't install feature odl-openflowplugin-app-lldp-speaker-li/0.0.0:
null
The same is happening with this :
feature:install odl-openflowplugin-li
and has happened previously with some other features too. What is going wrong?

OpenDaylight maintains its own repositories outside of Maven Central, which means maven (and therefore pax-url used by Karaf feature service) cannot resolve OpenDaylight artifacts by default.
Try to add the opendaylight maven repo in your ~/.m2/settings.xml file: see the opendaylight official docs.
After this, you should also double check to install the right feature repo in Karaf with the feature:repo-add command, for example:
karaf#root()> feature:repo-add \
mvn:org.opendaylight.controller/features-mdsal/1.3.4-Beryllium-SR4/xml/features
Hope this helps...

Related

how to install sbt without internet connection

I am trying to install sbt on our RedHat Linux server (RHEL6.8). The server doesn't have internet connection.
I downloaded sbt-1.0.x.zip from github but I don't see installation instruction. In README.md file, it points to http://www.scala-sbt.org/release/docs/Getting-Started/Setup which tells me to use yum command. But that would require Internet connection.
Can anyone help?
Thank you.
sbt 0.13.15 supports offline installation with a preloaded local repo:
sbt 0.13.15 adds two new repositories called “local-preloaded-ivy”
and “local-preloaded” that point to ~/.sbt/preloaded/.
The purpose for the repositories is to preload them with
sbt artifacts during the initial installation, instead of resolving
from the remote repository on the first run.
This enables installation of sbt without network connection.
To enable resolving of your own dependencies, it should be sufficient to add them to the preloaded directory.
You need to download the RPM from bintray. See the instructions here:
Source: http://www.scala-sbt.org/0.13/docs/Installing-sbt-on-Linux.html
Depending on what dependencies are unfulfilled, you may need to download additional RPM files that sbt depends on.

build poco on OS X, fix8 cannot find poco

I downloaded then built the latest poco library (a dependency to build/use fix8) with:
./configure
make
then i try to build fix8 with:
./bootstrap
./configure
make
make install
however during the "./configure" i get the error below:
checking for Poco... no
ERROR: Poco development libraries are required. Install and try again (see wiki:prerequisites).
I've tried adding to the PATH but can't seem to get the build process to find poco.
any ideas on what i am missing to make poco findable by the fix8 build process?
More explicitly ...
Install poco via: brew install poco
Assuming it is installed in /usr/local, run configure as: ./configure --with-poco=/usr/local
I assume you already have Poco sources and binaries. Looking at the configure script, it looks like
configure --with-poco=DIR
should work.

Karaf cannot install war feature

Recently I need to deploy something on Karaf. I use Karaf 3.0.2 and event try 4.0.0M1. Both are not able to install war feature. Once I type feature:install war in console after Karaf start-up.
3.0.2 gives me:
Error executing command: Error resolving artifact org.apache.servicemix.specs:org.apache.servicemix.specs.activation-api-1.1:jar:2.2.0: Could not find artifact org.apache.servicemix.specs:org.apache.servicemix.specs.activation-api-1.1:jar:2.2.0
4.0.0M! gives me:
Erroe executing command: Error
I try to delete Maven and reinstall it. The issue is still there. It's not happened on other machine.
It's a strange issue. Could anyone meet it ever? Could anyone help me out?
As it works on the other machines, it's something on that certain machine.
Without much more details on the setup I'm using assumptions here.
1) No Network connection to the central repo
2) Using a Proxy wich isn't configured or configured wrong on the server
3) Using a nexus with credentials and those aren't configured or configured wrong
I encountered the same issue and it was because there were mirrors defined in my Maven settings.xml (due to usage in another project). After I commented them out I was able to install the karaf war deployer.

Artifactory remote repos and Terracota

I want to setup my maven settings.xml file to download all the external dependencies from Artifactory cache instead of download them directly from any of the public repositories like repo1, repo2 or Jboss. I followed the instructions at http://wiki.jfrog.org/confluence/display/RTF/Configuring+Artifacts+Resolution at but I'm stuck with an error with the terracota library, the error is:
Could not find artifact net.sf.ehcache:ehcache-terracotta:jar:2.5.0 in remote-repos
I tried adding terracota repository at the remote repositories section but this didn't worked either.
Please advice.
I can think of a couple of possibilities:
Your remote-repos cache isn't configured to point to the remote repository that contains the Terracotta files
Your build isn't using the correct organization or module name when resolving the dependency on Terracotta.
Could you add some info to your question detailing where exactly you are seeing the error message, and whether you can browse to ehcache-terracotta version 2.5.0 in Artifactory ?
Please add the terracotta repository to your artifactory
This is the URL= http://www.terracotta.org/download/reflector/releases
Don't worry if the test of the repo doesn't work...
The last step is to go to Edit Virtual Repository and add the new terracotta repo to the virtual repository called "Remote Repo".

How to build Flyway without all JDBC Drivers

I found an issue with FlyWay running in a Weblogic Server.
I cloned the source repository and added the unit test + fix. But I can't test my fix in Weblogic because of all the JDBC drivers needed by the maven build and that are not available in public repos.
Is there a simple way to bypass these dependencies ?
As decribed in the How To Contribute wiki page:
Disable the MediumTests Maven profile using -P-MediumTests.
Ex.: mvn clean install -P-MediumTests

Resources