Open stdweird opened 8 years ago
@jrha this produces both src and regular rpms
They get produced anyway, but I don't keep them because they are kind of pointless.
how do you produce them?
Hmm, nope I was mistaken, we get the spec files though.
yes, but maven makes no SOURCES, populates the buildroot directly, so spec files are a bit useless
@jrha this is what i meant
Cool, thanks.
@wdpypere submitted a patch upstream for the maven rpm plugin, mojohaus/rpm-maven-plugin#66, if that gets merged we can avoid using @stdweird's workaround.
the patch just got merged at https://github.com/mojohaus/rpm-maven-plugin/pull/66
The PR is tagged for release in 2.2.0 but last release was 2.1.5 in Feb 2016. 😢
2.2.0 (and 2.3.0) were eventually released, so we can look at this again.
mvn package
callsrpmbuild
without path, so this is pretty easy:rpmbuild
somewheremvn package