Packaging m2e-wtp

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

 



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.

Thanks in advance,
Julius
Name:           eclipse-m2e-wtp
Version:        1.1.0
Release:        0.1.git%{shortcommit}%{?dist}
Summary:        M2E-WTP
License:        EPL
URL:            https://github.com/eclipse/m2e.wtp/
BuildArch:      noarch

#Source0:        https://github.com/eclipse/m2e.wtp/archive/releases/1.1.0/1.1.0.20140611-1646.tar.gz
Source0:        https://github.com/eclipse/m2e.wtp/archive/releases/1.1.0/m2e.wtp-releases-1.1.0-1.1.0.20140611-1646.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(io.tesla.tycho:tycho-support:pom:)
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  osgi(org.eclipse.core.resources)
BuildRequires:  osgi(org.eclipse.core.runtime)
BuildRequires:  osgi(org.eclipse.m2e.core)
BuildRequires:  osgi(org.eclipse.m2e.jdt)
BuildRequires:  osgi(org.eclipse.m2e.maven.runtime)

%description
This package provides WTP support for Eclipse M2E.

%prep
%setup -q -n m2e.wtp-releases-1.1.0-1.1.0.20140611-1646
find -name *.jar -delete

# Fedora has newer version of M2E.  Relax bundle version requirements.
sed -i 's/\[1.0.0,1.2.0)/[1.0.0,2.0.0)/' $(find -name *.MF)

%build
%mvn_build -j

%install
%mvn_install

%files -f .mfiles
%doc org.sonatype.m2e.wtp/about.html

%changelog
* Fri Feb 20 2015 Julius Schwartzenberg <julius.schwartzenberg@xxxxxxxxx> - 1.1.0-0.1.
- Initial commit

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

--
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