[fedora-java] Packaging m2e-wtp

Roland Grunberg rgrunber at redhat.com
Thu Mar 19 15:05:10 UTC 2015


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

Try adding '%pom_remove_dep :maven-war-plugin org.eclipse.m2e.wtp' to the
%prep section of your specfile. This should resolve the issue. The
dependency is already being set up properly by your symlink, manifest,
and build.properties.

Cheers,
-- 
Roland Grunberg


More information about the java-devel mailing list