Guten Tag Andrew Leach, am Montag, 12. Oktober 2015 um 22:33 schrieben Sie:
> Directory of > C:\Users\ypx7647\AppData\Roaming\Apache\apache-ant-1.9.6\lib You have two problems: First, BuildException is not found for any reason, second, there's a problem with the build at all, that's why BuildException is needed. As you are on Windows, in situations like yours I fire up Process Monitor, trace the I/O and just search for "BuildException" or such to see which paths are checked by Java/Maven. Most of the times some things occur... In a quick test in my installation I just deleted my .m2 folder completely and issued "mvn package", which resulted in some downloaded libs again. Some of those libs where ant 1.9.3 already, so it might be that your user wide installation is simply not needed at all. Process Monitor clearly shows that my system wide installation of ANT is NOT used and I don't have ANT_HOME set in my env. My build fails though, because I don't have any suitable compiler available. So, what can I read in my shell? > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-antrun-plugin:1.7: > run (compile) on project apache-log4cxx: An Ant BuildException has occured: > The > following error occurred while executing this line: > [ERROR] C:\Users\tschoening\Documents\Svn\Src\Libs\branches\C++\RAD > 10\Logging\l > og4cxx\0.11.0-SNAPSHOT\src\build.xml:563: The following error occurred while > exe > cuting this line: > [ERROR] C:\Users\tschoening\Documents\Svn\Src\Libs\branches\C++\RAD > 10\Logging\l > og4cxx\0.11.0-SNAPSHOT\src\src\ant\apr-build.xml:155: Could not launch cl: > java. > io.IOException: Cannot run program "cl" (in directory > "C:\Users\tschoening\Docum > ents\Svn\Src\Libs\branches\C++\RAD > 10\Logging\log4cxx\0.11.0-SNAPSHOT\src\target > \debug\static\apr-ofiles"): CreateProcess error=2, Das System kann die > angegeben > e Datei nicht finden > [ERROR] around Ant part ...<ant target="build"/>... @ 4:24 in > C:\Users\tschoenin > g\Documents\Svn\Src\Libs\branches\C++\RAD > 10\Logging\log4cxx\0.11.0-SNAPSHOT\src > \target\antrun\build-main.xml > [ERROR] -> [Help 1] As you see, I properly get a BuildException instead of a ClassNotFoundException, like you. And I use trunk myself, just copied APR in the right directories and issued mvn package. My MVN version: > Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 > 17:22:2 > 2+0200) > Maven home: C:\Program Files (x86)\Apache Maven\bin\.. > Java version: 1.8.0_60, vendor: Oracle Corporation > Java home: C:\Program Files\Java\jdk1.8.0_60\jre > Default locale: de_DE, platform encoding: Cp1252 > OS name: "windows 8.1", version: "6.3", arch: "amd64", family: "dos" Mit freundlichen Grüßen, Thorsten Schöning -- Thorsten Schöning E-Mail: thorsten.schoen...@am-soft.de AM-SoFT IT-Systeme http://www.AM-SoFT.de/ Telefon...........05151- 9468- 55 Fax...............05151- 9468- 88 Mobil..............0178-8 9468- 04 AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow