Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Is it possible to add mockito as a maven dependency to a test plugin?

See here [1] tycho can:

- use updatesites
- target files
- osgi-fied maven dependecies

its all up to you how you organize it, like it or even combine it for your needs. For all these things one holds true: You have to know how OSGi works or you might end up with strange errors, its not a "trow in everything I have copied from google and hope maven wil fix it"


Am 19.08.19 um 15:06 schrieb Johan Compagner:
     1. Configure your Tycho build and ask it to rely on the target
        so that JUnit, Mockito and Hamcrest are known at compile-time.
     2. Run /mvn verify/


when i first read that point about "ask to rely on target platform" i thought wait does tycho really supports this.. But no that is just redefining in the pom file pretty much what i already have in my target

( always have to make sure those are in sync)

It would be nice if that was 1 thing that in the pom file i could do:


So that i don't have exactly the same list 2 twice... (and need to think to update both when changing one)

Ofcourse there is a big difference between those 2, in a target platform you really have to specify which you get (installable units)
and tycho you just say use this dir and figure out what to get...
(i like the tycho way, i would love that the target files also was just a bunch of p2 repo sites and that eclipse just resolves what you need)


tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top