I've been trying to build docx4j from source, from the 2.2.2 release tag.
I managed to snag all the dependencies via Maven, and once I altered the "m2Repository" property in the build.xml to actually point at my maven repository, the ant dist seemed to start to work, except it hit these JAXB related no package found errors:
[javac] C:\temp\svn\docx4j\src\main\java\org\docx4j\jaxb\NamespacePrefixMapper.java:30: package com.sun.xml.bind.marshaller does not exist
[javac] public class NamespacePrefixMapper extends com.sun.xml.bind.marshaller.NamespacePrefixMapper {
[javac] ^
[javac] ...