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

Missing commit for maven-git-commit-id plugin #16

Closed
mksplg opened this issue Apr 4, 2014 · 4 comments
Closed

Missing commit for maven-git-commit-id plugin #16

mksplg opened this issue Apr 4, 2014 · 4 comments
Assignees
Labels

Comments

@mksplg
Copy link
Member

mksplg commented Apr 4, 2014

Since Build 29 for commit 670edd5, the Travis build fails.

@mksplg mksplg added the bug label Apr 4, 2014
@mksplg mksplg self-assigned this Apr 4, 2014
@mksplg
Copy link
Member Author

mksplg commented Apr 4, 2014

maven-git-commit-id seems to parse the whole history. Travis by default only clones with depth 50 which is now less than the commits in the master branch. Currently there seem to be these solutions:

  1. Increase the depth in Travis described here as a temporary solution.
  2. Disable fail on git extraction for the plugin once this fix is released. This is a permanent solution but means there is no error if the git data cannot be extracted, even when actually building a release outside of Travis.
  3. Use solution 2. but only activate it when on Travis by e.g. using a profile activated by a Travis environment variable.

mksplg added a commit that referenced this issue Apr 4, 2014
@mksplg
Copy link
Member Author

mksplg commented Apr 4, 2014

Temporary fix by increasing Travis clone depth. See you at commit 100.

@mksplg
Copy link
Member Author

mksplg commented Sep 30, 2014

A possible alternative to investigate is the buildversion-plugin.

@mksplg
Copy link
Member Author

mksplg commented Oct 26, 2014

Fixed in 3f19959 by switching to mavanagaiata plugin.

@mksplg mksplg closed this as completed Oct 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant