On 02/20/2015 01:09 PM, Julius Schwartzenberg wrote:
I'm trying to package m2e-wtp now. I used the m2e-cxf as inspiration for
my spec file. I get the following error however when I run rpmbuild -ba
Internal error: java.lang.RuntimeException: No solution found because
the problem is unsatisfiable.: [Unable to satisfy dependency from
org.eclipse.m2e.wtp.overlay 1.1.0.qualifier to bundle org.slf4j.api
1.6.0.; No solution found because the problem is unsatisfiable.
I thought that I could fix this by adding 'BuildRequires:
mvn(org.slf4j:slf4j-api)' but that doesn't seem to work. The regular
Maven build works without problems.
Could someone give me a clue on how I should proceed from here? I have
attached the spec file I have thus far.
SLF4J in Fedora uses a different Bundle-SymbolicName. You'll need to
patch MANIFEST.MF and replace org.slf4j.api with slf4j.api, for example:
# SLF4J in Fedora uses a different BSN
sed -i s/org.slf4j.api/slf4j.api/ $(find -name *.MF)
See also eclipse-m2e-plexus.spec
Software Engineer, Red Hat