Menu

Editing module in NetBeans

Help
2012-06-03
2013-04-25
  • Alberto Gallardo

    I have had very hard times trying to get my NetBeans (7.1.2) providing me autocompletion for jsps in opencms modules created with the opencms-module archetype. I asked the question in StackOverflow: http://stackoverflow.com/questions/10855632/how-to-enable-jsp-tags-autocompletion-in-netbeans-within-netbeans-maven-projects/10855633#10855633.

    The solution, briefly:
    1. Change the pom packaging type to war
    2. Create a symlink src/main/webapp that points to src/main/opencms (if the "WebPages" entry does not appear under your projects view, restart NetBeans
    3. Edit your jsps from the src/main/webapp

    I hope it can help anyone.

     
  • Brabenetz Harald

    Hi,

    Have you tried configure the maven-war-plugin (instead of symlink)?:

          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-war-plugin</artifactId>
            <version>2.2</version>
            <configuration>
              <webResources>
                <resource>
                  <!- this is relative to the pom.xml directory ->
                  <directory>src/main/opencms</directory>
                </resource>
              </webResources>
            </configuration>
          </plugin>

    with friendly regards,
    Harald

     
  • Alberto Gallardo

    Sorry for the crossposting. I answered in the gmane opencms mail list:
    http://permalink.gmane.org/gmane.comp.cms.opencms.devel/36675

    Thanks and regards,

    Alberto

     

Log in to post a comment.