Recent Entries:

Favorite Links

Maven: The Definitive Guide

Wednesday, January 28th, 2009

I have been looking for you for ages.
I wanted to know all of your secrets, not just guess them from the POM reference or from the maven official documentation, which is very poor in same cases.
Where have you been?
Finally I found you, Maven Definitive Guide!

Maven and the encoding of Java files

Friday, October 3rd, 2008

I was mavenizing a java project (I was using ant earlier) on my macbook and I realized that since I was using UTF-8 on my macbook the files were compiled using UTF-8 instead of ISO-8859-1 (some strings where corrupted).
The solution is to add the encoding parameter to the maven-compiler-plugin

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
<encoding>ISO-8859-1</encoding>
</configuration>
</plugin>

maven-script-ant and the maven.test.classpath

Friday, September 19th, 2008

When using the ant-run plugin you can get references to the maven classpaths in the ant fragment
Those are the ones available:

maven.compile.classpath
maven.runtime.classpath
maven.test.classpath
maven.plugin.classpat

I tried to build an ant plugin for maven as explained in http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html to refactor out the ant fragment and all went smooth until I needed a reference to the maven classpath.
I just assumed I [...]