Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] tycho-demo pom first: the bundle except test bundle not started

The project build02 build successfully. I have add the dependencies in https://github.com/guofengzh/tycho-pom-first-test2/blob/master/build02/pom.xml.
But run the test failed:
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.025 sec <<< FAILURE!

Results :

Tests in error:
  basic(tycho.demo.itp02.bundle.tests.ITP02Test): A null service reference is not allowed.

Thanks

Guofeng

-----Original Message-----
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Barrie Treloar
Sent: Monday, July 23, 2012 1:16 PM
To: Tycho user list
Subject: Re: [tycho-user] tycho-demo pom first: the bundle except test bundle not started

On Mon, Jul 23, 2012 at 2:09 PM, Guofeng Zhang <guofeng@xxxxxxxxx> wrote:
> Igor,
>
> You are right. Adding both both Bundle-Activator and Bundle-ActivationPolicy solve the issue.
>
> But I wonder if it works well for organizing bundles into interfaces-only bundles and implementation bundles, so I refactor pomfirst-bundle into pomfirst-bundle-api (only including PomFirst interface) and pomfirst-bundle-impl (including the implementation of PomFirst interface). The PomFirst service is registered in the implementation bundle. Now the test bundle failed because PomFirst service is not registered (the activator in pomfirst-bundle-impl not started).

Have you seen http://wiki.eclipse.org/Tycho/How_Tos/Dependency_on_pom-first_artifacts#Pom-first_dependencies_of_manifest-first_projects_are_not_fully_transitive

I wonder if you need to manually specify more dependencies.
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top