Maven release plugin - how to publish only a snapshot?

Daniel

I'm using maven release plugin to deploy new versions of software. When running

mvn release:prepare
mvn release:perform

Everything works as expected. If I tell maven to release version 2.1, it publishes an artifact 2.1 as well as a 2.2-20210205.061032-1, which I guess is some kind of snapshot. I'm wondering if it´s possible to perform a release for a new snapshot version ONLY?

The use case being that I have made some changes I want to publish for testing, before commiting to a final release. Something like 2.2-SNAPSHOT, or something like 2.2-YYYYMMDD.HHmmSS-X. When prompted by maven to enter the next version, if I enter 2.2-SNAPSHOT, it just repeats the question again.

Please advice on how to achieve this, or if I'm thinking about this the wrong way.

J Fabian Meier

If you want to deploy a SNAPSHOT, just run

mvn clean deploy

The Maven Release Plugin is meant for release versions.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to prevent pushing SNAPSHOT version in maven-release-plugin?

Configure Gradle's Artifactory plugin to publish to release or snapshot repository

How to detect release/snapshot versioning of maven artifact?

Gradle - plugin maven-publish: How to publish only specific publication to a repository

Release Plugin - How to put Release Candidate in Snapshot directory

How to publish proguard JAR as Maven Artifact using Gradle Publish Plugin

How to build maven project both Snapshot and Release build simultaneously

Maven deploys to snapshot instead of release

how to skip integration tests with maven release plugin

how to make maven release plugin skip tests?

Maven release plugin - how to bump version of release project

How do I push a release to github with the maven release plugin?

"You don't have a SNAPSHOT project in the reactor projects list." when using Jenkins Maven release plugin

How to combine the Maven Release Plugin with Nexus Staging Plugin?

Release plugin - Maven/jenkins

Gradle how to publish a gradle-plugin to maven central

Hooking custom maven plugin with maven release plugin

Is there any rules to maven RELEASE or SNAPSHOT version numbers?

Jenkins Maven Release: Replace Snapshot Dependencies

Gradle/Maven download snapshot when no release available

Release a snapshot to nexus using maven 3.0.5

How to completely skip unit tests and integration tests during maven release prepare and perform with maven release plugin

How to snapshot a software release (with GitHub)?

Maven: how can I deploy two artifacts with the release plugin?

How do I create an Eclipse plugin release using Maven and Tycho?

How to change default properties in Maven Release Plugin for WSDL builds

How can i do a gradle publish on teamcity to publish a gradle build that uses the maven plugin?

How to publish a shadow jar with an empty pom using gradle maven-publish plugin and Kotlin DSL?

How to stop the maven-release-plugin from using an old version of the maven-gpg-plugin