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"/>
If I include the location of the Jar as
<pathelement
path="C:\Workspace\.maven\repository\octopus\jars\octopus-3.0.1.jar"/> it seems
to resolve the issue. But I get another exception as it is dependent on another
Jar (javax.xml.parsers.FactoryConfigurationError: Provider
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found)
I have the following in the classpath
MAVEN_HOME=C:\maven\maven-1.1-beta-1
MAVEN_HOME_LOCAL=C:\Workspace\.maven
MAVEN_OPTS=-Xms128M -Xmx256M -Dfile.separ
MAVEN_REPO=C:\Workspace\.maven\repository
and Octopus-3.0.1 is in C:\Workspace\.maven\repository\octopus\jars and
org.webdocwf.util.loader.Loader class is present in Octopus-3.0.1
My question is how do I specify the classpath of the Jar when I work in C:\Jar.
Can you please help me to figure out the problem. Please let me know if you
need more information.
Thanks,
Devi
---------------------------------
Yahoo! for Good - Make a difference this year.