Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IAM (Eclipse Integration for Apache Maven) » How to stop jetty:run from q4e 0.9?
How to stop jetty:run from q4e 0.9? [message #18834] Thu, 14 May 2009 03:20 Go to next message
BenH is currently offline BenH
Messages: 39
Registered: July 2009
Member
I can launch my web app via the jetty:run goal from within q4e OK.

But it shows as a non-terminating task in Eclipse's Progress view.
Canceling the task using the red button in progress view is ineffective.

If I subsequently attempt goal jetty:stop (the "right way"), the launch of
this goal appears to block on the previous jetty:run goal.

Does q4e/IAM serialize maven goal execution?

If so, this seems to be a big obstacle to it supporting common usage
patterns.

-Ben

PS I expect I can workaround issue from Maven command line. However, to
some extent this defeats purpose of having Eclipse integration, if one
must regularly drop out of it.
Re: How to stop jetty:run from q4e 0.9? [message #18880 is a reply to message #18834] Thu, 14 May 2009 13:40 Go to previous messageGo to next message
Abel Mui is currently offline Abel Mui
Messages: 247
Registered: July 2009
Senior Member
Hello Ben,

Ben Hutchison wrote:

> I can launch my web app via the jetty:run goal from within q4e OK.

> But it shows as a non-terminating task in Eclipse's Progress view.
> Canceling the task using the red button in progress view is ineffective.

> If I subsequently attempt goal jetty:stop (the "right way"), the launch of
> this goal appears to block on the previous jetty:run goal.

> Does q4e/IAM serialize maven goal execution?

Yes. IAM uses an single instance of the maven embedder, which is not
thread safe... so all calls are serialized.

We expect users to take advantage of WTP integration (which, if I am not
mistaken, already supports Jetty).

> If so, this seems to be a big obstacle to it supporting common usage
> patterns.

I think this deserves a bugzilla entry.
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=IAM

> -Ben

> PS I expect I can workaround issue from Maven command line. However, to
> some extent this defeats purpose of having Eclipse integration, if one
> must regularly drop out of it.

As a workaround, you can setup some External Tool Configurations (Run >
External Tools >...) in Eclipse for your typical use cases to run a
locally installed maven, so you do not need to leave the IDE (and, for
launching the jetty case, it will require you fewer clicks/keystrokes).

Thanks!
--
Abel Muiño
Re: How to stop jetty:run from q4e 0.9? [message #18903 is a reply to message #18880] Thu, 14 May 2009 14:30 Go to previous messageGo to next message
Philippe Marschall is currently offline Philippe Marschall
Messages: 120
Registered: July 2009
Senior Member
Abel Muiño wrote:
> Hello Ben,
>
> Ben Hutchison wrote:
>
>> I can launch my web app via the jetty:run goal from within q4e OK.
>
>> But it shows as a non-terminating task in Eclipse's Progress view.
>> Canceling the task using the red button in progress view is ineffective.
>
>> If I subsequently attempt goal jetty:stop (the "right way"), the
>> launch of this goal appears to block on the previous jetty:run goal.
>
>> Does q4e/IAM serialize maven goal execution?
>
> Yes. IAM uses an single instance of the maven embedder, which is not
> thread safe... so all calls are serialized.
>
> We expect users to take advantage of WTP integration (which, if I am not
> mistaken, already supports Jetty).

That's true.

Cheers
Philippe
Re: How to stop jetty:run from q4e 0.9? [message #569009 is a reply to message #18834] Thu, 14 May 2009 13:40 Go to previous messageGo to next message
Abel Mui is currently offline Abel Mui
Messages: 247
Registered: July 2009
Senior Member
Hello Ben,

Ben Hutchison wrote:

> I can launch my web app via the jetty:run goal from within q4e OK.

> But it shows as a non-terminating task in Eclipse's Progress view.
> Canceling the task using the red button in progress view is ineffective.

> If I subsequently attempt goal jetty:stop (the "right way"), the launch of
> this goal appears to block on the previous jetty:run goal.

> Does q4e/IAM serialize maven goal execution?

Yes. IAM uses an single instance of the maven embedder, which is not
thread safe... so all calls are serialized.

We expect users to take advantage of WTP integration (which, if I am not
mistaken, already supports Jetty).

> If so, this seems to be a big obstacle to it supporting common usage
> patterns.

I think this deserves a bugzilla entry.
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=IAM

> -Ben

> PS I expect I can workaround issue from Maven command line. However, to
> some extent this defeats purpose of having Eclipse integration, if one
> must regularly drop out of it.

As a workaround, you can setup some External Tool Configurations (Run >
External Tools >...) in Eclipse for your typical use cases to run a
locally installed maven, so you do not need to leave the IDE (and, for
launching the jetty case, it will require you fewer clicks/keystrokes).

Thanks!
--
Abel Muiño
Re: How to stop jetty:run from q4e 0.9? [message #569019 is a reply to message #18880] Thu, 14 May 2009 14:30 Go to previous messageGo to next message
Philippe Marschall is currently offline Philippe Marschall
Messages: 120
Registered: July 2009
Senior Member
Abel Muiño wrote:
> Hello Ben,
>
> Ben Hutchison wrote:
>
>> I can launch my web app via the jetty:run goal from within q4e OK.
>
>> But it shows as a non-terminating task in Eclipse's Progress view.
>> Canceling the task using the red button in progress view is ineffective.
>
>> If I subsequently attempt goal jetty:stop (the "right way"), the
>> launch of this goal appears to block on the previous jetty:run goal.
>
>> Does q4e/IAM serialize maven goal execution?
>
> Yes. IAM uses an single instance of the maven embedder, which is not
> thread safe... so all calls are serialized.
>
> We expect users to take advantage of WTP integration (which, if I am not
> mistaken, already supports Jetty).

That's true.

Cheers
Philippe
Re: How to stop jetty:run from q4e 0.9? [message #652093 is a reply to message #18834] Wed, 02 February 2011 16:37 Go to previous message
Bernd Meier is currently offline Bernd Meier
Messages: 4
Registered: February 2011
Junior Member
btw is there a better solution than the workaround by Abel Muiño?

thank you


Tickets für aktuelle Events oder Tour Konzerte gibt es bei Tour Tournee

[Updated on: Thu, 03 March 2011 03:52]

Report message to a moderator

Previous Topic:The plugin 'org.apache.maven.plugins:maven-eclispe-plugin' does not exist or no valid version could
Next Topic:What command in Eclipse will compile Java test classes but would not run them)
Goto Forum:
  


Current Time: Tue Oct 21 13:39:30 GMT 2014

Powered by FUDForum. Page generated in 0.03203 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software