Search code examples
javaeclipseeclipse-pluginosgilotus-domino

How to install OpenNTF Domino API 3.1.0 in Eclipse Mars for use with OSGi plugins?


I wanted to try using ODA when doing OSGi plugin development and found this example by Paul Withers:

http://www.intec.co.uk/wp-content/uploads/2015/10/com.paulwithers.demoServlet.update.3.0.zip

Problem after importing project is that ODA Dependencies (required plug-ins) are not resolved for 'org.openntf.domino' and 'org.openntf.domino.xsp'.

Trying to install ODA 3.1.0 in Eclipse Mars yields the following error:

Missing requirement: OpenNTF Domino API requires 'com.ibm.icu.base 0.0.0' but it could not be found

How to resolve?

Best regards from Ove


Solution

  • I've found it best to not actually install ODA into Eclipse, but instead add it to the Target Platform. What I do nowadays is, with an Eclipse workspace dedicated to XPages-targetted development, I create a new Target Platform definition in Preferences - Plug-in Development - Target Platform that points to each library I'm using, as well as the Update Site for Build Management IBM put together. For example, from one project I have:

    That also helps for Maven builds, since then I can point to those repos from the pom and have a consistent Target Platform all around.