You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Duncan Krebs <li...@krebsnet.com> on 2004/12/07 22:10:39 UTC

Debugging maven projects using eclipse/tomcat5

Hi,
I have a maven project that is a tomcat5 webapp and I'm using war:inplace to set things up so I can code and debug at the same time. For organization I have a couple of other maven projects that are separate but referenced by my webapp. I have the reference setup by using snapshot dependencies in the project.xml of the webapp. 

I'm trying to figure out how I can make changes to the projects referenced by the webapp in eclipse and then have tomcat5 recognize the change and reload the context. I imagine to do this I'd have to define the reference to these projects in a different way and also change their target path somewhere in the WEB-INF folder of the webapp. The only problem here though is eclipse will wipe out other classes in the bin that should not be deleted.  Any ideas or is this not making sense? - Duncan 

Re: Debugging maven projects using eclipse/tomcat5

Posted by Thomas Recloux <th...@gmail.com>.
On Tue, 7 Dec 2004 15:10:39 -0600, Duncan Krebs <li...@krebsnet.com> wrote:

Hi,

> I'm trying to figure out how I can make changes to the projects referenced by the webapp in 
> eclipse and then have tomcat5 recognize the change and reload the context. I imagine to do
>  this I'd have to define the reference to these projects in a different way and also change 
> their target path somewhere in the WEB-INF folder of the webapp. The only problem here 
> though is eclipse will wipe out other classes in the bin that should not be deleted.  Any 
> ideas or is this not making sense? - Duncan

I had the same problem and resolved it like this :

- Your webapp eclipse project must reference the other eclipse
projetcs (Build Path/Projects). If you generate your eclipse
configuration files (.project and  .classpath) with maven, add the
"eclipse.dependency" property on your dependencies witch are eclipse
projects. (http://maven.apache.org/reference/plugins/eclipse/)

- Start Tomcat using the sysdeo plugin :
http://www.sysdeo.com/eclipse/tomcatPlugin.html
and use the devloader
(http://www.sysdeo.com/eclipse/readmeDevLoader.html). It will override
the webapp class loader witch will also search in the referenced
projects.


-- 
Thomas Recloux

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org