You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Meghan Pike <me...@gmail.com> on 2006/08/01 18:09:56 UTC
Jetty Embedded maven classpath problem.
HI, I'm attempting to use embedded jetty 6.0 and maven 2.0. Unfortunately
jetty has an issue where it requires a copy of tools.jar on the classpath,
in order to compile jsp's. Compiling jsp's is what I want to do. I have been
attempting to mangle maven's classpaths (very wrong, I know) with code like:
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<configuration>
<tasks>
<path id="maven.test.classpath">
<pathelement location="${JAVA_HOME}/lib/tools.jar"/>
</path>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
but it hasn't worked. I think maybe because the modified classpath isn't
permanent and is just modified for the phase it is in, and not the test
phase where I need it.
Does anybody know if this is the case and how I can fix it?
I though maybe I could compile the jsp's to _jsp.java files in the pre-test
phase, but I wasn't sure about how to go about this.
Also has anybody got jetty working with maven 2? And has any body got the
jetty maven plugin working in the pre-test phase to test their web
applications with? I would really like to know, cos that would provide a
different solution to my problem.