Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to manually deploy artifacts in Nexus Repository Manager OSS 3

After installing Nexus Repository Manager OSS 3 I do not see option Artifact Upload to upload artifacts through web page.

In Nexus Repository Manager OSS 2.13 there is option to do that operation.

Anyone can show me the way how to upload artifacts to hosted repository in Nexus 3?

EDIT: From 3.9.0 version, this functionality is implemented.

like image 832
Paweł Głowacz Avatar asked May 31 '16 10:05

Paweł Głowacz


People also ask

How do I manually upload an artifact to Nexus?

First load of the Nexus repository manager admin console. The first thing you need to do is provide the Maven group, artifact, version and packaging attributes for the deployment artifact you are about to upload. After doing so, use the Select Artifacts to Upload button to browse to the JAR file of interest.

How we can upload artifacts into Nexus repository manager?

Go to "http://localhost:8081/nexus" Login as user: "admin" password: "admin123" Click on "Browse Repositories," and you'll see a list of repositories. You will want to right click on the "3rd Party" repository and choose "Upload Artifact."


1 Answers

I'm using maven deploy file.

mvn deploy:deploy-file -DgroupId=my.group.id \     -DartifactId=my-artifact-id \     -Dversion=1.0.0.1 \     -Dpackaging=jar \     -Dfile=foo.jar \     -DgeneratePom=true \     -DrepositoryId=my-repo \     -Durl=http://my-nexus-server.com:8081/repository/maven-releases/ 

UPDATE: As stated in comments using quotes in url cause NoSuchElementException

But I have add server config in my maven (~/.m2/settings.xml).

<servers>   <server>     <id>my-repo</id>     <username>admin</username>     <password>admin123</password>   </server> </servers> 

References:

Maven Apache - Guide 3rd party jars

like image 88
bpedroso Avatar answered Sep 19 '22 19:09

bpedroso