steinarb / jersey-demo

This is a karaf application that demonstrates using Jersey to provide a REST API in karaf, and demonstrates how OSGi services can be injected into Jersey resources created by the Jersey framework.
https://steinar.bang.priv.no/2018/08/03/use-jersey-to-provide-rest-apis-from-karaf-applications/
Apache License 2.0
4 stars 4 forks source link

feature:repo-add xxxx . Error executing command: Error resolving artifact #1

Closed flashyear closed 5 years ago

flashyear commented 5 years ago

karaf@root()> feature:repo-add mvn:no.priv.bang.demos.jerseyinkaraf/jerseyinkaraf/LATEST/xml/features Adding feature url mvn:no.priv.bang.demos.jerseyinkaraf/jerseyinkaraf/LATEST/xml/features

Error executing command: Error resolving artifact no.priv.bang.demos.jerseyinkaraf:jerseyinkaraf:xml:features:LATEST : mvn:no.priv.bang.demos.jerseyinkaraf/jerseyinkaraf/LATEST/xml/features

steinarb commented 5 years ago

Hm... looks like at the point of writing the README I had planned to release this demo to maven central, but later decided not to (since it's just a demo).

That means that before doing repo-add, you will have to clone and build the demo (it's a very small application) with the following commands:

git clone https://github.com/steinarb/jersey-demo.git
cd jersey-demo
mvn clean install

I will update the README later today when I have better connectivity.