Hi Daniel, I don't think you're allowed to override existing goals in Maven. You can write pregoals and postgoals though.
-Vincent > -----Original Message----- > From: Daniel Rabe [mailto:[EMAIL PROTECTED] > Sent: 06 November 2003 01:55 > To: '[EMAIL PROTECTED]' > Subject: cactus plugin and overring war:war > > I'm still a maven novice, so maybe someone can clue me in. I'm seeing some > very strange behavior that I just don't understand. > > I've been playing with the cactus plugin. I've succeeded in building a > war, > cactifying it, and running the cactus tests. Awesome! BUT then I decided > I'd > rather let ant build my war for me. (Our project team has standardized on > ant for make scripts, so I'd rather maintain only one version of the build > files). So I override "war:war" in my maven.xml: > > <goal name="war:war"> > <ant target="war" /> > </goal> > > I run "maven cactus", and it builds my war file, but then gives an error: > > BUILD FAILED > File...... file:/c:/temp/maven/plugins/maven-cactus-plugin-3.1/ > <file:/c:/temp/maven/plugins/maven-cactus-plugin-3.1/> > Element... ant:taskdef > Line...... 51 > Column.... 75 > taskdef class org.apache.cactus.integration.ant.CactusTask cannot be found > Total time: 9 seconds > > What does this mean? > > Is it generally unsafe to override goals like I'm trying to do? Is there a > better way to delegate behavior to an ant script? > > Note that if I remove my "war:war" goal and perform my ant build in a > postGoal for "war:war", the error doesn't occur. > > Thanks, > Daniel Rabe > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]