Starting with a local .m2 repository the doesn't have the files cached, ant copy-dependencies doesn't find all necessary artifacts.
/home/lehmann/jbehave/jbehave-3.5.4/lib/build.xml:7: Unable to resolve artifact: Missing:
it seems that the settings.xml file is not used at all (e.g. it never looks at the glassfish repository).
However if you run mvn test -s settings.xml, the depencies are found and later the ant task completes successfully as well (once the files are cached)