On Thursday 24 February 2005 13:54, Lukasz Bajorski wrote:

> On Thu, 24 Feb 2005 10:14:24 +0100, Henrard Frederic
>
> <[EMAIL PROTECTED]> wrote:
> > On Thursday 24 February 2005 09:11, Lukasz Bajorski wrote:
> > > On Wed, 23 Feb 2005 11:51:25 +0100, Vincent Massol <[EMAIL PROTECTED]> 
> > > wrote:
> > > > > -----Original Message-----
> > > > > From: Henrard Frédéric [mailto:[EMAIL PROTECTED]
> > > > > Sent: mercredi 23 février 2005 11:15
> > > > > To: Maven Users List
> > > > > Subject: Re: abbot plugin problem
> > > > >
> > > > > Hi Vincent,
> > > > >
> > > > > I checked what you asked :
> > > > >
> > > > > junit-3.8.1.jar file in local repository is apparently not
> > > > > corrupted, I can
> > > > > open it and extract his content.
> > > > >
> > > > > I tried to remove the cache directory but I have the same problem
> > > > > after the
> > > > > download.
> > > > >
> > > > > Finally, I have checked on another system with Maven 1.0.2
> > > > > installed but It
> > > > > still the same thing.
> > > >
> > > > Unfortunately I have no other idea for the time being... This is
> > > > something that shouldn't happen and I don't see how it can happen.
> > > > The code that seems to be causing the pb in plugin.jelly is:
> > > >
> > > >     <taskdef name="junit"
> > > >
> > > > classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask">
> > > > <classpath>
> > > >         <pathelement
> > > > location="${plugin.getDependencyPath('junit:junit')}"/> </classpath>
> > > >     </taskdef>
> > > >
> > > > But this is clean and good.
> > >
> > > The problem might be with ant-optional, not junit. Check your
> > > repository for ant-optional-1.5.3-1 (or whatever version your abbot
> > > plugin uses as a dependency - check project.xml in that plugin's jar
> > > or in maven's cache). You may try the same steps as Nicolas here
> > > suggested.
> >
> > BUILD FAILED
> > File...... /home/fhe/.maven/cache/maven-abbot-plugin-1.0/plugin.jelly
> > Element... taskdef
> > Line...... 58
> > Column.... 76
> > taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
> > cannot be found
> >
> > It seems that abbot plugin uses "ant-optional-1.5.3-1" as dependency but
> > this one is also valid. What appears strange, It's the classpath for the
> > referenced taskdef junit is only set with the junit-3.8.1.jar ( not with
> > the ant-optional-1.5.3-1 )
>
> Then change it and see if it works :D.
> Just add <pathelement
> location="${plugin.getDependencyPath('ant:ant-optional')}"/>

I changed the script according to this :

    <ant:echo>${plugin.getDependencyPath('junit:junit')}</ant:echo>
    <ant:echo>${plugin.getDependencyPath('ant:ant-optional')}</ant:echo>

    <taskdef name="junit" 
classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask">
      <classpath>
        <pathelement location="${plugin.getDependencyPath('junit:junit')}"/>
        <pathelement 
location="${plugin.getDependencyPath('ant:ant-optional')}"/>
      </classpath>
    </taskdef>

but it is the same thing :

abbot:test:
    [echo] /home/fhe/.maven/repository/junit/jars/junit-3.8.1.jar
    [echo] /home/fhe/.maven/repository/ant/jars/ant-optional-1.5.3-1.jar

BUILD FAILED
File...... /home/fhe/.maven/cache/maven-abbot-plugin-1.0/plugin.jelly
Element... taskdef
Line...... 60
Column.... 76
taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask cannot be 
found
Total time: 2 seconds
Finished at: Thu Feb 24 14:24:19 CET 2005



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

Reply via email to