在GWT项目结构上运行JSPCMaven插件
我的基于GWT的web应用程序遵循GWT项目结构,如中所述 项目中很少有JSP,我想使用JSPC插件来预编译和打包它们 我将maven插件添加为在GWT项目结构上运行JSPCMaven插件,jsp,gwt,maven-2,Jsp,Gwt,Maven 2,我的基于GWT的web应用程序遵循GWT项目结构,如中所述 项目中很少有JSP,我想使用JSPC插件来预编译和打包它们 我将maven插件添加为 <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jspc-maven-plugin</artifactId> <executions>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jspc-maven-plugin</artifactId>
<executions>
<execution>
<id>jspc</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<warSourceDirectory>${basedir}/war</warSourceDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1</version>
<configuration>
<webappDirectory>${gwt.output.directory}</webappDirectory>
....
<webXml>${basedir}/target/jspweb.xml</webXml>
<injectString><!-- [INSERT FRAGMENT HERE] --></injectString>
</configuration>
</plugin>
JSP编译器似乎正在寻找基于maven webapp结构的web.xml。有没有办法将JSPC插件配置为与GWT项目结构一起工作?我们的GWT项目中有JSP文件,我们不预编译它。它和战争档案中的一样。你有什么理由选择预编译吗?
Failed to execute goal org.codehaus.mojo:jspc-maven-plugin:1.4.6:compile (jspc) on project fqng-webapp: JSPC Error: C:\MyWorkSpace\XXX\YYYY\src\main\webapp\WEB-INF\web.xml (The system cannot find the path specified) -> [Help 1]