On 27 February 2015 at 08:28, Julius Schwartzenberg <julius.schwartzenberg@abz.nl> wrote:
On 02/26/2015 05:38 PM, Roland Grunberg wrote:
>> From: "Mikolaj Izdebski" <mizdebsk@redhat.com>
>> To: java-devel@lists.fedoraproject.org
>> Sent: Wednesday, February 25, 2015 7:24:18 AM
>> Subject: Re: [fedora-java] Packaging m2e-wtp
>>
>> As workaround you can add to %prep:
>> %pom_remove_plugin :tycho-packaging-plugin
>
> As mentioned in the bug, the error is a bit cryptic but expected. You
> basically need to decide whether you want to include a shallow copy of
> the git history in the sources to allow generating qualifiers based on
> the last commit made to the sub-project, or not. If you don't want build
> qualifiers based on commit date, then I believe Mikolaj's suggestion of
> removing the packaging plugin entirely should work (it will run anyways
> with default settings).

Alright, thanks for the information. Is there any best practice
regarding this? I hope the package could be included with Fedora at some
point.

Considering that the releases already have a version number, including
the GIT qualifiers as well does not really seem necessary. The regular
Maven build does not require this however, so it does seem like
something Fedora-specific to me.

Thanks,
Julius

In other fedora packages we just remove the jgit dependencies, for example see eclipse-mylyn.spec lines 243-246:

http://pkgs.fedoraproject.org/cgit/eclipse-mylyn.git/tree/eclipse-mylyn.spec#n243

I think this is an acceptible workaround

--