Skip to content

Development environment

Régis Décamps edited this page Feb 28, 2015 · 7 revisions

How to develop with Eclipse Luna?

Create a workspace

mkdir workspace_jflex

Clone jflex in your workspace

cd workspace_jflex
git clone https://github.com/jflex-de/jflex.git jflex-parent

It's important to

  • Have a jflex in a subdirectory of your workspace, otherwise Eclipse won't be able to load the parent POM
  • Name the cloned directory with a different name than "jflex" otherwise the m2e plugin will get confused between jflex and jflex/jflex

Start Eclipse and import Jflex

  1. Start Eclipse and select workspace_jflex as your workspace.
  2. Select File > Import > Maven > Existing Maven projects.
  3. Select jflex-parent as the root. Confirm with Import.

Import generated sources

  1. Execute Run as > Maven Build
  2. Open Properties for jflex
  3. In Java Build Path, select Add Folder… and add target/generated-sources/jflex.
Clone this wiki locally