Using a java task to launch Ant from Maven is the only way out to get it to work across platforms. Anybody out there who know Ant/Maven better than I do please help solve this if you think setting ANT_HOME is an overhead.
Danushka On Tue, Mar 22, 2011 at 2:24 PM, Afkham Azeez <[email protected]> wrote: > I didn't have to set ANT_HOME earlier and the build worked fine. Now dont > force me to set that variable, just get it back to what it was and make it > work. If this is needed on Windows, handle that case differently. > > > On Tue, Mar 22, 2011 at 2:03 PM, Afkham Azeez <[email protected]> wrote: > >> [INFO] Deleting >> /Users/azeez/projects/wso2/org/trunk/carbon/dependencies/qpid/target >> [WARNING] DEPRECATED [tasks]: Use target instead >> [INFO] [antrun:run {execution: compile}] >> [WARNING] Parameter tasks is deprecated, use target instead >> [INFO] Executing tasks >> >> main: >> [java] Exception in thread "main" java.lang.NoClassDefFoundError: >> org/apache/tools/ant/launch/Launcher >> [java] Caused by: java.lang.ClassNotFou >> [java] ndException: org.apache.tools.ant.launch.Launcher >> [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:202) >> [java] at java.security.AccessController.doPrivileged(Native Method) >> [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) >> [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) >> [java] at >> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) >> [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:248) >> [java] Java Result: 1 >> [java] Exception in thread "main" java.lang.NoClassDefFoundError: >> org/apache/tools/ant/launch/Launcher >> [java] Caused by: java.lang.ClassNotFoundException: >> org.apache.tools.ant.launch.Launcher >> [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:202) >> [java] at java.security.AccessController.doPrivileged(Native Method) >> [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) >> [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) >> [java] at >> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) >> [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:248) >> [java] Java Result: 1 >> [INFO] Executed tasks >> [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] >> [INFO] [install:install {execution: default-install}] >> [INFO] Installing >> /Users/azeez/projects/wso2/org/trunk/carbon/dependencies/qpid/pom.xml to >> /Users/azeez/.m2/repository/org/apache/qpid/qpid/0.9-wso2v1/qpid-0.9-wso2v1.pom >> [INFO] [install:install-file {execution: install-client}] >> [INFO] Installing >> /Users/azeez/projects/wso2/org/trunk/carbon/dependencies/qpid/java/build/lib/qpid-client-0.9.jar >> to >> /Users/azeez/.m2/repository/org/apache/qpid/qpid-client/0.9-wso2v1/qpid-client-0.9-wso2v1.jar >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] BUILD ERROR >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Error installing artifact 'org.apache.qpid:qpid-client:jar': Error >> installing artifact: File >> /Users/azeez/projects/wso2/org/trunk/carbon/dependencies/qpid/java/build/lib/qpid-client-0.9.jar >> does not exist >> >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] For more information, run Maven with the -e switch >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 9 minutes 46 seconds >> [INFO] Finished at: Tue Mar 22 14:02:25 IST 2011 >> [INFO] Final Memory: 884M/2174M >> >> >> -- >> *Afkham Azeez* >> Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com, >> * >> * >> *Member; Apache Software Foundation; >> **http://www.apache.org/*<http://www.apache.org/> >> * >> email: **[email protected]* <[email protected]>* cell: +94 77 3320919 >> blog: **http://blog.afkham.org* <http://blog.afkham.org>* >> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> >> * >> linked-in: **http://lk.linkedin.com/in/afkhamazeez* >> * >> * >> *Lean . Enterprise . Middleware* >> >> > > > -- > *Afkham Azeez* > Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com, > * > * > *Member; Apache Software Foundation; > **http://www.apache.org/*<http://www.apache.org/> > * > email: **[email protected]* <[email protected]>* cell: +94 77 3320919 > blog: **http://blog.afkham.org* <http://blog.afkham.org>* > twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> > * > linked-in: **http://lk.linkedin.com/in/afkhamazeez* > * > * > *Lean . Enterprise . Middleware* > > > _______________________________________________ > Carbon-dev mailing list > [email protected] > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > >
_______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
