• 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

Maven newbie question

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I am a newbie to Maven. I have just begin to use maven 1.0 as a build tool for my projects.

I created a maven goal called "deploy" that creates jar files and copies them over to the my tomcat webapps folder. I have configued the path to tomcat under "maven.tomcat.home" in my build.properties file

I also have two other tomcat instances titled tomcat1 and tomcat2. I usually run the "deploy" goal and copy over the jars files that was put in one of the tomcat instances to tomcat1 and tomcat2. This has to be done everytime I execute the "deploy" goal.

Is there a way in Maven whereby I can execute this deploy goal and have my jars copied over to the webapps/ folder of all the three tomcat instances simultaneously instead the copy and paste procedure that I am currently using.

I have searched for documentation on this issue without much success. Any pointers/suggestions would be highly invaluable.

thanks,
vishwak
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't understand your problem, if you create a maven goal "deploy" that copy in your tomcat instance you can just modify the same goal to also copy in your other instance.

Where have you create the deploy goal in the maven.xml ?
reply
    Bookmark Topic Watch Topic
  • New Topic