|Re: [tycho-user] Is it possible to add mockito as a maven dependency to a test plugin?|
See here  tycho can: - use updatesites - target files - osgi-fied maven dependeciesits 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"
 https://wiki.eclipse.org/Tycho/Target_Platform Am 19.08.19 um 15:06 schrieb Johan Compagner:
1. Configure your Tycho build and ask it to rely on the target platform <https://www.vogella.com/tutorials/EclipseTycho/article.html#defining-the-dependencies-for-the-build> [2 <https://www.vogella.com/tutorials/EclipseTycho/article.html#defining-the-dependencies-for-the-build>], so that JUnit, Mockito and Hamcrest are known at compile-time. 2. Run /mvn verify/  https://www.vogella.com/tutorials/EclipseTycho/article.html#defining-the-dependencies-for-the-buildwhen 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 _______________________________________________ tycho-user mailing list tycho-user@xxxxxxxxxxx To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-user
Back to the top