Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] problems with Compendium bundles at tycho-surefire

Ok, let me try to explain...

in my bundles I have : Import-package: org.osgi.service.log, org.osgi.service.cm

the first normally is supposed to be resolved by org.eclipse.osgi besides the fact that org.eclipse.osgi.services bundle export it too. org.osgi.service.cm is supposed to be resolved by org.eclipse.osgi.services bundle.

Both are API bundles, and to be able to use them, at the target platform of the running container, I must include and start the implementation bundles: org.eclipse.equinox.log and org.eclipse.equinox.cm.

What I've observed is that these bundles, declared in tycho-surefire at POM, is not being resolved:

                        <dependency>
                            <type>instalable-unit</type>
                            <artifactId>org.eclipse.equinox.log</artifactId>
                            <version>0.0.0</version>
                        </dependency>

                        <dependency>
                            <type>instalable-unit</type>
                            <artifactId>org.eclipse.equinox.cm</artifactId>
                            <version>0.0.0</version>
                        </dependency>

But instead, just because I'm using the Orbit repository, it is being resolved by this bundle:

[DEBUG]     reference:file:/Users/cvgaviao/.m2/repository/p2/osgi/bundle/osgi.enterprise/4.2.0.v201108120515/osgi.enterprise-4.2.0.v201108120515.jar

If you look in my first email at debug info, none of the declared bundles is being installed at the equinox running the tests.

hope you have understand now :)

BTW, I did what you have suggested in your first response, removed all instalable-units from POM and declared them as Required-Bundle in the test manifest and it works.


cheers,

Cristiano




On 30/01/12 17:39, Igor Fedorenko wrote:
I am not sure I understand. Do you have multiple providers of the same
package? Using org.eclipse.equinox.log as an example, can you explain
where this package is expected to come from and what do you think Tycho
does instead?

--
Regards,
Igor

On 12-01-30 2:26 PM, Cristiano Gavião wrote:
On 30/01/12 16:02, Igor Fedorenko wrote:
Tycho is expected to determine
all/most test runtime dependencies based on test bundle manifest, so
listing them explicitly should not be necessary.


hummm.. could be this the key of the problem...

It is not common to have a Require-Bundle pointing to Compendium bundles
(org.eclipse.equinox.cm or org.eclipse.equinox.log)... we just use the
package-import (org.osgi.service.cm and org.osgi.service.log)...

And it seems that Tycho is not respecting the declared bundles at the
surefire plugin and using the osgi.enterprise-4.2.0.v201108120515.jar
that it founds in Orbit p2 repository (that I think is exporting the
same packages).

WDYT ?
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top