Skip to end of metadata
Go to start of metadata

It is possible to control a maven build with JobScheduler.

Assume you have a simple java project controlled by Maven. The build should start every day at 2 a.m. followed by the execution of the previously built project.

Create a Job called maven_build

Select Shell as language and put the following code into the textbox:


Select Run Time|Everyday and specify a single start at 2 a.m.


Running the job it will produce some output like this:
 

Related Downloads

  • sample_maven.zip
    To make this example run, put the code into your live folder. Note that the source code of your project is stored in the same folder as the job.