hehe except that the exec:java goal has a bug in the 1.0 version. It
has a NPE if no system props are set. But an easy way to work around
this bug is to add something like this in your pom..
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<configuration>
<mainClass>com.myapp.MyMainClass</mainClass>
<systemProperties>
<systemProperty>
<key>dummyKey</key>
<value>dummyValue</value>
</systemProperty>
</systemProperties>
</configuration>
</plugin>
Then you can do your mvn exec:java with no probs.
/Kaare
On 24/04/06, Jesse McConnell <[EMAIL PROTECTED]> wrote:
> it is actually not in the sandbox anymore, version 1.0 was released a few
> weeks ago :)
>
> On 4/24/06, Alexandre Poitras <[EMAIL PROTECTED]> wrote:
> >
> > Still in the sandbox but works well :
> > http://mojo.codehaus.org/exec-maven-plugin/
> >
> > On 4/24/06, Pierre Monestie <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > > Is there a simple way to run a Main class with maven? Something
> > > similar to the java task in Ant? If so what is the way to configure
> > > it?
> > > I know the runtime plugin is not completed so I'm looking for an
> > > intermediary solution.
> > > Thanks in advance,
> > > Pierre
> > >
> > > ---------------------------------------------------------------------
> > > 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]
> >
> >
>
>
> --
> jesse mcconnell
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]