Monday, December 11, 2006

If you are using maven to generate your intellij project files, and you get a:

java.lang.StringIndexOutOfBoundsException: String index out of range: -1

make sure you add a slash to all of your basedir variables

${basedir}/

Saturday, December 09, 2006

This is how to run an ant script from a maven pom file. Useful if you do not want to do silly things like rewrite ant scripts.




4.0.0
my-test-app
my-test-group
1.0-SNAPSHOT





org.apache.maven.plugins
maven-antrun-plugin


compile
compile








run





ant
ant-antlr
1.6.5


antlr
antlrall
2.7.4