Eclipse Integration

Eclipse provides a generally available integrated development environment for developing java components. The Maven Eclipse Plugin provides a means to generate an Eclipse project file from a Maven project.

The DWFA modules include an entry for the Maven Eclipse Plugin in each of their pom.xml files. If you would like to use Eclipse to extend the DWFA environment by adding your own tasks, please follow these steps:

  1. Eclipse needs to know the path to the local maven repository. Therefore the classpath variable M2_REPO has to be set. Execute the following command:

    mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo

    You can also define a new classpath variable inside eclipse: From the menu bar, select Window > Preferences. Select the Java > Build Path > Classpath Variables page.

  2. Navigate to the dev/process directory inside dfwa folder you installed with the installer, or you copied from a CD-ROM.



  3. Verify that you are in the same directory as the pom.xml file



  4. Execute mvn eclipse:eclipse at a command prompt from within this folder. This execution will cause maven to generate several files used by eclipse. Eclipse can now import the module.



  5. Import the process project. From the menu bar, select File > Import... From the import dialog, select General > Existing Projects into Workspace, then select the Next > button. Select the Browse button next to the Select root directory, and navigate to the dev/process directory inside dfwa folder you installed with the installer, or you copied from a CD-ROM, and select this folder. The project name will show inside the Projects: list inside the import dialog. Select the finish button, and the project will be imported. You can now browse the source files, and other files inside this project from within Eclipse.