Some maven links and infos
October 5th, 2007Nothing new, but this may help maven newbies.
- Using Jetty to run maven webapps with automatic context reloading :
Add the folowing plugin to your project
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<configuration>
<scanIntervalSeconds>10</scanIntervalSeconds>
<webAppConfig>
<contextPath>/test</contextPath>
<tempDirectory>
${project.build.directory}/work</tempDirectory>
</webAppConfig>
</configuration>
</plugin>
Then run :
mvn jetty:run
See the maven-jetty-plugin page for more information - Debugging webapps with maven : this can also be used to debug any remote java application
- Unit testing with Hibernate and HSQLDB
- Beware of “Q for Eclipse” : it seems that this maven plugin for eclipse changed my pom.xml and broke my jetty configuration (some attributes were removed). You should rather use m2eclipse for now
