A few days after my post to the devs mailing list reporting the Maven build problem <DVFactoryException: DTD factory class>, Vincent Massol made the fix. I have Mvn 2.2.1 and JDK 1.6 and compiles fine for me. Please double check and remove the message and perhaps close the Jira issue.
Doc updated, thanks Bogdan
Another gotcha to be aware of, ensure that Maven is using at least JDK 1.6 u22 or later to compile XWiki.
I ran into an issue with JDK 1.6u17 where Maven kept failing to building XWiki platform off the master 4.0 trunk.Maven was throwing errors on compiling: xwiki-platform-configuration-default
It was caused by the following Sun Bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6302954 (Inference fails for type variable return constraint)
Comment about Maven 3.0.4 seems outdated: bug was closed
I am getting the following error when trying to build the rendering module,
I tried in Ubuntu and Windows machines. Error in both environment. I tried to build the xwiki-rendering-syntax-xwiki20 separately and its passing.
Pls tell me a solution for this issue.