You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by cedseat <ce...@gmail.com> on 2007/05/11 14:39:51 UTC
DependencyFinder
Hello,
I want to use the plugin DependencyFinder with Maven 2. I went to site
http://depfind.sourceforge.net/index.html and i dowload the concerned file
(jar). Is it true that is not a plugin for Maven 2? And it's only possible
to use it with the antrun plugin?
So I test to use it with antrun with this code :
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<!-- Add the Ant plugin tools -->
<dependencies>
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.6.5</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>CopyGenJavaVersSrcBuild</id>
<phase>process-sources</phase>
<configuration>
<tasks>
<property name="dependencyfinder.home"
value="P:/maven-2.0.6/plugins/DFinder/jar" />
<property name="apacheant.home" value="P:/apache-ant-1.7.0"
/>
<path id="dependencyfinder">
<pathelement location="${dependencyfinder.home}/classes"
/>
<pathelement
location="${dependencyfinder.home}/lib/DependencyFinder.jar" />
<pathelement
location="${dependencyfinder.home}/lib/jakarta-oro.jar" />
<pathelement
location="${dependencyfinder.home}/lib/log4j.jar" />
<pathelement location="${apacheant.home}/lib/ant.jar" />
</path>
<echo message="*************:${apacheant.home}/lib/ant.jar"
/>
<taskdef name="classmetrics"
classname="com.jeantessier.dependencyfinder.ant.ClassMetrics">
<classpath refid="dependencyfinder" />
</taskdef>
<classmetrics destfile="df.metrics.txt" list="yes">
<classpath refid="dependencyfinder" />
</classmetrics>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
But i have this message :
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error executing ant tasks
Embedded error: taskdef A class needed by class
com.jeantessier.dependencyfinder
.ant.ClassMetrics cannot be found: org/apache/tools/ant/Task
Yet i use ant jar file : <pathelement
location="${apacheant.home}/lib/ant.jar"
Are you help me?
--
View this message in context: http://www.nabble.com/DependencyFinder-tf3727210s177.html#a10431184
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org