Fix double-source-jar error during releases: #6755
Merged
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.
Fix double-source-jar error during releases:
I had fixed the same issue with snapshot deployment in cl/559489724 (by no longer passing
source:jar
tomvn
), but apparently that fix doesn't apply to release deployment. I'm guessing that the relevant part of our release command is-Psonatype-oss-release
, which (among other things) activates amaven-source-plugin
configuration change: Presumably that introduces a secondmaven-source-plugn
execution in much the same way as passingsource:jar
does.I previously fixed a similar problem in jimfs (cl/536746714) by removing the "normal"
maven-source-plugin
configuration, leaving only thesonatype-oss-release
configuration in the parent.I don't remember whether I investigated removing jimfs'
sonatype-oss-release
configuration instead. Probably I should have at least investigated, since that's what we're going with here.As best I can tell, this doesn't interfere with snapshot source jars, which are produced even without
source:jar
.(Notice that the configuration that may be the source of the problem was copied from the old
oss-parent
pom. This is at least the second time that that pom's configuration has caused us trouble, the other I recall being cl/492304151—well, and probably the aforementioned jimfs source-jar issue, too.)This prepares for the release that contains the fix for #6634, among other issues.
RELNOTES=n/a