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?

  1. Configure your Tycho build and ask it to rely on the target platform [2], so that JUnit, Mockito and Hamcrest are known at compile-time.
  2. Run mvn verify

[2] https://www.vogella.com/tutorials/EclipseTycho/article.html#defining-the-dependencies-for-the-build



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:

<p2target>point.to.eclipse.target</p2target>

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)

johan



Back to the top