java - Using Nexus as feature repository -


is there way add secured nexus repository feature repository apache karaf?

i tried run command:

karaf@root()> feature:repo-add http://<user>:<password>@<my-repository> 

but following error:

adding feature url http://<user>:<password>@<my-repository> error executing command: server returned http response code: 401 url: http://<user>:<password>@<my-repository> 

i'm using apache karaf 3.0.0.

thanks, mickael

the solution simple.

install maven on server on karaf running , configure it. generally, configure through file settings.xml present in ~/.m2. credentials accessing nexus repository indicated in file.

finally, instead of using http url referencing feature, use maven url of form:

mvn:<groupid>/<artifactid>/<version>/xml/features 

the feature resolved through maven.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -