apparently my Nexus is rejecting every deploy I throw at him if the artifact has not -SNAPSHOT in the version.
Data:
I need this naming convention because I'm building one of the several experiments we run internally, as opposite to the canonical develop branch which produces a proper entando-core-engine-SNAPSHOT.jar
Any advice? I'm totally lost.
However, as a project grows, Nexus quickly becomes the only real and mature option for hosting third party artifacts, as well as for reusing internal artifacts across development streams. This article will show how to deploy the artifacts of a project to Nexus Repository OSS, with Maven.
Today I’ll talk about how to deploy artifacts to Sonatype Nexus repository using Maven deploy plugin. Prepare Nexus server in local: Create a Maven project for demo propose: Declare Maven deploy plugin in the parent POM. It’s the same no matter your project is a single module project or a multi-modules project.
A hosted, public Snapshots repository comes out of the box on Nexus, so there’s no need to create or configure anything further. Nexus makes it easy to determine the URLs of its hosted repositories – each repository displays the exact entry to be added in the <distributionManagement> of the project pom, under the Summary tab.
Prepare Nexus server in local: Create a Maven project for demo propose: Declare Maven deploy plugin in the parent POM. It’s the same no matter your project is a single module project or a multi-modules project. The parent pom.xml file is located in project’s root directory. Define the version of Maven deploy plugin:
The thing is that usually your Nexus is configured not to allow a redeployment of a release. A release from Maven point of view is an artifact where it's version it NOT -SNAPSHOT. In contradiction a SNAPSHOT is intended to be deployed several times into nexus.
This sounds like you don't using the release plugin of Maven nor the Release PLugin of Jenkins.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With