You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nick Lothian <ni...@gmail.com> on 2004/06/26 10:41:43 UTC
Maven Jetty Plugin
Is there any information for how to use the jetty plugin?
I'd like to use it to start up a servlet and then run some JUnit tests
against it. I've figured out how to start it and configure it, but
starting jetty blocks the build process.
Is there a way to fork the maven process that starts jetty, run the
JUnit tests and then signal to close it down?
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Jetty Plugin
Posted by Nick Lothian <ni...@gmail.com>.
> > -----Original Message-----
> > From: Nick Lothian [mailto:nick.lothian@gmail.com]
> > Sent: samedi 26 juin 2004 10:42
> > To: users@maven.apache.org
> > Subject: Maven Jetty Plugin
> >
> > Is there any information for how to use the jetty plugin?
> >
> > I'd like to use it to start up a servlet and then run some JUnit tests
> > against it. I've figured out how to start it and configure it, but
> > starting jetty blocks the build process.
> >
> > Is there a way to fork the maven process that starts jetty, run the
> > JUnit tests and then signal to close it down?
> >
>
> <!-- Start Jetty -->
> <j:thread>
> <attainGoal name="jetty:run-war"/>
> </j:thread>
> <ant:waitfor>
> <ant:http url="[url to wait for to decide when server is started]"/>
> </ant:waitfor>
>
> <!-- Whatever you want to do here -->
>
> -Vincent
>
Thanks - that's what I was looking for.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Maven Jetty Plugin
Posted by Vincent Massol <vm...@pivolis.com>.
> -----Original Message-----
> From: Nick Lothian [mailto:nick.lothian@gmail.com]
> Sent: samedi 26 juin 2004 10:42
> To: users@maven.apache.org
> Subject: Maven Jetty Plugin
>
> Is there any information for how to use the jetty plugin?
>
> I'd like to use it to start up a servlet and then run some JUnit tests
> against it. I've figured out how to start it and configure it, but
> starting jetty blocks the build process.
>
> Is there a way to fork the maven process that starts jetty, run the
> JUnit tests and then signal to close it down?
>
<!-- Start Jetty -->
<j:thread>
<attainGoal name="jetty:run-war"/>
</j:thread>
<ant:waitfor>
<ant:http url="[url to wait for to decide when server is started]"/>
</ant:waitfor>
<!-- Whatever you want to do here -->
-Vincent
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.710 / Virus Database: 466 - Release Date: 23/06/2004
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org