wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes Scheduling maven build Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Scheduling maven build" Watch "Scheduling maven build" New topic
Author

Scheduling maven build

Jayavardhan geepi
Ranch Hand

Joined: Jul 21, 2010
Posts: 66
HI.. I want to schedule maven build with deploy lifecycle using java or any scheduler.
Can anyone suggest me the approaches?
I tried executing commands using Runtime.

This works fine, but unable to close command prompt after build completes.
Tried chaining "exit" command, but it takes as "mvn validate exit" and maven throws exception that unrecognized lifecycle "exit".
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9932
    
159

Jayavardhan geepi wrote:HI.. I want to schedule maven build with deploy lifecycle using java or any scheduler.


How about continuous integration tools like Jenkins which allows you to trigger builds based on various criteria including a fixed schedule or even every time someone commits code to source control.

[My Blog] [JavaRanch Journal]
 
jQuery in Action, 2nd edition
 
subject: Scheduling maven build
 
Similar Threads
how to run mvn commands using ms bat file
cruise control : how to call maven commands from cruise control
What does maven "packaging = jar" mean ?
How to change jetty binding port number in maven.
Running help:describe command in Maven