title: GitLab: Job do not return after script is executed, instead fail by timeout after 1 hour
body: <p>In my .gitlab-ci.yml i have the following job:</p>
  
  <pre><code>init_db:
    stage: build
    script:
      - cd database-migration
      - "mvn clean install exec:java"
  </code></pre>
  
  <p>The database-migration gets executed. The code for it looks like this:</p>
  
  <pre><code>public static void main( String[] args ) {
      doSomeMigration();
      System.out.println("Migration done!");
      System.exit(0);
  }
  </code></pre>
  
  <p>In the log from GitLab I get this at the end:</p>
  
  <pre><code>Migration done!
  ERROR: Job failed: execution took longer than 1h0m0s seconds
  </code></pre>
  
  <p>So to me it seems like the script ran ok, but after that the job does not end. Can you see what I am doing wrong?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>The pom.xml for database-migration looks like this:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
    &lt;groupId&gt;com.domain&lt;/groupId&gt;
    &lt;artifactId&gt;database-migration&lt;/artifactId&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;build&gt;
          &lt;plugins&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.7.0&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.8&lt;/source&gt;
                      &lt;target&gt;1.8&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
              &lt;plugin&gt;
                &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                &lt;artifactId&gt;exec-maven-plugin&lt;/artifactId&gt;
                &lt;version&gt;1.4.0&lt;/version&gt;
                &lt;configuration&gt;
                  &lt;executable&gt;java&lt;/executable&gt;
                  &lt;mainClass&gt;com.domain.DatabaseMigrationApp&lt;/mainClass&gt;
                &lt;/configuration&gt;
              &lt;/plugin&gt;
  
          &lt;/plugins&gt;
      &lt;/build&gt;
      &lt;packaging&gt;jar&lt;/packaging&gt;
  
    &lt;dependencies&gt;
  
      &lt;dependency&gt;
         ... database dependency...
      &lt;/dependency&gt;
  
    &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>