p Devi wrote:

I am currently creating a plugin for exporting data from the database using Maven 1.x. To acheive this I use octopus. The directory of the plugin that I create is in C:\Workspace\plugins\spec-config-plugin. I have files Plugin.jelly, plugin.properties, project.xml and folders like src, target, Xdoc in this directory. I am able to do the desired task in this directory. But when I run the goal outside of this directory (like c:\temp) I am not able to get the desired output.

I get the following error

[java] [ERROR] Could not find org.webdocwf.util.loader.Loader. Make sure you 
have it in your classpath. (Its not able to find the octopus Jar ).

I have included the following dependency in the project.xml.
   <dependency>
     <groupId>octopus</groupId>
     <artifactId>octopus</artifactId>
     <version>3.0.1</version>
     <url/>
<properties>
<classloader>root</classloader> </properties>
   </dependency>
I have the following in the plugin.jelly <ant:java classname="org.webdocwf.util.loader.Loader">
     <classpath refid="maven.dependency.classpath"/>

To resolve the plugin dependency not being found in the classpath try changing your classpath element to this:

<ant:classpath>
  <ant:path refid="maven-classpath"/>
  <ant:pathelement path="${plugin.getDependencyPath('octopus:octopus')}"/>
  <ant:path refid="maven.dependency.classpath"/>
</ant:classpath>

HTH,
Doug

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

Reply via email to