Show us your POM.
<?xml version="1.0"?> <project> <pomVersion>3</pomVersion> <id>maven-junitejb-plugin</id> <name>maven-junitejb-plugin</name> <currentVersion>1.0</currentVersion> <organization> <name>OnePort</name> </organization> <inceptionYear>2001</inceptionYear> <package>org.apache.maven</package>
<description/>
<shortDescription>Java Project Management Tools</shortDescription>
<!-- Gump integration -->
<url>http://maven.apache.org/</url> <issueTrackingUrl> http://nagoya.apache.org/scarab/servlet/scarab/ </issueTrackingUrl> <siteAddress>jakarta.apache.org</siteAddress> <siteDirectory> /www/maven.apache.org/ </siteDirectory> <distributionDirectory> /www/jakarta.apache.org/builds/jakarta-turbine-maven/ </distributionDirectory>
<repository>
<connection/>
<url/>
</repository> <versions>
<version>
<id>1.0</id>
<name>1.0</name>
<tag>HEAD</tag>
</version>
</versions><mailingLists/>
<developers>
<developer>
<name>Nathan Coast</name>
<id>nathan</id>
<email>[EMAIL PROTECTED]</email>
<organization></organization>
</developer>
</developers><dependencies>
<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>
<build>
<nagEmailAddress/>
<sourceDirectory>src/java</sourceDirectory>
<unitTestSourceDirectory>src/test</unitTestSourceDirectory>
<aspectSourceDirectory/> <unitTest>
<includes>
<include>**/*Test.java</include>
</includes>
</unitTest> <!-- J A R R E S O U R C E S -->
<!-- Resources that are packaged up inside the JAR file -->
<resources>
<resource>
<directory></directory>
<includes>
<include>plugin.jelly</include>
<include>plugin.properties</include>
<include>project.properties</include>
<include>project.xml</include>
</includes>
</resource>
</resources><!-- Integration unit test cases -->
</build> </project>
****************************************************** 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')}"/>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
thanks Nathan
-- dIon Gillard, Multitask Consulting Blog: http://blogs.codehaus.org/people/dion/
Nathan Coast <[EMAIL PROTECTED]> wrote on 22/09/2003 09:21:40 PM:
Hi,
I have a plugin that contains a taskdef for the ant JUnit task. I copied the code from the test plugin but I get this error.
taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask cannot be found.
Any ideas how I'd make the ant optional tasks availabble to my plugin?
cheers Nathan
--------------------------------------------------------------------- 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]
