As the requirements for local development and production deployments are different, this document contains two sets of instructions. First, instructions on how to work on the component locally using the Eclipse IDE (e.g. for development) and secondly instructions on how to do a full production build locally via Maven are provided.
- A Java Development Kit 17 (or higher)
- Maven (3.8+)
- Eclipse IDE (2022-06+)
This is the recommended way to build and debug for development.
- Create a new workspace in the Eclipse IDE
- Import projects from
java/
via File -> Import -> Existing Projects into Workspace - Import the Checkstyle configuration from the SET repository (
releng/eclipse/CheckstyleEclipse.xml
) via Window -> Preferences -> Checkstyle - Build all projects
This is the recommended way if you want a production-style build. This is also what we have implemented on the Jenkins instance.
- If you want to do a build relying on a build of the model component, update the target platform in
java/bundles/org.eclipse.set.toolboxmodel.releng.target
to point to your local p2 site. - Build via maven:
mvn clean verify
The p2 site for the model is now located in java\bundles\org.eclipse.set.toolboxmodel.repository\target\repository
.