Glad to help, and to make the commandline a little shorter you could
keep the following configuration in the pom (this is my preferred way
of use)

<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>exec-maven-plugin</artifactId>
  <version>1.0.1</version>
  <configuration>
      <mainClass>com.caribbeancricket.walcott.tools.ArticleImporter</mainClass>
 </configuration>
</plugin

then in the commandline simply : mvn exec:java



On 26/07/06, Sean Mitchell <[EMAIL PROTECTED]> wrote:
On Wednesday 26 July 2006 7:14 am, Kaare Nilsen wrote:

> This is at least the setup that works for me. I see that a little more
> documentation is needed on the mojo site.
> But for any further question, please use the mojo user group .

Thanks for your help... in fact, my problem was that the class I was trying to
run had a runtime dependency (mysql driver) that was not listed in my pom.xml
and I jumped to conclusions about the classpath. Your configuration worked
fine once I sorted this out, as did a simple

mvn
exec:java -Dexec.mainClass=com.caribbeancricket.walcott.tools.ArticleImporter

Cheers,

Sean


---------------------------------------------------------------------
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]

Reply via email to