I gave it a try and it found the same problem. It looks like it is not expected that the junit jar to be specified amongst dependencies but in the $ANT_HOME/lib folder... I've added the build.test.classpath to the test-junit-present target and tests are working now.
<target name="test-junit-present"> <available classname="junit.framework.Test" property="junit.present"> <classpath refid="build.test.classpath"/> </available> </target> After that, at the package target I'm getting "maven-build.xml:250: Attributes must have name and value" and I cannot find what it's all about. On Mon, Feb 7, 2011 at 9:13 PM, ant elder <antel...@apache.org> wrote: > On Sun, Feb 6, 2011 at 12:50 PM, Florian MOGA <moga....@gmail.com> wrote: > > I've just checked out "mvn ant:ant" and seems to do a decent job in > > generating an ant build file. > > I didn't know about "mvn ant:ant" that does look good. I haven't quite > got it to work properly yet though, if i run "mvn ant:ant" in > getting-started/helloworld-contribution it all seems to work but then > when running it fails to run the unit tests saying junit isn't > available, which is odd as it seems to download junit ok and looks > like it is where it says its looking. Does that work for anyone else? > > ...ant >