I would like to ask about how to preserve the history of available plugins for download with tycho.
Here's the scenario:
- I have a few versions of a feature (feature.1.0.0, feature.2.0.0, etc) being built with Eclipse "Build Site" feature.
- The metadata, content.jar and artifacts.jar were created from Eclipse, by reading the site.xml.
- Now I have maven tycho to automate the p2 repository creation.
- I saw how tycho generate the p2 repo with category.xml.
- But I don't understand how to include the history, because tycho (or actually the library called by tycho, internal.p2.director.Projector) does not like the history of features in category.xml.
When I ran mvn package:
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:120)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:483)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from com.myfeature.releng.p2 raw:0.0.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):0.0.0-SNAPSHOT to com.myfeature.plugin.feature.feature.group [13.7.0,13.7.1).; Unable to satisfy dependency from com.myfeature.releng.p2 raw:0.0.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):0.0.0-SNAPSHOT to com.myfeature.plugin.feature.feature.group [13.8.0,13.8.1).; Unable to satisfy dependency from com.myfeature.releng.p2 raw:0.0.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):0.0.0-SNAPSHOT to com.myfeature.feature.group [13.8.1,13.8.2).; Unable to satisfy dependency from com.myfeature.releng.p2 raw:0.0.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):0.0.0-SNAPSHOT to com.myfeature.feature.group [13.8.2,13.8.3).; ]
at org.eclipse.tycho.p2.util.resolution.AbstractResolutionStrategy.newResolutionException (AbstractResolutionStrategy.java:98)
at org.eclipse.tycho.p2.util.resolution.ProjectorResolutionStrategy.resolve (ProjectorResolutionStrategy.java:88)
at org.eclipse.tycho.p2.util.resolution.AbstractResolutionStrategy.resolve (AbstractResolutionStrategy.java:63)
at org.eclipse.tycho.p2.resolver.P2ResolverImpl.resolveDependencies (P2ResolverImpl.java:166)
at org.eclipse.tycho.p2.resolver.P2ResolverImpl.resolveDependencies (P2ResolverImpl.java:103)
How to build a production p2 site (with history of features) with tycho?
My package structure is based on this fabulous blog
Thanks!