netbeans-gradle-javaee-project
netbeans-gradle-javaee-project copied to clipboard
Can't display webapp in source dir.
I have created a dir 'webapp' in source dir, such as 'src/main/webapp'. but not display it in project view. But I aleady installed 'Gradle JavaEE support' plugin, and applied plugin 'war'. -------------------- my source path : -src -main -java -resources -webapp -WEB-INF -web.xml -index.jsp
my build.gradle file:
apply plugin: 'war' apply plugin: 'idea' apply plugin: 'jetty'
[jettyRun, jettyRunWar, jettyStop].stopPort = 9966 [jettyRun, jettyRunWar, jettyStop].stopKey = 'stopKey'
dependencies { compile project(':QBS-UTIL') compile project(':QBS-CORE') compile project(':QBS-SERVICE') providedRuntime 'javax.servlet.jsp:jsp-api:2.2' providedRuntime 'javax.servlet.jsp:javax.servlet.jsp-api:2.3.1' providedRuntime 'javax.servlet:servlet-api:2.5' runtime 'javax.servlet:jstl:1.1.2' } -------------------- is there any errors? Thx.
I try uninstall the 'Gradle JavaEE support' plugin, now the 'WebPages' show in project view. may be exits a bug.
please check it. thx.
Hi. I've been able to view the Web Pages folder, both with and without the Gradle JavaEE plugin enabled. I do know that the standard Gradle plugin displays a hard-coded webapps folder, but should only do that if the Gradle JavaEE plugin is not installed. So, this is the projects tab when the JavaEE plugin is disabled (http://imgur.com/LGMEm4W) and this is the projects tab when the JavaEE plugin is enabled (http://imgur.com/pcK6lRH). In both cases, I could see the files.
One difference with my project that is different from yours is I only apply the war plugin. Could you see if, by removing the jetty and idea plugins if that makes a difference?
Also, I think the folder should be src/main/webapp. According to your message, it's src/webapp.
In fact, I would have assumed the java and resources folder would be in src/main as well as webapp. That's how I have mine, and I think that's the default convention.