2 years ago

#69568

test-img

helmy

Tagging git for snapshots using Maven

We use the following command to release the current version.

mvn release:prepare release:perform

This command creates a tag in git that lets us know in the future which commit corresponds to a given released artifact.

When we want to generate a snapshot only and push it to Nexus, we use the below command, which pushes a timestamped snapshot to Nexus.

mvn deploy

Is there a way to tell Maven to create a git tag with the same snapshot name or even the snapshot timestamp just like the release plugin does?

maven

nexus

0 Answers

Your Answer

Accepted video resources