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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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
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
Sorry, it was http://permalink.gmane.org/gmane.comp.cms.opencms.devel/36677. I didn't know that I cannot post-edit a comment :-(