How to manually deploy artifacts in Nexus Repository Manager OSS 3

后端 未结 8 841
说谎
说谎 2020-12-04 11:19

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

In Nexus Repository Manager OS

8条回答
  •  庸人自扰
    2020-12-04 11:44

    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).

    
      
        my-repo
        admin
        admin123
      
    
    

    References:

    Maven Apache - Guide 3rd party jars

提交回复
热议问题