...
The plugin containes a modified version of Jasper 56, which reads JSPs from the classpath, and generates the java code in memory (no .java file is written). The Java Compiler API is then used to compile the java source code into bytecode (in memory, no .class file is generated), and it is turned into a Servlet, which is cached for future use.
...
Requirements
- Java 6 or later
Installation
...
Tomcat
Tested with Tomcat 6.0.20.
Jetty
This plugin requires Jetty 7 to work. And the Tomcat libraries must be deployed with the application, adding this to your pom.xml
should take care of that:
Code Block | ||||
---|---|---|---|---|
| ||||
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>jasper</artifactId>
<version>6.0.18</version>
</dependency>
|
To use Jetty 7 with the maven plugin add this to your pom.xml
:
Code Block | ||||
---|---|---|---|---|
| ||||
<build>
<plugins>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
|