Re: Packaging m2e-wtp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/20/2015 01:09 PM, Julius Schwartzenberg wrote:
> Hi,
> 
> 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
> on it:
> 
> 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

-- 
Mikolaj Izdebski
Software Engineer, Red Hat
IRC: mizdebsk
--
java-devel mailing list
java-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/java-devel





[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux