I'd like to do an mvn release
of an artifact from a past commit; somebody added several commits to the same SNAPSHOT, I'd like those to be excluded and moved over to the next version. Given the following git log
output:
commit ea05
Author: Y
commit 921d
Author: Y
commit 530c
Author: Y
commit 64e9
Author: X
I'd like maven to use 64e9
for the release rather than ea05
I tried doing git co 64e9
(detached HEAD), mvn release:prepare
(worked) and then mvn release:perform
but it hangs producing the following output:
[INFO] Building ABC
[INFO] task-segment: [release:perform] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] [release:perform {execution: default-cli}]
[INFO] Checking out the project to perform the release ...
[INFO] Executing: /bin/sh -c cd /home/ABC/target && git clone ssh://repo/ABC.git /home/ABC/target/checkout
[INFO] Working directory: /home/ABC/target
[INFO] Executing: /bin/sh -c cd /home/ABC/target/checkout && git pull ssh://repo/ABC.git tag ABC-1.6
[INFO] Working directory: /home/ABC/target/checkout
(...hanged)