General

Before version 1.4.4 the plugin worked, now it doesn't, what happened?

Remove the from the execution section in the plugin section of your pom. See usage for more details.

[top]

It seems to build my project fine, as it says its building the JSPs, but when I deploy my Web application, its compiling the JSPs at that time. When I check the web.xml, there are no references to the JSPs. The plugin doesn't seem to work.

First, check to see that you have the in your web.xml. The jspc plugin needs to know where to inject the jsp/servlet mapping. Second, the jspc plugin needs to work with the maven war plugin to get the jsp names injected as a servlet. Be sure you added the maven-war-plugin to your pom and have set the webXml configuration parameter to point to the one created by the jspc plugin. See usage for more details.

[top]

Everything compiles fine, but when I deploy my war, I get a java.lang.VerifyError. How can I fix this?

This is almost always caused by a mismatch in the compiled code not matching up and running in a different compiler version. The plugin defaults to 1.4 version of compiled code. Be sure to declare the source and target version parameters in the plugin and that they match what you may have them set to for your standard compiles. Example:

<configuration>
                            <source>1.5</source>
                            <target>1.5</target>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            .
            .
            .
]]>
[top]

I have set the source and target configuration parameters to 1.5 as you showed, but now I get Errors found during compilation exception when I do a build.

Be sure you are running a 1.5 compiler. Using a 1.4.X compiler when declaring the source and target configuration parameters to 1.5 will always result in this error.

[top]