Thank you, Jo and Markku!
It is working now...
What about if I have mulitple main Java classes? With Ant, I used to
have different tasks to execute different Java classes:
<task name="run-server">
<java classname="a.b.c.Server"/>
</task>
<task name="run-client">
<java classname="a.b.c.Client"/>
</task>
On 6/4/07, Markku Saarela <[EMAIL PROTECTED]> wrote:
Use Maven Exec Plugin http://mojo.codehaus.org/exec-maven-plugin/
- markku
hezjing wrote:
> Hi Jo
>
> I hope I can do this the "Maven's way" without using the Antrun plugin.
>
> Any better idea?
>
>
> On 6/4/07, Jo Vandermeeren <[EMAIL PROTECTED]> wrote:
>> You can call your Ant task with the maven-antrun-plugin:
>> http://maven.apache.org/plugins/maven-antrun-plugin/
>>
>> On 6/4/07, hezjing <[EMAIL PROTECTED]> wrote:
>> >
>> > Hi!
>> >
>> > With Ant, we have Java task to execute a main Java class.
>> >
>> > How can I do this with Maven?
>> >
>> >
>> > --
>> >
>> > Hez
>> >
>> > ---------------------------------------------------------------------
>> > 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]
--
Hez
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]