Community
Participate
Working Groups
Build Identifier: In trying to fix the issue related to Windows File Locking (http://docs.codehaus.org/display/JETTY/Files+locked+on+Windows) I applied the changes to my web.xml and webdefault.xml. I also specified on the pom.xml (Maven project) the property <webDefaultXml>src/main/.../webdefault.xml</webDefaultXml> which was the file pulled out and modified as stated in the link above. I tried changing a file after running 'mvn jetty:run' but was thrown errors related to file locking. Switching the jetty-maven-plugin from 8.0.0.M0 to 7.1.5.v20100705 fixed the problem, so I'm thinking some sort of regression occurred in supporting this. Reproducible: Always Steps to Reproduce: 1. create a blank web application for Maven. 2. use the jetty-maven-plugin version 8.0.0.M0: <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>7.1.5.v20100705</version> 3. Specify in <configuration> the following additional line: <webDefaultXml>${basedir}/src/main/resources/webdefault.xml</webDefaultXml> 4. Add an index.html or some other static file that Jetty will recognize and load. 5. 'mvn clean install jetty:run' 6. Try editing an index.html or other file that was preloaded.
Michael, As the possessor of a windows environment, could you test with the latest jetty-8.0.0.M2-SNAPSHOT? I have pushed a snapshot recently, so you wont need to build jetty-8 locally. thanks Jan
Thanks for the update. I am having a heck of a time trying to find the location for the SNAPSHOT repositories for Jetty. Could you let me know where I can find it? In looking at Sonatype's Repository (http://repository.sonatype.org) the latest version I can find is 8.0.0.M1, and no snapshots. Also, on the Jetty Download page(http://www.eclipse.org/jetty/downloads.php) there doesn't appear to be any snapshots, so I have been digging for another repository with no luck.
Nick, The snapshots are here: https://oss.sonatype.org/content/groups/jetty-with-staging/ cheers Jan
Okay, took a bit of effort to get it running (I still have to figure out how to make Maven NOT download every maven-metadata.xml file in the world), but it works for me! Awesome! Thank you!