Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>here's the solution I found:</p> <ul> <li>Zip the JREs (jre-linux32-1.6.0.23.zip and jre-jre-win32-1.6.0.zip in my case). </li> <li>Upload them to your Nexus repository through web UI (or deploy manually with "mvn"), set the artifact parameters: groupid="oracle" artifactid="jre-win32" / "jre-linux32", set the right version and packaging type "zip".</li> <li><p>modify your pom.xml to download and unzip the dependency during the build (I bound it to "prepare-package" phase). </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;version&gt;2.4&lt;/version&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;copy&lt;/id&gt; &lt;phase&gt;prepare-package&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;oracle&lt;/groupId&gt; &lt;artifactId&gt;jre-win32&lt;/artifactId&gt; &lt;version&gt;1.6.0.23&lt;/version&gt; &lt;type&gt;zip&lt;/type&gt; &lt;overWrite&gt;false&lt;/overWrite&gt; &lt;outputDirectory&gt;${project.build.directory}/alternateLocation&lt;/outputDirectory&gt; &lt;!--&lt;destFileName&gt;optional-new-name.jar&lt;/destFileName&gt;--&gt; &lt;/artifactItem&gt; &lt;artifactItem&gt; &lt;groupId&gt;oracle&lt;/groupId&gt; &lt;artifactId&gt;jre-linux32&lt;/artifactId&gt; &lt;version&gt;1.6.0.23&lt;/version&gt; &lt;type&gt;zip&lt;/type&gt; &lt;overWrite&gt;false&lt;/overWrite&gt; &lt;outputDirectory&gt;${project.build.directory}/alternateLocation&lt;/outputDirectory&gt; &lt;!--&lt;destFileName&gt;optional-new-name.jar&lt;/destFileName&gt;--&gt; &lt;/artifactItem&gt; &lt;/artifactItems&gt; &lt;outputDirectory&gt;${project.build.directory}/wars&lt;/outputDirectory&gt; &lt;overWriteReleases&gt;false&lt;/overWriteReleases&gt; &lt;overWriteSnapshots&gt;true&lt;/overWriteSnapshots&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/build&gt; </code></pre></li> </ul> <p>that's it. The JRE will be downloaded and extracted to target\alternateLocation folder.</p> <p>you can use "copy" goal instead of "unpack" if you want to only copy the ZIP files without extracting them.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload