Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] RE : Export product via tycho

The more details understanding of this problem is:

maven build cannot find the archive antlr.runtime. Current version of platform that used in my application required 3.2.0. In my product file particular version was not definded and maven try to use version by default (4.x) ( i think).
I put concrete version of antlr.runtime (3.2.0) so as I expected I obtain message that  version 3.2.0 not found. 

I check corresponded plugin repositories and found out that required plugin is located in my repository http://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.9.2, but cannot installed. What is the reason of this? Any advises?

Thanks
Alexander

2016-04-01 0:29 GMT+03:00 DELHELLE Anthony <Anthony.DELHELLE@xxxxxxxxxxxxxxxxxx>:
Hello.

Did you check your feature ?

Anthony


Envoyé depuis un mobile Samsung


-------- Message d'origine --------
De : Александр Горлов
Date :31/03/2016 18:34 (GMT+01:00)
A : tycho-user@xxxxxxxxxxx
Objet : Re: [tycho-user] Export product via tycho

Dear Tycho Community

I found out that one child module was missed in parent pom, so ptoblem partially resolved. But I cannot complete task due to the following issue

annot complete the install because one or more required items could not be found.                                                    
Software being installed: PSL 3.0.0 (com.atom.psl.PSL 3.0.0)                                                                         
Missing requirement: PSL 3.0.0 (com.atom.psl.PSL 3.0.0) requires 'org.antlr.runtime [4.3.0.v201502022030]' but it could not be found 

pom file in product project contains corresponded dependcies 
<dependency>
            <groupId>org.antlr</groupId>
            <artifactId>antlr4-runtime</artifactId>
            <version>4.3</version>
        </dependency>

and this dependecy was saved in local cache (.m2)

but it not found in build process
How can resolve this problem

Thank you in advance
Alexander

2016-03-31 17:55 GMT+03:00 Александр Горлов <alexander.l.gorlov@xxxxxxxxxxxxxx>:
Dear Tycho Community



I have a Eclipse RCP application, that consist of a few plugins. 
I have set  of eclipse projects. Each project describe one plugin. I have separate project that contains two products file for 32-bits platforms and 64 bits platform
I am able to export product via Eclipse IDE. 
I am able to build each plugin using tycho and maven

I need to find out how to export product using tycho.

Problem is : when I run maven against parent pom all plugins is built with success, but export of product fails  I see that tycho cannot find my plugins from other projects and include them in export process. I did not understand how to describe dependency that helps maven to find other  projects. The required files have been attached



[ERROR] Failed to execute goal org.eclipse.tycho:tycho-p2-publisher-plugin:0.24.0:publish-products (default-publish-products) on project com.psl.atom.product: Execution default-publish-products of goal org.eclipse.tycho:tycho-p2-publisher-plugin:0.24.0:publish-products failed: Cannot resolve dependencies of product AtomProduct32.product. See log for details. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-p2-publisher-plugin:0.24.0:publish-products (default-publish-products) on project com.psl.atom.product: Execution default-publish-products of goal org.eclipse.tycho:tycho-p2-publisher-plugin:0.24.0:publish-products failed: Cannot resolve dependencies of product AtomProduct32.product. See log for details.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
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:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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: org.apache.maven.plugin.PluginExecutionException: Execution default-publish-products of goal org.eclipse.tycho:tycho-p2-publisher-plugin:0.24.0:publish-products failed: Cannot resolve dependencies of product AtomProduct32.product. See log for details.
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:143)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more
Caused by: org.eclipse.tycho.artifacts.DependencyResolutionException: Cannot resolve dependencies of product AtomProduct32.product. See log for details.
at org.eclipse.tycho.p2.tools.publisher.ProductVersionExpansionRun.reportErrors(ProductVersionExpansionRun.java:83)
at org.eclipse.tycho.p2.tools.publisher.ExpandedProduct.expandVersions(ExpandedProduct.java:117)
at org.eclipse.tycho.p2.tools.publisher.ExpandedProduct.<init>(ExpandedProduct.java:56)
at org.eclipse.tycho.p2.tools.publisher.PublishProductToolImpl.publishProduct(PublishProductToolImpl.java:73)
at org.eclipse.tycho.plugins.p2.publisher.PublishProductMojo.publishContent(PublishProductMojo.java:97)
at org.eclipse.tycho.plugins.p2.publisher.AbstractPublishMojo.execute(AbstractPublishMojo.java:35)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
... 20 more


-- 

--
Александр



--
Александр

--
TECH'advantage SA - 1 rue Isabey 92500 RUEIL MALMAISON
Capital  EUR 219 300,00 - RCS Nanterre B 408 832 301 - TVA FR 09 408 832 301 00027


_______________________________________________
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



--
Александр

Back to the top