I am using Maven2 and trying to run a java class from Maven using the
exec-maven-plugin. Here's how it looks like:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.1-beta-1</version>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>org.myapp.client.Client</argument>
</arguments>
</configuration>
</plugin>
Notice the use of <classpath/>. The org.myapp.client.Client class also has a
dependency on a local jar file xyz.jar (which is not in maven repo). I have
the path to the jar file, but is there any way i can pass this to the
classpath of the exec-maven-plugin?
--
View this message in context:
http://www.nabble.com/How-to-add-a-local-jar-to-the-classpath-of-exec-maven-plugin-tp20893674p20893674.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]