Archive for the ‘Maven’ Category

Workaround for maven/svn issues on OSX Leopard

December 7th, 2008

–non-interactive flag prevents svn from getting credentials from OSX keystore. As a result you cannot authenticate on password protected svn servers.

Add this script ahead of svn in your classpath and you will be able to use the maven-release-plugin again on Leopard :

#!/bin/sh
if [ "$1" = "--non-interactive" -o "$1" = "--username" ]; then
shift
fi
if [ "$1" = "--non-interactive" -o "$1" = "--username" ]; then
shift
fi
/usr/bin/svn "$@"

Script taken from http://blogs.exist.com/bporter/2008/02/25/working-around-non-interactive-problems-in-leopards-subversion/

Some maven links and infos

October 5th, 2007

Nothing 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