dependencies
<dependency>
<groupId>weblogic</groupId>
<artifactId>weblogic</artifactId>
<version>8.1</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
</dependency>
<dependency>
<groupId>ant</groupId>
<artifactId>ant-optional</artifactId>
<version>1.5.3-1</version>
</dependency>
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.5.3-1</version>
</dependency>this is the jelly script
<j:set var="junit.cp" value="${plugin.getDependencyPath('ant:ant-optional')};${plugin.getDependencyPath('ant:ant')};${plugin.getDependencyPath('junit:junit')}"/>
<echo message="ant classpath ${junit.cp}"/>
<taskdef
name="junit"
classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"
classpath="${junit.cp}"/>
the output is: **********************************************************
junitejb:test:
[echo] ant classpath D:\java\apache\maven-cvsbuild/repository\ant\jars\ant-optional-1.5.3-1.jar;D:\java\apache\maven-cvsbuild/repository\ant\jars\ant-1.5.3-1.jar;D:\java\apache\maven-cvsbuild/repository\junit\jars\junit-3.8.1.jar
BUILD FAILED
File...... file:/D:/java/apache/maven-cvsbuild/plugins/maven-junitejb-plugin-1.0/
Element... taskdef
Line...... 238
Column.... 34
taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask cannot be found
***************************************************************
I've checked the paths and they all seem correct,
[EMAIL PROTECTED] wrote:
Nathan Coast <[EMAIL PROTECTED]> wrote on 23/09/2003 10:47:49 AM:
> Show us your POM.
[snip]
<dependencies>[snip]
<dependency> <id>weblogic</id> <version>8.1</version> </dependency> <dependency> <id>junit</id> <version>3.8.1</version> </dependency> <dependency> <groupId>ant</groupId> <artifactId>ant-optional</artifactId> <version>1.5.3-1</version> </dependency>
</dependencies>
****************************************************** from plugin.jelly
<goal name="junitejb:test">
<echo message="ant dependency
${plugin.getDependencyPath('ant')}"/>
<taskdef
name="junit" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"
classpath="${plugin.getDependencyPath('ant')}"/>
Aren't you going to need ant, ant-optional and junit on this classpath?
plugin.getDependencyPath('ant') doesn't refer to any of your dependencies.
Try:
plugin.getDependencyPath('ant:ant-optional') for the optional jar.
the echo gives "" as the value for the dependency path. Interestingly enough, when I hard code the path to the junit-optional jar, I get the same error taskdef class org.apache.......JUnitTask cannot be found
-- dIon Gillard, Multitask Consulting Blog: http://blogs.codehaus.org/people/dion/
--------------------------------------------------------------------- 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]
