On 9 March 2011 12:25, Karl Heinz Marbaise <[email protected]> wrote:

> Hi Stuart,
>
> first thanks for your answer....
>
>
> Stuart McCulloch wrote:
> >
> > Looks like a known Surefire bug when using TestNG - recent releases of
> > TestNG include Guice 2 as a dependency and it leaks onto the test
> > classpath.
> > Guice 2 doesn't have JSR330 support, hence the error (it only looks for
> > Guice's BindingAnnotation, and doesn't see the javax.inject.Qualifier
> > annotation)
> >
> > Solution is to use this configuration for now:
> >
> >
> >           maven-surefire-plugin
> >           2.7.2
> >
> >             false
> >
> >
> >
>
> I have tried that...may be i missed to mention that my tests where it
> failed
> are integration tests (via maven-failsafe-plugin) but tried the
> configuration there as well and the result was sadly the same ...it doesn't
> work.
>
> However ...may be the reason for not working is that my application uses
> guice 2.0 as well......


In that case you could consider upgrading your application to use Guice 3.0
rc3... otherwise you'll need to somehow isolate your application's use of
Guice 2 from the embedded Maven instance (this is "business as usual" for
any embedded scenario - whenever you leak classes from your host classpath
onto the embedded classpath there's a danger of incompatibility, hence the
need for custom webapp classloaders and OSGi).


> Kind regards
> Karl Heinz Marbaise
>
>
> -----
> Kind regards
> Karl Heinz Marbaise
> ----
> http://www.soebes.de
> http://www.skmwiki.de
> http://supose.org/wiki/supose
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Integrate-Maven-Plugin-Code-Mojo-s-into-Application-tp3397120p3415401.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

-- 
Cheers, Stuart

Reply via email to