Nov 4, 2021 2:51:22 PM Thomas Dumont avatar

Tips for Netbeans users

Logo netBeans

Add goals Maven Lutece

To add in Netbeans the current or specific goals Lutece (lutece:exploded, lutece:site-assembly, formatter:format, xdoc2md, ...) to all projects just go:

Tools > Options > IcĂ´ne Java > Onglet Maven > Edit Global Custom Goal Definitions.

These goals are then accessible by right-click on the project in the menu Custom ...

Configure FTL templates as HTML

  • Go to Tools> Options > Miscellaneous
  • Select the Files tab
  • Add the ftl extension and associate it to the MIME type text/html

Configure Tomcat to point to the work webapp generated by Maven

In the Services tab, expand the Servers branch to bring up Tomcat.

Right-click on the server and select Edit server.xml .

Inside the existing Host tag, add a Context tag whose parameters will need to point to your working webapp as follows:

<Host appBase="webapps" autoDeploy="false" name="localhost" unpackWARs="true">

       <Context path="mywebapp" docBase="{myprojectpath}/target/lutece" workDir="{myprojectpath}/target/work"/>


NB: Declaring the work directory of Tomcat under target , allows to empty it every time the clean goal is used.

Display the Webapp tree in the Projects tab

From Netbeans 8.0, the Webapp tree no longer appears in the Projects tab. To correct this problem, just add a file named nb-configuration.xml in the root directory of the project and whose contents are as follows:

<?xml version="1.0" encoding="UTF-8"?>
    <properties xmlns="">