HDDS-11925. Fix deploy step in Release Manager guide #109
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.
What changes were proposed in this pull request?
mvn deploy
rebuilds the project, as it executes all phases of the default lifecycle up todeploy
. Not only is it unnecessary, it causes jars to be different between Maven repo and binary tarball.mvn deploy:deploy
just executes Maven Deploy Plugin'sdeploy
task, which is to upload artifacts to the remote repository.Flags
-Psign -DskipTests -Dbuildhelper.skipAttach
can be removed, since they are specific to other plugins, which would (before this change) be executed in various lifecycle phases.Skipping
:ozone-dist
seems to be unnecessary, too. I don't see why we should not include it in the Maven repo.https://issues.apache.org/jira/browse/HDDS-11925
How was this patch tested?
Will be tested during next release. (Tested similar change in Ratis, see apache/ratis#1188.)