6.2How to add a specific library (Lib Def)
To add a specific library in the generated project after generation, you manage a Lib Def.
Sample: Add the libraries for Drools (see Figure 1).

Figure 1: Drools lib specification
6.2.1New Lib Def
To create a new Lib Def, you go to “Lib Def Config” on the Workflow tree (right click -see Figure 2). A dialog box is displayed (see Configuration).

Figure 2: Lib Def Config menu
6.2.2Configuration
On the first dialog box (see Figure 3) you define several properties:
- Name: drools (for the example).
- Project type: entities, service and web (for the example).

Figure 3: Lib Def – Configuration
Click on Next to continue. A new dialog box is displayed (see Figure 4).

Figure 4: Lib Def – Configuration – Adding lib
You have to add the specific libraries.
Click on Finish to validate.
You can view the new Lib Def in the Workflow tree (see Figure 5).

Figure 5: Lib Def – Drools Lib Def
Once the generation is executed, you can see that the drools libraries are integrated into the generated project (see Figure 6).

Figure 6: Lib Def – Custom lib Drools