If you launch a separated ant script ( using the "ant" task into the pom), you should not forget the inheritRef attributes. Otherwise, you don't have the reference into your xxx-build.xml.
Regards, Gilles > -----Original Message----- > From: Chris Berry [mailto:[EMAIL PROTECTED] > Sent: 17 January 2006 15:14 > To: Maven Users List > Subject: Re: [m2] Ant driven plugins and classpath refid's > > Did you follow this doc; > http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html > Cheers, > -- Chris > > On 1/17/06, Henrik Mejlgaard <[EMAIL PROTECTED]> wrote: > > > > Hi, > > From the documentation in > > http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html, > > I have successfully created the Hello World Ant based plugin. > > > > My problem is now to implement a more advanced ant-based mojo. > > Specifically, I have troubles finding out how to get a ant classpath > > refid to be used in a taskdef in the *.build.xml. > > My taskdef looks as follows: > > > > > > <target name="generate"> > > <taskdef name="ejbdoclet" > classname="xdoclet.modules.ejb.EjbDocletTask"> > > <classpath> > > <path refid="plugin.dependency.classpath"/> > > </classpath> > > </taskdef> > > ...... > > </target> > > > > How do I inject the plugin.dependency.classpath from the *.mojos.xml? > > > > Regards, > > > > Henrik > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
