Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-dev] multimodule projects and bundle cannot be resolved

Mickael,

 

Thanks for your answer.

 

I have discovered the following post: http://stackoverflow.com/questions/18759098/tycho-and-eclipse-how-to-resolve-osgi-dependencies-to-my-own-bundles-at-develop

It seems that the configuration throught IDE configuration is not so good because you have to change it each time.

I didn’t configure my target-platform.

 

My configuration (part of Eclipse Papyrus SysML project https://git.eclipse.org/c/papyrus/org.eclipse.papyrus-sysml.git/ ) is just:

 

<<<<<<<<<<<<<<<<<< 

<plugin>

                                                                <groupId>org.eclipse.tycho</groupId>

                                                                <artifactId>target-platform-configuration</artifactId>

                                                                <configuration>

                                                                                <environments>

                                                                                                <environment>

                                                                                                                <os>win32</os>

                                                                                                                <ws>win32</ws>

                                                                                                                <arch>x86_64</arch>

                                                                                                </environment>

                                                                                                <environment>

                                                                                                                <os>linux</os>

                                                                                                                <ws>gtk</ws>

                                                                                                                <arch>x86_64</arch>

                                                                                                </environment>

                                                                                                <environment>

                                                                                                                <os>macosx</os>

                                                                                                                <ws>cocoa</ws>

                                                                                                                <arch>x86_64</arch>

                                                                                                </environment>

                                                                                </environments>

                                                                </configuration>

                                                </plugin>

<<<<<<<<<<<<<<<<<<< 

 

And

 

<<<<<<<<<<<<<<<<<<< 

                                                <plugin>

                                                                <groupId>org.eclipse.tycho</groupId>

                                                                <artifactId>target-platform-configuration</artifactId>

                                                                <configuration>

                                                                                <includePackedArtifacts>true</includePackedArtifacts>

                                                                </configuration>

                                                </plugin>

 

<<<<<<<<<<<<<<<<<<< 

 

My idea was more to have a behavior like maven project with m2e.

When I open a module from a multimodule project 100% java/maven, Eclipse m2e connector looks at the .m2/repository. It configures automatically the module project classpath to resolve dependencies in this directory and if another submodule is already opened, it change to map to workspace resolution.

 

In the post http://stackoverflow.com/questions/18759098/tycho-and-eclipse-how-to-resolve-osgi-dependencies-to-my-own-bundles-at-develop, it seems someone was able to resolve them by using the Tycho configurator, a maven m2e connector.

 

But I am not able to reproduce this in any of my projects.

 

It will be definitively very useful

 

Thanks again for your advices.

 

Francois

 

De : tycho-dev-bounces@xxxxxxxxxxx [mailto:tycho-dev-bounces@xxxxxxxxxxx] De la part de Mickael Istria
Envoyé : lundi 31 août 2015 09:27
À : tycho-dev@xxxxxxxxxxx
Objet : Re: [tycho-dev] multimodule projects and bundle cannot be resolved

 

Does you target-platform in your IDE contain the necessary dependencies?
AFAIK, m2e-tycho connector is not yet able to map target-platform-configuration into IDE configuration, so that's something you need to configure manually in your IDE.

HTH,

--
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Back to the top