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 Head First Android this week in the Android 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: 10433
    
176

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Scheduling maven build
 
It's not a secret anymore!