You can, but there seems to be some bugs when called from plugins as in this
case.

Incidentally, I've just had exactly this error, using the
maven-cactus-plugin-3.1 distributed with RC1. I had to add junit to my
project with the root classloader, although at this point I'm not sure why
as the cactus plugin seems to be doing everything it should.

Also, plugin:download'ing the latest cactus plugin as per the cactus maven
integration page doesn't work as the dependencies on the cactus jars
themselves are incorrect :)

Cheers,
Brett

> -----Original Message-----
> From: Vincent Massol [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, 6 November 2003 5:15 PM
> To: 'Maven Users List'
> Subject: RE: cactus plugin and overring war:war
> 
> 
> 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]
> 

Reply via email to