-
Notifications
You must be signed in to change notification settings - Fork 21
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
Retarget-deploy generates extremely long names for snapshot artifacts #117
Comments
Interesting that you should mention this. :-) (good timing) This actually intersects well with what I've been working on with #105. That issue was pointing out that that version manipulation was happening 'at the wrong time' and 'in the wrong way'. To resolve it, I've been working in a branch where the version manipulation is moved to an extension, rather than part of the RetargetDeployMojo. While I didn't account (yet) for disabling that extension, it would make sense to do that. It would also make sense in the case of this ticket, to provide some other strategies for resolving the 'unique' part of the version string. |
You could also give it a try that way, so we know if it works IRL before a release. :-) |
Sorry for the late reply. I'll have a look :) To be clear. We use git describe for our unique versioning because that way it's easier to see exactly which commit the deployed/tested artifact refers to. |
Didn't have time to do a thorough test yet unfortunately, and going on holiday for couple of weeks. Will check back in when I'm back. |
The following code of the retarget-deploy mojo can cause problems on some filesystems. By injecting the entire name into the
otherDeployBranchPattern
artifacts, it can create very very long directories and file-names.https://github.com/egineering-llc/gitflow-helper-maven-plugin/blob/master/src/main/java/com/e_gineering/maven/gitflowhelper/RetargetDeployMojo.java#L89-L91
For my current project we already inject a unique revision number into the version numbers (based on
git describe --tags
) to handle this issue. Having the gitflow-helper-maven-plugin come along and alter them to inject yet (much) more characters is undesirable.I would suggest that this
getAsBranchSnapshotVersion()
call should be enabled by default forotherDeployBranchPattern
branches (but the branch-name truncated to say 40chars), but an additional option to disable this call altogether for users (like me) who use a different solution.Perhaps "
snapshotArtifactUniqueNaming
" with default = true?The text was updated successfully, but these errors were encountered: