P2 packaging with eclipse europa

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

P2 packaging with eclipse europa

papinard
This post has NOT been accepted by the mailing list yet.

Hello,

Did someone ever successfully package a p2 repository with on eclipse Europa platform?

I work on an rcp application based on eclipse Europe 3.3.2 and I try to migrate to maven 3.0.3 with tycho 0.11.1.
So I've package my target platform with this tutorial https://docs.sonatype.org/display/TYCHO/How+to+make+existing+OSGi+bundles+consumable+by+Tycho, and then add this into my parent pom.xml with:
<repository>
      <id>update332</id>
      <url>http://my.packaged.p2.repository/</url>
      <layout>p2</layout>
    </repository>

 <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>target-platform-configuration</artifactId>
        <version>0.11.1</version>
        <configuration>
          <resolver>p2</resolver>
          <environments>
            <environment>
              <os>win32</os>
              <ws>win32</ws>
              <arch>x86</arch>
            </environment>
          </environments>
        </configuration>
      </plugin>

Then I run mvn clean install on the parent pom and I get strange errors like :

[ERROR] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Could not resolve plugin org.eclipse.ui.carbon_3.2.100.I20070605-0010; Path to dependency:
  eclipse-feature:org.eclipse.rcp:3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc: C:\Users\papd\.m2\repository\p2\org\eclipse\update\feature\org.eclipse.rcp\3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7b
c\org.eclipse.rcp-3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc.jar

        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: Could not resolve plugin org.eclipse.ui.carbon_3.2.100.I20070605-0010; Path to dependency:
  eclipse-feature:org.eclipse.rcp:3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc: C:\Users\papd\.m2\repository\p2\org\eclipse\update\feature\org.eclipse.rcp\3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7b
c\org.eclipse.rcp-3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc.jar

        at org.codehaus.tycho.ArtifactDependencyVisitor.newRuntimeException(ArtifactDependencyVisitor.java:39)
        at org.codehaus.tycho.ArtifactDependencyVisitor.missingPlugin(ArtifactDependencyVisitor.java:28)
        at org.codehaus.tycho.osgitools.AbstractArtifactDependencyWalker.traversePlugin(AbstractArtifactDependencyWalker.java:244)
        at org.codehaus.tycho.osgitools.AbstractArtifactDependencyWalker.traverseFeature(AbstractArtifactDependencyWalker.java:87)
        at org.codehaus.tycho.osgitools.AbstractArtifactDependencyWalker.traverseFeature(AbstractArtifactDependencyWalker.java:194)
        at org.codehaus.tycho.osgitools.AbstractArtifactDependencyWalker.traverseFeature(AbstractArtifactDependencyWalker.java:92)
        at org.codehaus.tycho.osgitools.AbstractArtifactDependencyWalker.traverseFeature(AbstractArtifactDependencyWalker.java:60)
        at org.codehaus.tycho.osgitools.EclipseFeatureProject$1.walk(EclipseFeatureProject.java:29)
        at org.codehaus.tycho.osgitools.AbstractArtifactBasedProject.resolve(AbstractArtifactBasedProject.java:37)
        at org.codehaus.tycho.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:99)
        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

Note that I try to package my application on a win32 target, so I don't really know why tycho crashes on a carbon bundle.

So, I am wondering if eclipse Europa can be packaged with p2. If its possible where can I get a tutorial, an example or a p2 packaged eclipse Europa ?

Thanks for your help

Regards

Pierre-Antoine
Loading...