简体   繁体   中英

Can't upload snapshot jar to release repository in Nexus manager

My project depends on a project which only has SNAPSHOT artifacts. I was trying to upload the jar file into a third-party repository in my Nexus server. However, it reminds me that "You cannot upload a snapshot version into a release repository".

How do I use this third party library?

3rd party nexus repository is a release repository. Nexus by default does not allow to publish any snapshot file to any Release Repository (be it out of the box nexus repository or created by user). This is logical also because snapshot jar etc is not a releasable artifact. It is just a timestamp version of your current build during development phase.

You can do two things.

  1. Upload the snapshot jar to the out of the box nexus snapshot repo ( http://localhost:8081/nexus../snapshots )

  2. Run a script to remove the snapshot from your jar, store it in tag and then deploy to any of the release repo (be it 3rd party repo or created by you).

Reference: Maven Snapshot Repository vs Release Repository

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM