CiTIUS | USC

Developing for Libreplan using NetBeans

<<Back

NetBeans detects Maven projects only by having installed Maven plugin. By default, this plugin is installed in all NetBeans versions, except C/C++.

  1. Open libreplan project
  2. Click right on every module of Libreplan project (Libreplan, Libreplan Business Module, Libreplan Web Client Module, Libreplan ZK Components Module), and in the context menu select Properties - Build - Compile, check that, in Java Platform, JDK 1.6 is selected.
  3. NetBeans does not offer support to use Jetty server to debug web applications, but this server is integrated with maven. To add support to this server, open the file pom.xml and add the following lines into the <pluginManagement><plugins> section:

     <plugin>
     <groupId>org.mortbay.jetty</groupId>
     <artifactId>maven-jetty-plugin</artifactId>
     <version>6.1.14</version>
     <configuration>
      <scanIntervalSeconds>5</scanIntervalSeconds>
     </configuration>
    </plugin>


    Now, do right click over the Libreplan Web Client Module, and in the context menu select Properties - Actions. Add the following configurations to Run project:
  4. In the same windows, now select action Debug project and add the following configurations:
  5. Done! Now the application will start in the Jetty Server, and you can execute and debug it properly. (Note: NetBeans may notice that no server is assigned to deploy the web application. If it is the case, you may select Tomcat or Glassfish in Properties - Run, it has no effects, application will be deployed and debugged using Jetty).