Hello, I have an existing cruisecontrol + ant build process which compiles (using several local dependencies), run unit tests (using specific classpathes and command line options), and generate a distribution. This is automatically started from within cruisecontrol (http://cruisecontrol.sourceforge.net/) when a cvs commit is made.
I would like to add a another daily step which is to run a set of maven goals (metrics, activity, checkstyle, todos, cvsdiff, and statcvs http://statcvs.sourceforge.net/). For this, I would configure cruisecontrol to run maven at period date using the mavenbuilder (http://cruisecontrol.sourceforge.net/main/configxml.html#mavenbuilder). However, since this project already invested quite a bit of time into the ANT and cruisecontrol configuration, I am trying to reuse this configuration rather than reworking the whole projet to make it natively fit into maven (e.g. Junit test classes are currently in the same package tree as the source classes). In particular I am trying to reuse the compilation and unit test execution steps that are defined in my project's ANT build.xml file Therefore, following the maven manual, I've created the following project.xml file. <?xml version="1.0"?> <project default="site"> <goal name="java:compile" description= "custom compile" > <echo>executing custom legacy ANT compile</echo> <ant antfile="build.xml" target="compile"/> </goal> </project> The problem is that my build.xml file contains custom tasks classdef (such as tomcat deploy) that maven does not find when executing the <ant> task. I tried to define the ANT_HOME environment variable for maven to pick it up (and therefore find the custom ANT tasks that I placed into the $ANT_HOME/lib directory) but this does not work. I tried looking for an answer on this list but the same question did not get an answer (http://java2.5341.com/msg/60362.html) I looked at the maven wiki site http://wiki.codehaus.org/maven/) but could not find an answer either. The maven "ant guide" that is under construction (http://maven.apache.org/ant-guide/qna/inprogress.html) would have probably answered my question but it is not yet available. I looked at the $MAVEN_HOME/bin/maven script to see if some ant-related variables could be set but without chances. Has anybody solved this problem with the ANT classpath already? Is anybody running the same kind of cruisecontrol + maven build? What are your feedback on this? Did you experience other problems? Is there an interesting document/resource/mail thread to look at? I so far found the following related email threads: http://sourceforge.net/mailarchive/message.php?msg_id=5748582 http://sourceforge.net/mailarchive/message.php?msg_id=5294661 http://nagoya.apache.org/eyebrowse/ReadMsg?listId=149&msgNo=2627 I saw that there is another alternative to intergrate maven and cruisecontrol: http://maven.apache.org/reference/plugins/cruisecontrol/ but I understand this is used to execute cruisecontrol from maven and generate cruisecontrol config file from an existing maven project. The other alternative would be to directly invoke the different tools (JavaNCCS, JDepend, checkstyle, statcvs) directly from ANT. But maven does a great jobs integrating all theses tools so it would be wastefull not to use it. Thanks in advance for your help, Guillaume. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
