Eclipse
With Maven
Maven project.properties are setup to generate correct paths - but currently does not generate antlr so you still need to build drools-java by hand first.
- Update to latest plugin (currently 1.9):
maven plugin:download -DgroupId=maven -DartifactId=maven-eclipse-plugin -Dversion=1.9
- Call the following from top level:
maven drools:eclipse
- Build Drools
- Open Eclipse
- Add each Drools module to the workspace
- You may need to add the MAVEN_REPO environment variable when in eclipse
-->Note that maven's build target is the same as eclipse, so sometimes building from command line can confuse Eclipse - if it does, just do a clean from within Eclipse (project menu).
Without Maven (Ciprian Bacalu)
- Download the latest drools cvs snapshot to a folder of your choice: <drools-src-dir>
- Create a Java project named drools
- Add the required drools dependencies to the drools project: janino.jar, antlr.jar, jsr94-1.1.jar:
- Right click on the drools project, check Properties -> Java Build Path -> Libraries
- Click on the Add External Jars... button and add the required libraries
- Add drools source folders to the drools project
- Right click on the <drools> project, check Properties -> Java Build Path -> Source
- Click on the Add Folder... button
- Check the drools project root and click on Create new folder... button
- Click on Advanced>>
- Fill in the Folder name: drools-base
- Check Link to folder in the file system
- Click on Browse... and choose <drools-src-dir>/drools-base/src/main folder
- Repeat steps 3 - 8 for drools-core, drools-examples, drools-io, drools-java, drools-jsr94, drools-smf
- If you want to use groovy and/or python you'll have to add the required libraries and to repeat
- steps 3 - 8 for drools-groovy and drools-python
- Add the drools project to the build path of your project
- Right click on your project, check Properties -> Java Build Path -> Projects
- Check the drools project in the list of Required projects on the build path.
- Any time you want to update the cvs snapshot all you have to do is to download it to the same folder <drools-src-dir> and to refresh the contents of the drools project in Eclipse (Right click on the drools project and choose Refresh)
IDEA
With Maven
- build drools
- call the following from the top level
maven idea:multiproject
- open the generated idea project file (drools.iws) in IDEA
- add junit.jar to the classpath for each project
NetBeans 4.0 (Kannan)
- Download and install the mevenide plugin (http://mevenide.codehaus.org/).
- File > open.... and choose your drools project folder (drools-2.0 for example).
- File > open... every(or just those you need) drools modules contained in the folder (drools-base, drools-core....)
Labels
(None)

Comments (1)
Jan 23, 2005
Milos Kleint says:
For Netbeans I suggest using mevenide (mevenide.codehaus.org) After downloading ...For Netbeans I suggest using mevenide (mevenide.codehaus.org)
After downloading and installing mevenide, just open any of the drools projects.