yup. that's it!
you run this on command line and then attach the netbeans debugger to port 8000.

you cannot set the same options to the build running from netbeans as
it's maven build is running within the same JVM as the IDE itself.

Milos

PS: in future versions of maven support, you can delegate building to
external copy of maven binaries, however that probably doesn't
entirely solve your problem.

On 8/17/07, John Coleman <[EMAIL PROTECTED]> wrote:
> Well I found this tip for Hudson users...
>
> $ cd main/war
> $ export MAVEN_OPTS="-Xdebug
> -Xrunjdwp:transport=dt_socket,server=y,address=8000"
> $ mvn -o jetty:run
>
> Looks linux, but is there any way to use this with NetBeans/Mavenide+
> WinXP?
>
> John
>
>
> -----Original Message-----
> From: Milos Kleint [mailto:[EMAIL PROTECTED]
> Sent: 17 August 2007 12:27
> To: Maven Users List
> Subject: Re: Debugging with the Maven Jetty Plugin in Netbeans
>
> On 8/17/07, John Coleman <[EMAIL PROTECTED]>
> wrote:
> > Thanks for that suggestion, not really a slick solution. Would it be
> > possible for the plugin to spawn another thread to run jetty in debug,
> > then perhaps the debug settings could be put in a jetty config file
> > somewhere?
>
> I guess it's as slick as the eclipse solution. Spawn a new jvm with
> the debug parameters. and attach to it. I'm not fluent with the jetty
> plugin to tell if it's possible to configure to run externally (and
> thus be able to set the parameters via plugin config) but I always
> supposed that jetty is running in the same VM as maven build is. Then
> it's impossible to influence from the plugin.
>
> >
> > It would be nice not to have to set up jetty somewhere else, as the
> dev
> > team have to learn a lot of extra non-business related stuff.
> >
>
> netbeans own deployment maybe? AFAIK there's not an jetty
> module/plugin for netbeans though..
>
> Milos
>
>
> > John
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: 17 August 2007 12:06
> > To: Maven Users List
> > Subject: Re: Debugging with the Maven Jetty Plugin in Netbeans
> >
> > John Coleman wrote:
> > > There's documentation for "Debugging with the Maven Jetty Plugin in
> > > Eclipse", but does such exist for NetBeans? Anyone know how to do
> this
> > > if not?
> > >
> > >
> > >
> > run the jetty plugin externally (not with the embedded version of
> maven
> > in netbeans, but in different jvm) with the proper debugging switches
> > and the n attach the debugger in netbeans?
> >
> > Milos
> >
> >
> > > TIA
> > >
> > > John
> > >
> > >
> > > Eurobase International Limited and its subsidiaries (Eurobase) are
> > unable to exercise control over the content of information in E-Mails.
> > Any views and opinions expressed may be personal to the sender and are
> > not necessarily those of Eurobase. Eurobase will not enter into any
> > contractual obligations in respect of any part of its business in any
> > E-mail.
> > >
> > > Privileged / confidential information may be contained in this
> message
> > and /or any attachments. This E-mail is intended for the use of the
> > addressee(s) only and may contain confidential information. If you are
> > not the / an intended recipient, you are hereby notified that any use
> or
> > dissemination of this communication is strictly prohibited.  If you
> > receive this transmission in error, please notify us immediately, and
> > then delete this E-mail.
> > >
> > > Neither the sender nor Eurobase accepts any liability whatsoever for
> > any defects of any kind either in or arising from this E-mail
> > transmission. E-Mail transmission cannot be guaranteed to be secure or
> > error-free, as messages can be intercepted, lost, corrupted,
> destroyed,
> > contain viruses, or arrive late or incomplete. Eurobase does not
> accept
> > any responsibility for viruses and it is your responsibility to scan
> any
> > attachments.
> > >
> > > Eurobase Systems Limited is the main trading company in the Eurobase
> > International Group; registered in England and Wales as company number
> > 02251162; registered address: Essex House, 2 County Place, Chelmsford,
> > Essex CM2 0RE, UK.
> > >
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > 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]
> >
> >
>
> ---------------------------------------------------------------------
> 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]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to