You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Frank Mena <ma...@gmail.com> on 2005/11/03 18:02:07 UTC
Debugging M2 plugins using Eclipse
I have been trying and struggling to convert from ant to maven on a very
large and complicated multi-module, multi-project. I feel like a dog with a
bone that won't let go. Maven 2 is too good a tool not to use and am
determined to make it work. Great job, guys.
I am writing some plugins and would like to use Eclipse to debug. I'm
looking in mvn.bat to figure out which maven class to run in the debugger.
Has anyone figured out how to do this?
- Frank
Re: Debugging M2 plugins using Eclipse
Posted by Frank Mena <ma...@gmail.com>.
Fantastic! I was able to walk through MavenProject to find out it's
functionality. I found that the resource directories are available for all
dependent modules, which is what I was looking for.
Thanks again,
Frank
On 11/3/05, Kenney Westerhof <ke...@apache.org> wrote:
>
> On Thu, 3 Nov 2005, Frank Mena wrote:
>
> Before you run maven on the commandline, set MAVEN_OPTS to:
>
> "-Xdebug -Xnoagent -Djava.compiler=NONE-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"
>
> Then set a breakpoint in eclipse, and start the debugger for an external
> app, configuring it with the correct port.
>
> -- Kenney
>
> > I have been trying and struggling to convert from ant to maven on a very
> > large and complicated multi-module, multi-project. I feel like a dog
> with a
> > bone that won't let go. Maven 2 is too good a tool not to use and am
> > determined to make it work. Great job, guys.
> >
> > I am writing some plugins and would like to use Eclipse to debug. I'm
> > looking in mvn.bat to figure out which maven class to run in the
> debugger.
> > Has anyone figured out how to do this?
> >
> > - Frank
> >
>
> --
> Kenney Westerhof
> http://www.neonics.com
> GPG public key: http://www.gods.nl/~forge/kenneyw.key
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Debugging M2 plugins using Eclipse
Posted by Kenney Westerhof <ke...@apache.org>.
On Thu, 3 Nov 2005, Frank Mena wrote:
Before you run maven on the commandline, set MAVEN_OPTS to:
"-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"
Then set a breakpoint in eclipse, and start the debugger for an external
app, configuring it with the correct port.
-- Kenney
> I have been trying and struggling to convert from ant to maven on a very
> large and complicated multi-module, multi-project. I feel like a dog with a
> bone that won't let go. Maven 2 is too good a tool not to use and am
> determined to make it work. Great job, guys.
>
> I am writing some plugins and would like to use Eclipse to debug. I'm
> looking in mvn.bat to figure out which maven class to run in the debugger.
> Has anyone figured out how to do this?
>
> - Frank
>
--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org