title: Get JRE from maven
body: <p>Is it still possible to download JRE from maven as a zip file, so that one can include it in the packaged product? I found this code, which doesn't work anymore:</p>
  
  <pre><code>&lt;build&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;unpack&lt;/id&gt;
              &lt;phase&gt;compile&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;unpack&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;artifactItems&gt;
                  &lt;artifactItem&gt;
                    &lt;groupId&gt;com.oracle&lt;/groupId&gt;
                    &lt;artifactId&gt;jre&lt;/artifactId&gt;
                    &lt;version&gt;1.8.141&lt;/version&gt;
                    &lt;type&gt;zip&lt;/type&gt;
                    &lt;classifier&gt;windows-i586&lt;/classifier&gt;
                    &lt;outputDirectory&gt;${basedir}&lt;/outputDirectory&gt;
                  &lt;/artifactItem&gt;
                &lt;/artifactItems&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
  </code></pre>
  
  <p>UPDATE: Looks like such thing could only work after uploading the zip file to the own maven repo...</p>