• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Scheduling maven build

 
Jayavardhan geepi
Ranch Hand
Posts: 66
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic