• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Starting and stopping tomcat6 with maven before/after deploy

 
Ranch Hand
Posts: 38
jQuery Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am a maven newbie, and it's going fairly well, except that I have been unable to get maven to start tomcat after deploying. I see in the documentation that you can do it with the tomcat-maven-plugin, but that uses the Tomcat Manager, which we don't use in our shop. Is there some way to just call the tomcat start.bat directly via maven?

Here's the relevant portion of my pom.xml, which is getting the error that it can't connect to the Tomcat Manager, probably because it is not configured correctly. Do I really need Tomcat Manager to do this?

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe the Maven exec plugin can do the job.

Regards,
Uli
 
Rebecca Hopper
Ranch Hand
Posts: 38
jQuery Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That worked perfectly. I guess it might seem obvious when you have been using maven for awhile, but I still don't know all the plugins.

I bound start-tomcat to the pre-clean phase and stop-tomcat to the deploy phase.



Thanks, Uli for the quick response!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic