Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Building eclipse update sites with multiple versions of a feature

You need to allow tycho target platform resolver use conflicting
dependencies

...
  <build>
    <plugins>
      <plugin>
        <groupId>org.sonatype.tycho</groupId>
        <artifactId>target-platform-configuration</artifactId>
        <configuration>
          ...
          <allowConflictingDependencies>true</allowConflictingDependencies>
        </configuration>
      </plugin>
    </plugins>
  </build>
...


Beware that reactor build can only have one version of any feature or
bundle. This means, it is not possible to build
com.overstock.maven.apt.configurator.feature 2.0.1 and create update
site with 2.0.0 and 2.0.1 versions of the feature in the same reactor build.

--
Regards,
Igor


On 11-04-04 06:05 PM, Ian Robertson wrote:
I've been working on using tycho (0.10.0) to automate the build for an
eclipse plugin, but I'm having issues in building an eclipse update site
which contains more than one version of a feature. It will build fine
of my site.xml contains:

<?xml version="1.0" encoding="UTF-8"?>
<site>
<feature url="com.overstock.maven.apt.configurator.feature_2.0.0"
id="com.overstock.maven.apt.configurator.feature"
version="2.0.0"/>
</site>

or

<?xml version="1.0" encoding="UTF-8"?>
<site>
<feature url="com.overstock.maven.apt.configurator.feature_2.0.1"
id="com.overstock.maven.apt.configurator.feature"
version="2.0.1"/>
</site>

However, if I try to combine both versions into one site:

<site>
<feature url="com.overstock.maven.apt.configurator.feature_2.0.0"
id="com.overstock.maven.apt.configurator.feature"
version="2.0.0"/>
<feature url="com.overstock.maven.apt.configurator.feature_2.0.1"
id="com.overstock.maven.apt.configurator.feature"
version="2.0.1"/>
</site>

then tycho complains about having competing versions:

[INFO] Cannot complete the request. Generating details.
[INFO]
{org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1,
osgi.ws=gtk, osgi.arch=x86, osgi.os=linux,
org.eclipse.update.install.features=true,
org.osgi.framework.system.packages=}
[INFO] [Software being installed:
com.overstock.maven.apt.configurator.site 2.0.1, Only one of the
following can be installed at once:
[com.overstock.maven.apt.configurator.feature.feature.jar 2.0.1,
com.overstock.maven.apt.configurator.feature.feature.jar 2.0.0], Cannot
satisfy dependency:
com.overstock.maven.apt.configurator.feature.feature.group 2.0.0 depends
on: com.overstock.maven.apt.configurator.feature.feature.jar [2.0.0],
Cannot satisfy dependency:
com.overstock.maven.apt.configurator.feature.feature.group 2.0.1 depends
on: com.overstock.maven.apt.configurator.feature.feature.jar [2.0.1],
Cannot satisfy dependency: com.overstock.maven.apt.configurator.site
2.0.1 depends on:
com.overstock.maven.apt.configurator.feature.feature.group
[2.0.0,2.0.1), Cannot satisfy dependency:
com.overstock.maven.apt.configurator.site 2.0.1 depends on:
com.overstock.maven.apt.configurator.feature.feature.group [2.0.1,2.0.2)]
[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:534)
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:57)

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

at java.lang.reflect.Method.invoke(Method.java:616)
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.sonatype.tycho.p2.impl.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:98)

at
org.sonatype.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:335)

at
org.sonatype.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:300)

at
org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:406)

at
org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.resolvePlatform(P2TargetPlatformResolver.java:105)

at
org.codehaus.tycho.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:68)

at
org.codehaus.tycho.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:94)

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

Am I doing something wrong, or is this currently a limitation of tycho?

- Ian Robertson




CONFIDENTIALITY NOTICE: This message is intended only for the use and
review of the individual or entity to which it is addressed and may
contain information that is privileged and confidential. If the reader
of this message is not the intended recipient, or the employee or agent
responsible for delivering the message solely to the intended recipient,
you are hereby notified that any dissemination, distribution or copying
of this communication is strictly prohibited. If you have received this
communication in error, please notify sender immediately by telephone or
return email. Thank you.
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top