Description of problem:
It looks like tycho-sourceref-jgit is not compatible with jgit used in Fedora.
When trying to use tycho-sourceref-jgit from tycho-packaging-plugin,
an IllegalArgumentException is thrown.
Version-Release number of selected component (if applicable):
Caused by: java.lang.IllegalArgumentException: One of setGitDir or setWorkTree must be called.
This seems to be caused by missing git repo in build directory.
Creating git repo "fixes" the issue.
I don't think this is a bug, although the error is a little cryptic. tycho-sourceref-jgit is meant to find the git repository and generate the artifact build qualifiers based on the last commit to that subproject. If there isn't git repository to be found, this will fail (See http://dev.eclipse.org/mhonarc/lists/tycho-user/msg04214.html). Upstream probably builds directly off the git repo so this works for them, but the sources shipped (git archive) have the repository stripped away.
One solution is to recreate the sources using a git shallow clone. Another is to just remove the jgit provider (http://pkgs.fedoraproject.org/cgit/eclipse.git/tree/eclipse-remove-jgit-provider.patch), which can be done now with macros (either %pom_remove_dep, or %pom_xpath_remove depending on whether the former supports dependencies defined within a plugin).
I've added a section at https://fedoraproject.org/wiki/Tycho#Build_Qualifiers to describe this issue.
While I could imagine a modification to tycho-extras jgit timestamp provider that defaults to regular timestamps if a git repository isn't found, I'm not sure if we should really be working around this problem on behalf of users. I can keep this bug open for a while in case we decide to add such a feature.
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle.
Changing version to '23'.
(As we did not run this process for some time, it could affect also pre-Fedora 23 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.)
More information and reason for this action is here:
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora 'version'
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 23 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
Thank you for reporting this bug and we are sorry it could not be fixed.