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".