Time for action – using the target platform
Although building against a remote repository works as expected, it may have dependencies on plug-ins or features that aren't represented in the target platform created in Chapter 10, Using a Target Platform. To compile against a target platform, a new Maven module needs to be created.
- Move the
com.packtpub.e4.target.mars
project underneath thecom.packtpub.e4.parent
project. - Add the line
<module>com.packtpub.e4.target.mars</module>
to the parentpom.xml
file. - Comment out the
repositories
tags in the parentpom.xml
file. - In the
configuration
element of thetarget-plugin-configuration
entry, add the co-ordinates of thecom.packtpub.e4.target.mars
project:<plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-platform-configuration</artifactId> ...
Get Eclipse Plug-in Development Beginner's Guide - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.