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

nextBuildNumber #194

Open
desbond opened this issue Jan 12, 2024 · 3 comments
Open

nextBuildNumber #194

desbond opened this issue Jan 12, 2024 · 3 comments

Comments

@desbond
Copy link

desbond commented Jan 12, 2024

mvn clean build-helper:parse-version versions:set -DnewVersion=${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}.${parsedVersion.nextBuildNumber} -DgenerateBackupPoms=false -DprocessAllModules -DgenerateBackupPoms=false
This always leaves the buildNumber as is instead of incrementing
[INFO] --- build-helper:3.5.0:parse-version (default-cli) @ test ---
[INFO] Processing change of com.test:test:58.59.0.1 -> 58.59.0.1

@desbond
Copy link
Author

desbond commented Jan 12, 2024

nextBuildNumber always 1

@desbond
Copy link
Author

desbond commented Jan 12, 2024

Does the build have to come with a '-' ?

@slawekjaranowski
Copy link
Member

@desbond what is output in your project for:

mvn build-helper:parse-version -X

you should see lines like:

[DEBUG] Parsed Version
[DEBUG]          major: 3
[DEBUG]          minor: 5
[DEBUG]    incremental: 1
[DEBUG]    buildnumber: 0
[DEBUG]      qualifier: SNAPSHOT
[DEBUG] define property parsedVersion.majorVersion = "3"
[DEBUG] define property parsedVersion.minorVersion = "5"
[DEBUG] define property parsedVersion.incrementalVersion = "1"
[DEBUG] define property parsedVersion.buildNumber = "0"
[DEBUG] define property parsedVersion.nextMajorVersion = "4"
[DEBUG] define property parsedVersion.nextMinorVersion = "6"
[DEBUG] define property parsedVersion.nextIncrementalVersion = "2"
[DEBUG] define property parsedVersion.nextBuildNumber = "1"
[DEBUG] define property formattedVersion.majorVersion = "03"
[DEBUG] define property formattedVersion.minorVersion = "05"
[DEBUG] define property formattedVersion.incrementalVersion = "01"
[DEBUG] define property formattedVersion.buildNumber = "00"
[DEBUG] define property formattedVersion.nextMajorVersion = "04"
[DEBUG] define property formattedVersion.nextMinorVersion = "06"
[DEBUG] define property formattedVersion.nextIncrementalVersion = "02"
[DEBUG] define property formattedVersion.nextBuildNumber = "01"
[DEBUG] define property parsedVersion.qualifier = "SNAPSHOT"
[DEBUG] define property parsedVersion.qualifier? = "-SNAPSHOT"
[DEBUG] define property parsedVersion.osgiVersion = "3.5.1.SNAPSHOT"

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