You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<liclass="auto-cursor-target"><ahref="Resin+3.x.html">Resin 3.x</a> requires Java 6 (it cannot run with newer versions of Java), and since it is executed using a <ahref="https://codehaus-cargo.github.io/apidocs/org/codehaus/cargo/container/resin/internal/ResinRun.html"><code>ResinRun</code></a> class the whole Resin container must be compiled with Java 6</li>
345
345
<liclass="auto-cursor-target">In addition, as other containers such as <ahref="JOnAS+5.x.html">JOnAS 5.x</a> also require Java 6, all test samples need to be built using Java 6</li>
346
346
<liclass="auto-cursor-target">The <ahref="Jetty+Remote+Deployer.html">Jetty Remote Deployer</a> for Jetty 6.x as well as for Jetty 7.x to 9.x are built with Java 6, so we can support a broad range of Java versions on these Jetty containers</li>
347
-
<liclass="auto-cursor-target">At the same time, the <ahref="Jetty+Remote+Deployer.html">Jetty Remote Deployer</a> for Jetty 10.x onwards requires the JDK 11 (because Jetty 10.x requires JDK 11 or above)</li>
347
+
<liclass="auto-cursor-target">At the same time, the <ahref="Jetty+Remote+Deployer.html">Jetty Remote Deployer</a>s for Jetty 10.x and 11.x require the JDK 11 (because Jetty 10.x and 11.x require JDK 11 or above)</li>
348
348
</ul>
349
349
<p>The only version of the JDK that can build with all these constraints is the JDK 11. We hence have certain modules of the Codehaus Cargo build that do not activate on JDK 8, and some others that don't activate on JDK 12 onwards. On these JDKs, you hence will get exceptions such as:</p>
<preclass="syntaxhighlighter-pre">[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.8.1:copy (copy-test-ear) on project cargo-core-container-jonas:
356
-
Unable to find/resolve artifact.: Could not find artifact org.codehaus.cargo:simple-ear:ear:1.10.18-SNAPSHOT -> [Help 1]</pre>
356
+
Unable to find/resolve artifact.: Could not find artifact org.codehaus.cargo:simple-ear:ear:1.10.19-SNAPSHOT -> [Help 1]</pre>
357
357
</div>
358
358
</div>
359
359
<p>To build on these JDKs, you can either have a "pre-build" in JDK 11, or use the <ahref="Maven+3+Plugin+Installation.html#Maven3PluginInstallation-snapshots">snapshots repository</a> by adding the below to your Maven <code>settings.xml</code>:</p>
<li><ahref="https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-core/2.18.2/jackson-core-2.18.2.jar">Jackson core 2.18.2</a> or greater</li>
337
-
<li><ahref="https://repo.maven.apache.org/maven2/com/fasterxml/jackson/dataformat/jackson-dataformat-yaml/2.18.2/jackson-dataformat-yaml-2.18.2.jar">Jackson YAML dataformat 2.18.2</a> or greater, which itself depends on <ahref="https://repo.maven.apache.org/maven2/org/yaml/snakeyaml/2.3/snakeyaml-2.3.jar">SnakeYAML 2.3</a> or greater</li>
336
+
<li><ahref="https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-core/2.18.3/jackson-core-2.18.3.jar">Jackson core 2.18.3</a> or greater</li>
337
+
<li><ahref="https://repo.maven.apache.org/maven2/com/fasterxml/jackson/dataformat/jackson-dataformat-yaml/2.18.3/jackson-dataformat-yaml-2.18.3.jar">Jackson YAML dataformat 2.18.3</a> or greater, which itself depends on <ahref="https://repo.maven.apache.org/maven2/org/yaml/snakeyaml/2.3/snakeyaml-2.3.jar">SnakeYAML 2.3</a> or greater</li>
<p>When you do not do that properly, you will be getting errors such as:</p>
324
324
<pre>Cannot create configuration. There's no registered configuration for the parameters (container [id = [tomcat9x], type = [installed]], configuration type [standalone]). Actually there are no valid types registered for this configuration. Maybe you've made a mistake spelling it?</pre>
325
325
<p>In case the errors persist even after adding the <code>SNAPSHOT</code> repositories, you can install the associated container artifact. Example (with the Codehaus Cargo Tomcat container):</p>
<p>Then, you should decide which <code>SNAPSHOT</code> version to use:</p>
330
330
<ul>
331
331
<li>To find out what the latest <code>SNAPSHOT</code> version is, you can simply look at <ahref="https://github.com/codehaus-cargo/cargo/blob/master/pom.xml">the root POM file for Codehaus Cargo</a>.</li>
332
332
<li>Configure the Cargo Maven Plugin by specifying the <code>SNAPSHOT</code> version you want.</li>
333
333
</ul>
334
-
<p>For example, to use version <code>1.10.18-SNAPSHOT</code> you would declare something similar to the following in your POM:</p>
334
+
<p>For example, to use version <code>1.10.19-SNAPSHOT</code> you would declare something similar to the following in your POM:</p>
<p><spanstyle="text-decoration: none;" class="legacy-color-text-blue3">Codehaus Cargo is 100% open source, copyrighted Vincent Massol and Ali Tokmen (see the <ahref="License.html">license</a> page</span><spanstyle="text-decoration: none;" class="legacy-color-text-blue3"> for details) under the Apache Software License, except for the </span><ahref="WebSphere+Liberty.html" style="text-decoration: none;">WebSphere Liberty</a><spanstyle="text-decoration: none;" class="legacy-color-text-blue3"> container which has been released under the MIT License.</span></p>
276
+
<p><spanstyle="text-decoration: none;" class="legacy-color-text-blue3">Codehaus Cargo is 100% open source, copyrighted Vincent Massol and Ali Tokmen (see the <ahref="License.html">license</a> page</span><spanstyle="text-decoration: none;" class="legacy-color-text-blue3"> for details) under the Apache Software License, except for the </span><astyle="text-decoration: none;" href="WebSphere+Liberty.html">WebSphere Liberty</a><spanstyle="text-decoration: none;" class="legacy-color-text-blue3"> container which has been released under the MIT License.</span></p>
277
277
<h2id="Sourcecode-RepositorybrowsingordownloadingthecodeasaZIPfile">Repository browsing or downloading the code as a ZIP file</h2>
278
278
<p>The <ahref="https://github.com/codehaus-cargo/cargo">Github browser on the Codehaus Cargo main page</a> lets you browse the source code with ease.</p>
279
279
<p>It also has a facility to download versions as ZIP files, without requiring any extra software or command.</p>
0 commit comments