Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Eclipse+RCP+4x+Open JDK 11+Maven Tycho+ Product build error(Error while running pom.xml of product file with Maven Tycho in RCP 4.x)
Eclipse+RCP+4x+Open JDK 11+Maven Tycho+ Product build error [message #1830745] Mon, 03 August 2020 05:02 Go to next message
Rah H is currently offline Rah HFriend
Messages: 2
Registered: May 2019
Junior Member
Hi ,

I am getting error while building RCP 4.X application product plugin .
All the dependent plugins are seperately converted to maven project and build is successful with corresponding jars generated in target folder. Finally a new general project is created and converted to maven project, and the product file is moved to this project. While running pom.xml of this project, getting the null pointer exception, the exe is not generated.

PFB the log .

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-p2-publisher-plugin:1.7.0:publish-products (default-publish-products) on project XXX: Execution default-publish-products of goal org.eclipse.tycho:tycho-p2-publisher-plugin:1.7.0:publish-products failed.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)
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:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-publish-products of goal org.eclipse.tycho:tycho-p2-publisher-plugin:1.7.0:publish-products failed.
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:148)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
... 20 more
Caused by: java.lang.NullPointerException
at org.eclipse.tycho.plugins.p2.publisher.PublishProductMojo.publishContent(PublishProductMojo.java:93)



The product file is present in the general project.
Could anyone please provide your suggestion.


Thanks.
Re: Eclipse+RCP+4x+Open JDK 11+Maven Tycho+ Product build error [message #1830768 is a reply to message #1830745] Mon, 03 August 2020 15:09 Go to previous message
Cole Markham is currently offline Cole MarkhamFriend
Messages: 149
Registered: July 2009
Location: College Station, TX
Senior Member

You have to have the product in a separate project. I'll see if I can put together a small example.
Previous Topic:openjdk 11, openjfx, eclipse rcp 2018-12
Next Topic:FullScreen Stage mode
Goto Forum:
  


Current Time: Mon Sep 21 20:37:01 GMT 2020

Powered by FUDForum. Page generated in 0.01674 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top