This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Struts and the fly likes struts and maven Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts and maven" Watch "struts and maven" New topic

struts and maven

Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 808


I use Eclipse with Maven plugin. I am able to create a whole project and build it (using maven install). I receive .war file. However I have to deploy that file manually. It is a suboptimal solution. Is there any way to build a package and deploy it on the server automagically?

When I use standard project with embedded Glassfish I am able to utilize hot redeployment which is very fast. I would like to achieve something similar with Maven.

debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

hope these links will helps you
Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 808

Thank you!

But I have found more simple solution. You have to install two plugins: Eclipse Integration with Maven and Maven for WTP. That's all!
All you have to do is right click on the maven project and choose Debug on server...
I agree. Here's the link:
subject: struts and maven
jQuery in Action, 3rd edition