Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Maven - incremental deployment for Glassfish or JBoss(new plugin)
Maven - incremental deployment for Glassfish or JBoss [message #629092] Mon, 27 September 2010 07:51
Ralph Soika is currently offline Ralph SoikaFriend
Messages: 192
Registered: July 2009
Senior Member
Hi,
I have developed a eclipse plugin to support incremental deployment for
Maven multi-module JEE Projects.
The problem to me was that the WTP integration did not support hot or
incremental deployment from multi-module maven projects.
In the past my ear pom.xml did include a ant-plugin configuration like this
to copy the final ear build into my glassfish autodeploy folder:

<plugin>
       <artifactId>maven-antrun-plugin</artifactId>
       <executions>
               <execution>
               <phase>pre-integration-test</phase>
               <configuration>
                       <tasks>
                       <!--
                               the Property 'autodeploy' needs to be configured in the
                               settings.xml file the property should point to the autodeploy
                               folder from app server
                       -->
                       <echo message="About to copy EAR to autodeploydirectory..." />
                       <echo> EAR:
                               ${project.build.directory}/${project.build.finalName}.ear
                               autodeploy directory: ${autodeploy} </echo>
                       <copy
                               file="${project.build.directory}/${project.build.finalName}.ear"
                               todir="${autodeploy}" />
                       <echo message="Copied EAR to autodeploy directory." />
                       </tasks>
               </configuration>
                       <goals>
                       <goal>run</goal>
                       </goals>
               </execution>
       </executions>
</plugin>



This all works but Glassfish also supports incremental deployment. So any
changes to a .xhtml, .jsf Page can be deployed incremental when the changes
from the Eclipse IDE are reflected into the glassfish applications/
directory where all deployed JEE modules and applications are present.

So this is what my pugin did. You can specifiy the target folder for a JEE
module and you got a incremental deployment.

http://code.google.com/p/manik-hot-deploy/

As a result using this plugin I only need to make a mvn:install when a full
redeploy is suitable .

But maybe this is helpful to other maven developers.
Thanks for any feedback.
Previous Topic:Integrating Eclipse with dot net ?
Next Topic:Changing the Encoding type value in the peferences doesn't reflect in the active editors (HTML, XML.
Goto Forum:
  


Current Time: Fri Apr 19 21:16:33 GMT 2024

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

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

Back to the top