Mar 7, 2018 6:14:35 PM seb leridon avatar   4046

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.

Add goals Maven Lutece

To add in Netbeans the current or specific goals Lutece (lutece:exploded, lutece:site-assembly, jalopy: 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 ...

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="">