Re: Packaging m2e-wtp

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

 



On 03/19/2015 10:17 AM, Mat Booth wrote:
> On 19 March 2015 at 08:28, Julius Schwartzenberg
> <julius.schwartzenberg@xxxxxx <mailto:julius.schwartzenberg@xxxxxx>> wrote:
>
>     On 03/18/2015 09:11 PM, Roland Grunberg wrote:
>     >> On 03/15/2015 02:07 AM, gil wrote:
>     >>> Bundle-ClassPath (as for Class-Path) is not allowed in Fedora.
>     >>> You should (read must) remove this instruction from felix (or war plugin)
>
>     > I just asked Mat Booth about this and it seems you should be fine to use
>     > Bundle-ClassPath. In fact, the Eclipse plugin packaging guidelines refer
>     > to this exact case [1].

> Can you post the exact error you are seeing or your spec file so far?

I've attached my spec file.

Here is the error:
[ERROR] Reactor project 
org.eclipse.m2e.wtp:org.eclipse.m2e.wtp:jar:1.1.0-SNAPSHOT has 
system-scoped dependencies: [
 
org.eclipse.m2e.wtp:org.eclipse.m2e.wtp:jars/maven-war-plugin-2.1.1.jar:jar:1.1.0.qualifier,
 
org.eclipse.m2e.wtp:org.eclipse.m2e.wtp.source:jars/maven-war-plugin-2.1.1.jar:jar:1.1.0.qualifier
]
[ERROR] Reactor project 
org.eclipse.m2e.wtp:org.eclipse.m2e.wtp.feature:jar:1.1.0-SNAPSHOT has 
system-scoped dependencies: [
 
org.eclipse.m2e.wtp:org.eclipse.m2e.wtp:jars/maven-war-plugin-2.1.1.jar:jar:1.1.0.qualifier
]
[ERROR] Reactor project 
org.eclipse.m2e.wtp:org.eclipse.m2e.wtp.jaxrs:jar:1.1.0-SNAPSHOT has 
system-scoped dependencies: [
 
org.eclipse.m2e.wtp:org.eclipse.m2e.wtp:jars/maven-war-plugin-2.1.1.jar:jar:1.1.0.qualifier
]
[ERROR] Reactor project 
org.eclipse.m2e.wtp:org.eclipse.m2e.wtp.jaxrs.feature:jar:1.1.0-SNAPSHOT 
has system-scoped dependencies: [
 
org.eclipse.m2e.wtp:org.eclipse.m2e.wtp:jars/maven-war-plugin-2.1.1.jar:jar:1.1.0.qualifier
]
[ERROR] Reactor project 
org.eclipse.m2e.wtp:org.eclipse.m2e.wtp.jsf:jar:1.1.0-SNAPSHOT has 
system-scoped dependencies: [
 
org.eclipse.m2e.wtp:org.eclipse.m2e.wtp:jars/maven-war-plugin-2.1.1.jar:jar:1.1.0.qualifier
]
[ERROR] Reactor project 
org.eclipse.m2e.wtp:org.eclipse.m2e.wtp.jsf.feature:jar:1.1.0-SNAPSHOT 
has system-scoped dependencies: [
 
org.eclipse.m2e.wtp:org.eclipse.m2e.wtp:jars/maven-war-plugin-2.1.1.jar:jar:1.1.0.qualifier
]
[ERROR] Reactor project 
org.eclipse.m2e.wtp:org.eclipse.m2e.wtp.sdk.feature:jar:1.1.0-SNAPSHOT 
has system-scoped dependencies: [
 
org.eclipse.m2e.wtp:org.eclipse.m2e.wtp:jars/maven-war-plugin-2.1.1.jar:jar:1.1.0.qualifier,
 
org.eclipse.m2e.wtp:org.eclipse.m2e.wtp.source:jars/maven-war-plugin-2.1.1.jar:jar:1.1.0.qualifier
]
[INFO] 
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] M2E-WTP :: Parent .................................. FAILURE [ 
0.271 s]
[INFO] M2E-WTP :: Overlay Core ............................ SUCCESS [ 
3.383 s]
[INFO] M2E-WTP :: Overlay UI .............................. SUCCESS [ 
0.570 s]
[INFO] M2E-WTP :: Core .................................... SUCCESS [ 
2.689 s]
[INFO] M2E-WTP :: Core Feature ............................ SUCCESS [ 
0.628 s]
[INFO] M2E-WTP :: JAX-RS Support .......................... SUCCESS [ 
0.872 s]
[INFO] M2E-WTP :: JAX-RS Support Feature .................. SUCCESS [ 
0.286 s]
[INFO] M2E-WTP :: JSF Support ............................. SUCCESS [ 
0.865 s]
[INFO] M2E-WTP :: JSF Support Feature ..................... SUCCESS [ 
0.299 s]
[INFO] M2E-WTP :: Core SDK Feature (Optional) ............. SUCCESS [ 
0.224 s]
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 54.976 s
[INFO] Finished at: 2015-03-14T23:52:28+01:00
[INFO] Final Memory: 47M/112M
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.fedoraproject.xmvn:xmvn-mojo:2.0.1:install (default-cli) on project 
org.eclipse.m2e.wtp.parent: Some reactor artifacts have dependencies 
with scope "system". Such dependencies are not supported by XMvn 
installer. You should either remove any dependencies with scope "system" 
before the build or not run XMvn instaler. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the 
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, 
please read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
error: Bad exit status from /var/tmp/rpm-tmp.L8QMxe (%build)
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

#Patch0:         m2e.wtp-releases-1.1.0-1.1.0.20140611-1646-tycho_v0.21.0.patch

BuildRequires:  eclipse-license
BuildRequires:  eclipse-m2e-mavenarchiver
BuildRequires:  eclipse-webtools-jsf
BuildRequires:  maven-local
BuildRequires:  mvn(io.tesla.tycho:tycho-support:pom:)
BuildRequires:  mvn(org.apache.maven.plugins:maven-war-plugin:pom:)
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)
BuildRequires:  osgi(slf4j.api)
BuildRequires:  tycho

%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)
# SLF4J in Fedora uses a different BSN
sed -i s/org.slf4j.api/slf4j.api/ $(find -name *.MF)

# Use default buildtimestamp source
%pom_remove_dep :tycho-sourceref-jgit .
sed -i -e "/<sourceReferences>/,+2d" pom.xml

# Use system maven-war-plugin which is not OGSI-ified instead of included (and above deleted) OGSI-ified version
echo "Eclipse-BundleShape: dir" >> org.eclipse.m2e.wtp/META-INF/MANIFEST.MF
ln -s /usr/share/java/maven-war-plugin/maven-war-plugin.jar org.eclipse.m2e.wtp/jars/maven-war-plugin-2.1.1.jar

# remove sdk files
find -name sdk -delete

# disable unnecessary modules
%pom_disable_module org.eclipse.m2e.wtp.site

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