aspose file tools*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
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: 10285
    
169

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]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Scheduling maven build