title: Jenkins nightly deployment
body: <p>I have a jenkins server that have a maven job.
  today we are not deploying artifacts to our repository(Artifactory) since it takes a lot of time(30 minutes).
  than we are invoking  an integration-tests  on other jobs (different machines too, slaves) that test it on different databases (oracle, sqlserver) and different os (linux, windows).</p>
  
  <p>What i want to do is to make a nightly deployment of all our maven modules.</p>
  
  <p>My questions are: </p>
  
  <p>1.What is the proper way to do it, should we put our logic on some maven profile or should i use jenkins to invoke this profile i.e 
  <code>mvn -Pdeployprofile deploy</code></p>
  
  <p>If we use jenkins should it be on same job or not?. 
  My thought is that on day jenkins would run : <code>mvn install</code> 
  on night: <code>mvn deploy</code> </p>
  
  <p>How can i achieve that?</p>
  
  <p>Thanks a lot David.</p>