[opencms-dev] Infonova's "OpenCms Module Archetype" and NetBeans jsp autocompletion

Alberto Gallardo argrico at gmail.com
Sun Jun 3 19:57:58 CEST 2012


Hi Harald,

thank you for your quick reply.

I tried with:

    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <version>2.2</version>
        <configuration>
            <webappDirectory>/src/main/opencms</webappDirectory>
        </configuration>
    </plugin>

and now, with your suggested <webResources> configuration, but
NetBeans seems to require the mentioned src/main/webapp. If it does
not exist, there is no "Web Pages" view, and not complete jsp support.

I have reopened the NetBeans bug #179584:
    http://netbeans.org/bugzilla/show_bug.cgi?id=179584#c13

Regards,


Alberto


> 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>
>
> > I have spent a long time trying to get my NetBeans (7.1.2) autocompletion
> > working for jsps with modules created with the opencms-module archetype
> > from infonova (https://sourceforge.net/projects/bp-cms-commons/).
> >
> > With the hope that anyone find this helpful, the workaround:
> >
> >  1. Change the pom packaging type to 'war'
> >  2. Create a symlink 'src/main/webapp' that points to your 'src/main/
> > opencms'
> >  3. If the 'Web Pages' entry does not appear under your project (in
> > projects view), restart NetBeans
> >  4. Edit your jsps from the 'src/main/webapp'



More information about the opencms-dev mailing list