If you have a local Domino server, you can run plugins directly from Eclipse using a pde launch configuration.
Click on the "bug" icon and choose "Debug configurations...".
- Right-click on the OSGi Framework section in the left window and choose "New".
- Change "Framework" to "Domino OSGi Framework".
- Change "Default Auto-Start" to "false".
- Deselect the "Target Platform" category, so nothing beneath it is selected.
- Click "Apply" and "Debug". Any new plugins will automatically get added, but you will need to go back into the debug configuration and click "Debug" again for the server to pick them up.
The server directory and data directory will get picked up from XPages SDK configuration in the dialog box that gets presented. Click OK. You may get warned about missing constraints. This is just because those plugins aren't in the area defined in the Target Platform configuration.
The plugins will get installed from Eclipse before any from Update Site databases. Therefore your Eclipse-based plugins cannot depend on anything that's only loaded from an Update Site. There are two options:
- Import the source code for the dependencies into Eclipse as well.
- Add the features and plugins physically into the server directories (recommendation is <Domino>\data\domino\workspace\application\eclipse). Back up copies, because upgrades of the server may remove them.
- Issue the
restart task httpcommand on the server to load the plugin. You will need to do this for any changes, unless using JRebel (see Cameron Gregor's blog posts).