开发者

Running jspc maven plugin on a GWT project structure

开发者 https://www.devze.com 2023-03-01 00:33 出处:网络
My GWT based web application follows the GWT project structure much like as described in GWT Standard Directory and Package Layout

My GWT based web application follows the GWT project structure much like as described in

GWT Standard Directory and Package Layout

The project has few JSP's in the project and I wanted to use the JSPC plugin to pre-compile and package them.

I have added the maven plugin as

<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>&lt;!-- [INSERT FRAGMENT HERE] --&gt;</injectString>
            </configuration>
        </plugin>

But while running it, I get the following error

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]

It seems JSP Compiler is looking for web.xml based on a maven webapp structure. Is there a way to configure the JSPC plugin to work with GWT project structure?

0

精彩评论

暂无评论...
验证码 换一张
取 消