Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Error: Tycho unable to locate the equinox launcher feature

Are you using a target file ? Or only a P2 repo ? Any log ? Tycho version ?

Jeff

On Wed, Dec 17, 2014 at 6:21 PM, Andy Stoneberg <stonebaj@xxxxxxxxx> wrote:
Sorry, want to follow up a little bit more as I have some additional information on the issue.

That stack trace only occurs if I check the 'The product includes native launcher artifacts' checkbox in the *Product Editor in Eclipse.  

However, if I leave that checkbox unchecked, the resulting product archives do NOT contain an executable to launch the resultant application.  Additionally, while I am specifying a launcher name of 'xxx' in the 'Launching' section of the *Product Editor, I see it is creating a 'eclipse.ini' file.  It is my understanding that this ini file should match the launcher name.

I saw this type of behavior before in PDE when it could not locate the org.eclipse.equinox.executable feature - so it might just be a different manifestation of the same problem.

Thanks!

Andy

On Wed, Dec 17, 2014 at 10:47 AM, Andy Stoneberg <stonebaj@xxxxxxxxx> wrote:
Greetings again.  I am moving from a PDE/Ant based build into Tycho - so probably more questions will be forthcoming :)  

Most of the conversion has been amazingly easy and understandable ( nice change from the mess that is PDE ).  However, I am now encountering issues when trying to execute the tycho-p2-publisher-plugin:

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-p2-publisher-plugin:0.21.0:publish-products (default-publish-products) on project com.xxx.product: Unable to locate the equinox launcher feature (aka delta-pack) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-p2-publisher-plugin:0.21.0:publish-products (default-publish-products) on project com.xxx.product: Unable to locate the equinox launcher feature (aka delta-pack)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
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:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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: org.apache.maven.plugin.MojoExecutionException: Unable to locate the equinox launcher feature (aka delta-pack)
at org.eclipse.tycho.plugins.p2.publisher.PublishProductMojo.getEquinoxExecutableFeature(PublishProductMojo.java:266)
at org.eclipse.tycho.plugins.p2.publisher.PublishProductMojo.publishContent(PublishProductMojo.java:103)
at org.eclipse.tycho.plugins.p2.publisher.AbstractPublishMojo.execute(AbstractPublishMojo.java:37)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more

Now, I am not necessarily surprised by this error but need/want to understand how Tycho expects to resolve this dependency.  The product I am building is based on a subset of Eclipse features/plugins - so when our clients point to our P2 repository, they get everything they need/can use from a single P2 repo (aka - they aren't pointing to "my" P2 repo + standard Eclipse repo).  I am packaging the org.eclipse.equinox.executable feature in my P2 repository with our relevant/supported O/S fragments. I can see the launcher fragments & root IUs are downloaded in my Maven repository (under the p2  /osgi/bundle & /binary folders respectively).  However, the org.eclipse.equinox.executable feature itself is NOT present in org/eclipse/update/feature directory.  I'm guessing it is because the feature is not listed *product file describing the build.  However, as this is really only a build-time dependency, I would prefer to not add it here.

Any help/insight would be appreciated.  Also, if I am rambling and not making sense - let me know and I will happily address any further questions about my setup.

Andy

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user


--
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

Back to the top