-
Notifications
You must be signed in to change notification settings - Fork 250
Maven publication: Produce correct <scm><tag>
in pom.xml
#1330
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q: Does it work automatically when we retag with the same version(e.g.,
1.1.0
)? Or we need to remove the tag first, and run the commandmvn release:prepare
to retag it?Retag could be useful when we have multiple release candidates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@flyrain this has nothing to do with Git. It's the project version of the build.
Changing an existing Git release tag is really bad practice.
BTW: we use Gradle, not Maven.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is more of a release process question: For RCs are we going to publish each RC to Maven, or just the final release? If the former case, I suppose tags should be something like
apache-polaris-0.10.0-rc1
, etc. WDYT?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the RCs are not published to maven repository. Taking this as an example, https://mvnrepository.com/artifact/org.apache.iceberg/iceberg-core, we can only see the formal ones, like 1.8.0, 1.8.1.
@snazy I'm confused by this statement, what do you mean by "nothing related to git"? What does it tag in that case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's about Maven staging and content of the pom.
All releases (RC) are published to Maven staging repository, and if the RC pass the staging repo is promoted to Maven Central. If the RC doesn't pass, them the staging repository is deleted.
That's why it looks only the "final" release are on Maven Central, but actually all RCs went to Maven Staging.
The process is:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but promoting to Maven Central does not change POM files, right? So POM should contain the "final" tag even while the release is in progress, it seems 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's correct: the RC should contain the "final" tag (and the branch the next SNAPSHOT).