Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] How to install an Eclipse plugin in repository with mvn install:install-file and use it in MANIFEST.MF

Hello,

 

I am using an acceleo plugin in my Eclipse plugin project and i can’t use it with Tycho…

 

I install acceleo plugin with the following command :

mvn install:install-file  -Dfile=fr.obeo.acceleo.gen_2.8.0.201102021515.jar -DgroupId=fr. obeo.acceleo -DartifactId=fr.obeo.acceleo.gen -Dversion=2.8.0 -Dpackaging=jar -DgeneratePom=true

 

So in my MANIFEST.MF I have :

Require-Bundle: org.eclipse.core.runtime,

 org.eclipse.core.resources;visibility:=reexport,

 org.eclipse.emf.ecore;visibility:=reexport,

 org.eclipse.emf.edit;visibility:=reexport,

 org.eclipse.emf.ecore.edit;visibility:=reexport,

 org.eclipse.emf.ecore.xmi;visibility:=reexport,

 org.eclipse.emf.edit.ui;visibility:=reexport,

 org.eclipse.ui.ide;visibility:=reexport,

 org.eclipse.jdt.core,

 org.eclipse.jdt.ui,

 org.eclipse.jface.text,

 fr.obeo.acceleo.gen;bundle-version="2.8.0"

 

but when I build my Eclipse plugin with tycho I have the following error :

 

[INFO] {org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1, osgi.ws=win32, osgi.arch=x86_64, osgi.os=win32, org.eclipse.update.install.features=true, org.osgi.framework.system.packages=}

[INFO] [Software being installed: org.test.plugin 1.12.0.qualifier, Missing requirement: org.test.plugin 1.12.0.qualifier requires 'bundle fr.obeo.acceleo.gen 2.8.0' but it could not be found]

[ERROR] Internal error: java.lang.RuntimeException: org.eclipse.equinox.p2.core.ProvisionException: No solution found because the problem is unsatisfiable. -> [Help 1]

org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: org.eclipse.equinox.p2.core.ProvisionException: No solution found because the problem is unsatisfiable.

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)

        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)

        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)

        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)

        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)

        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

Caused by: java.lang.RuntimeException: org.eclipse.equinox.p2.core.ProvisionException: No solution found because the problem is unsatisfiable.

        at org.eclipse.tycho.p2.impl.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:102)

        at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:324)

        at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:293)

        at org.eclipse.tycho.p2.facade.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:389)

        at org.eclipse.tycho.p2.facade.P2TargetPlatformResolver.resolvePlatform(P2TargetPlatformResolver.java:150)

        at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:90)

        at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:91)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:273)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)

        ... 11 more

Caused by: org.eclipse.equinox.p2.core.ProvisionException: No solution found because the problem is unsatisfiable.

        ... 20 more

[ERROR]

 

I don’t understand why it can’t resolve the acceleo plugin dependencies…

Any idea?

 

Thanks for your help!

 

Guillaume

 

 







This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is
intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to
read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message
in error, please notify the sender immediately and delete all copies of this message.

Back to the top