Try putting it only in plugin deps and using
<path refid="maven.plugin.classpath"/>
anyway yours should work

On 1/27/06, Dennis Ho <[EMAIL PROTECTED]> wrote:
> Hi,
>
>         My pom looks like this now:
>
> <dependencies>
>   <dependency>
>     <groupId>mockcreator</groupId>
>     <artifactId>MockCreator</artifactId>
>     <version>2.8.0</version>
>     <type>jar</type>
>   </dependency>
> </dependencies>
> <build>
>   <plugins>
>     <plugin>
>       <artifactId>maven-antrun-plugin</artifactId>
>       <executions>
>         <execution>
>           <phase>generate-test-sources</phase>
>           <configuration>
>             <tasks>
>               <path id="mockcreator.classpath">
>                 <path refid="maven.compile.classpath"/>
>               </path>
>               <java fork="yes"
> classname="de.abstrakt.tools.codegeneration.file.MockCreatorFile"
> failonerror="true" classpathref="mockcreator.classpath">
>                 <arg line="-o target/generated-test-src/mocked"/>
>                 <arg value="somepackage.someclass"/>
>
>                </java>
>
>              </tasks>
>            </configuration>
>            <goals>
>              <goal>run</goal>
>            </goals>
>          </execution>
>        </executions>
>        <dependencies>
>            <dependency>
>            <groupId>mockcreator</groupId>
>            <artifactId>MockCreator</artifactId>
>            <version>2.8.0</version>
>           <type>jar</type>
>          </dependency>
>      </dependencies>
>    </plugin>
>  </plugins>
> </build>
>
>
> The section where I define:
> <path id="mockcreator.classpath">
>   <path refid="maven.compile.classpath"/>
> </path>
> used to work when I used maven.dependency.classpath in the 1.0 plugin.
> Is there anything else I need to change?
>
>         (Note: I have 2 dependencies defined because I wasn't sure where
> I should define it.  The dependency is only needed for this ant task.)
>
> Thanks,
>
> Dennis.
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos
> Sanchez
> Sent: Friday, January 27, 2006 5:42 PM
> To: Maven Users List
> Subject: Re: Any workaround for the maven-antrun-plugin
> 'maven.dependency.classpath' bug?
>
> As it's said there maven.compile.classpath has to work as
> maven.dependency.classpath. If not you'll have to explain better what
> your problem is
>
> On 1/27/06, Dennis Ho <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> >         The bug I am referring to is:
> > http://jira.codehaus.org/browse/MANTRUN-38?page=comments.
> >
> >         From the comments, it looks like I can use
> > maven.compile.classpath in place of maven.dependency.classpath, but I
> > tried it and it doesn't work.  (My pom used to work with the
> > maven-antrun-plugin 1.0.)   Is there a workaround for the problem?
> When
> > is 1.2 going to be released?
> >
> > Thanks,
> >
> > Dennis Ho
> > Senior Java Developer
> > PaymentOne
> > . : Office - 408.362.4237
> > . : www.paymentone.com     . : [EMAIL PROTECTED]
> > . : . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> .
> > . . . . . . . . . . . . : .
> > . : Connecting Digital Merchants and Network Operators
> > . : Named One of Forbes "Top Ten to Watch in 2005"
> >
> >
> >
>
> ---------------------------------------------------------------------
> 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]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to