Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use-latest-versions or use-latest-releases stays on latest snapshot when newer release doesn't exists #600

Closed
PatrickSauts opened this issue Jun 15, 2022 · 1 comment

Comments

@PatrickSauts
Copy link

PatrickSauts commented Jun 15, 2022

`
mvn versions:use-latest-versions -Dincludes=pos-integration:* -DgenerateBackupPoms=false -DallowMajorUpdates=true -DallowMinorUpdates=true -DallowSnapshots=true
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< pos-integration:rest-api-server >-------------------
[INFO] Building rest-api-server 0.4.5-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- versions-maven-plugin:2.11.0:use-latest-versions (default-cli) @ rest-api-server ---
[INFO] Major version changes allowed
[INFO] Updated pos-integration:rest-api-core:jar:0.3.7 to version 0.3.8-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.801 s
[INFO] Finished at: 2022-06-16T00:56:51+02:00
[INFO] ------------------------------------------------------------------------

`

then

`
mvn versions:use-latest-versions -Dincludes=pos-integration:* -DgenerateBackupPoms=false -DallowMajorUpdates=true -DallowMinorUpdates=true -DallowSnapshots=false
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< pos-integration:rest-api-server >-------------------
[INFO] Building rest-api-server 0.4.5-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- versions-maven-plugin:2.11.0:use-latest-versions (default-cli) @ rest-api-server ---
[INFO] Major version changes allowed
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.585 s
[INFO] Finished at: 2022-06-16T00:56:58+02:00
[INFO] ------------------------------------------------------------------------

`

version of the dependency should have been put back to the latest release.
There is no 3.8.0 release version

@jarmoniuk
Copy link
Contributor

jarmoniuk commented Dec 27, 2022

@PatrickSauts for use-latest-versions, you need to use allowDowngrade. It will not downgrade any versions otherwise.

For use-next-releases, use-latest-releases, and use-next-versions, I'll add that capability for consistence.

jarmoniuk added a commit to jarmoniuk/versions-maven-plugin that referenced this issue Dec 27, 2022
…asesMojo, UseNextReleasesMojo, UseNextVersionsMojo
jarmoniuk added a commit to jarmoniuk/versions-maven-plugin that referenced this issue Jan 2, 2023
…asesMojo, UseNextReleasesMojo, UseNextVersionsMojo
jarmoniuk added a commit to jarmoniuk/versions-maven-plugin that referenced this issue Jan 2, 2023
…asesMojo, UseNextReleasesMojo, UseNextVersionsMojo
jarmoniuk added a commit to jarmoniuk/versions-maven-plugin that referenced this issue Jan 4, 2023
…asesMojo, UseNextReleasesMojo, UseNextVersionsMojo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants