Before starting to create your first project you must configure a Nuxeo SDK.
A Nuxeo SDK is a regular Tomcat distribution of the Nuxeo Platform that is used as the development server, where your projects will be deployed. The Nuxeo SDK is providing the classpath for your Nuxeo projects. All the JARs on the server will be visible in your project and you will be able to reference them from your code. Only Nuxeo Platform 5.5 versions and later are supported.
Do not use a Nuxeo SDK as a production server.
Installing a Nuxeo SDK
To install a Nuxeo distribution you can:
- download a Nuxeo SDK and install it:
- checkout the Nuxeo Platform source code and build a Tomcat distribution from the Nuxeo Platform trunk (you must activate the
mvn package -Ptomcat,sdk).
It is far simpler to download the SDK, and there is generally no need to build your own distribution. The Nuxeo Platform is designed to be customized without changing the SDK.
Installing a Downloaded Distribution
- UNzip the downloaded Nuxeo Platform distribution.
- In the Nuxeo SDK preference page (Eclipse Menu -> Window -> Preferences -> Nuxeo -> Nuxeo SDK), click on Add....
- Select the directory where you unzipped your Nuxeo distribution.
Be sure to select the right directory: the one containing the
- Check the added Nuxeo SDK and click on the OK button to finish. Checking the box at the left of the SDK is required to mark it as the current Nuxeo SDK used in the Eclipse Workspace.
Using Multiple Nuxeo SDKs
You can install multiple Nuxeo SDKs (with different flavors and versions). But you cannot use them in parallel in the same workspace. Only one Nuxeo SDK can be used in an Eclipse workspace at a time: the one that you check in the SDK preferences view.
You can switch to another Nuxeo SDK at anytime, by checking the SDK of your choice in the preferences. This will recompile all of your Nuxeo projects against the new Nuxeo SDK.
You can for example use this method to check if your projects are compiling on different Nuxeo Platform versions.
If you need to work on projects that target different Nuxeo Platform versions, then you must use a different workspace for each Nuxeo Platform version you need. Checking a Nuxeo SDK - i.e. making an SDK the default one - is relative to an Eclipse workspace.