[jboss-user] [JBoss Tools] - Re: maven and jboss hot deployment does not work correctly

Snjezana Peco do-not-reply at jboss.com
Fri Feb 11 20:35:03 EST 2011

Snjezana Peco [http://community.jboss.org/people/snjeza] created the discussion

"Re: maven and jboss hot deployment does not work correctly"

To view the discussion, visit: http://community.jboss.org/message/587017#587017

If you want to use maven and JBoss Tools, I would propose you to do the following:

- install the JBoss Maven Integration feature using the  http://download.jboss.org/jbosstools/updates/development/ http://download.jboss.org/jbosstools/updates/development/ update site (the Maven support category)
- import your Maven project using File>Import>Maven>Existing Maven Projects

This way, you will have a standard WTP project that can be deployed if you right-click the server in the Servers view and call the Add and Remove... action.
All the JBoss features (VPE editor, CDI ...) will be available to you. 
You won't have to use maven to rebuild the project after changing something. For more details see  http://community.jboss.org/people/snjeza/blog/2011/02/02/getting-started-with-jboss-tools-jboss-maven-integration-and-weld http://community.jboss.org/people/snjeza/blog/2011/02/02/getting-started-with-jboss-tools-jboss-maven-integration-and-weld

I suppose the problem happens because maven recreates the complete application and the JBoss AS servers tries to redeploy it.
If you develop the application the way I described, JBoss Tools will deploy only those files that are changed.
Hot deployment will work for xhtml files. JBoss AS doesn't support hot deployment of Java files.
You can start the server in the debug mode and use the standard JDK Hotswap.

Reply to this message by going to Community

Start a new discussion in JBoss Tools at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110211/21c176e1/attachment-0001.html 

More information about the jboss-user mailing list