<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div dir="ltr">
<div></div>
<div data-ogsc="" style="">
<div>Maven.skip.test skips the test compile and run, skipTests property only tells surefire to not run and judge the unit tests</div>
<div class="ms-outlook-ios-signature" id="ms-outlook-mobile-signature">
<div style="direction: ltr;">-- </div>
<div style="direction: ltr;">http://bernd.eckenfels.net</div>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> undertow-dev-bounces@lists.jboss.org &lt;undertow-dev-bounces@lists.jboss.org&gt; im Auftrag von Brad Wood &lt;bdw429s@gmail.com&gt;<br>
<b>Gesendet:</b> Tuesday, June 16, 2020 9:21:55 PM<br>
<b>An:</b> Undertow Developers &lt;undertow-dev@lists.jboss.org&gt;<br>
<b>Betreff:</b> [undertow-dev] Building Undertow</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr">I'm trying&nbsp;to build Undertow using the (sparse) instructions here and having a heck of a time.&nbsp;&nbsp;
<div><br>
</div>
<div><a href="https://undertow.io/undertow-docs/undertow-docs-2.1.0/index.html">https://undertow.io/undertow-docs/undertow-docs-2.1.0/index.html</a>&nbsp;&nbsp;<br>
</div>
<div><br>
</div>
<div><span style="color:rgba(0,0,0,0.9); font-family:&quot;Droid Sans Mono&quot;,&quot;DejaVu Sans Mono&quot;,monospace; font-size:15.9375px; word-spacing:-2.39063px; background-color:rgb(247,247,248)">cd undertow &amp;&amp; mvn install</span>&nbsp;&nbsp;<br>
</div>
<div><br>
</div>
<div>So firstly, I'm not super familiar with Maven (not a full time java dev) but when I skip the tests, the build fails.&nbsp; Here is the note in the docs, which is confusing for a couple reasons:</div>
<div><br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<span style="color:rgba(0,0,0,0.6); font-family:&quot;Noto Serif&quot;,&quot;DejaVu Serif&quot;,serif; font-size:17px; letter-spacing:-0.17px">If you attempt to build with&nbsp;</span><code style="box-sizing:border-box; font-family:&quot;Droid Sans Mono&quot;,&quot;DejaVu Sans Mono&quot;,monospace; font-size:0.9375em; color:rgba(0,0,0,0.9); letter-spacing:0px; padding:0.1em 0.5ex; word-spacing:-0.15em; background-color:rgb(247,247,248); border-radius:4px; line-height:1.45">-Dmaven.test.skip=true</code><span style="color:rgba(0,0,0,0.6); font-family:&quot;Noto Serif&quot;,&quot;DejaVu Serif&quot;,serif; font-size:17px; letter-spacing:-0.17px">&nbsp;for
 your initial build the build will fail, as the core test jar will not be built and the Servlet module has a test scoped dependency on this jar. Either use&nbsp;</span><code style="box-sizing:border-box; font-family:&quot;Droid Sans Mono&quot;,&quot;DejaVu Sans Mono&quot;,monospace; font-size:0.9375em; color:rgba(0,0,0,0.9); letter-spacing:0px; padding:0.1em 0.5ex; word-spacing:-0.15em; background-color:rgb(247,247,248); border-radius:4px; line-height:1.45">-DskipTests</code><span style="color:rgba(0,0,0,0.6); font-family:&quot;Noto Serif&quot;,&quot;DejaVu Serif&quot;,serif; font-size:17px; letter-spacing:-0.17px">,
 or just let the tests run the first time.</span>&nbsp;&nbsp;<br>
</blockquote>
<div>
<ul>
<li>First it says the build will fail if the tests are skipped, but then seems to imply that I can work around this by setting some system properties.&nbsp;&nbsp;</li><li>What is the difference between the <b>maven.test.skip</b> property and the <b>
skiptests</b> property?&nbsp; Do I need both of them?&nbsp;&nbsp;</li></ul>
<div>If I try to run the build like so (Using Maven 3.6.3 and java 11) using a fresh clone of the Undertow repo with the &quot;master&quot; branch checked out:</div>
</div>
<div><br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
mvn install -Dmaven.test.skip=true -DskipTests</blockquote>
<div><br>
</div>
<div>I get this build failure still:</div>
<div><br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
[ERROR] Failed to execute goal on project undertow-servlet: Could not resolve dependencies for project io.undertow:undertow-servlet:jar:2.1.4.Final-SN<br>
APSHOT: Could not find artifact io.undertow:undertow-core:jar:tests:2.1.4.Final-SNAPSHOT -&gt; [Help 1]<br>
</blockquote>
<div><br>
</div>
<div>So, I'm not sure what to do there.&nbsp; The docs state that setting those JVM args is an alternative to running the tests but it doesn't work.</div>
<div><br>
</div>
<div>Now, the first thing I tried was actually just to let the tests run, but this proved to be even more troublesome than skipping the tests!&nbsp; I get tons of test failures and other errors and the behavior differs&nbsp;whether I'm using Java 8 or Java 11 (fun!)
 and the tests usually just hang and won't complete.&nbsp;&nbsp;</div>
<div><br>
</div>
<div>When I run the build (with tests) on Java 1.8.0_161 they hang on this test and never finish.</div>
<div><br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
[INFO] Running io.undertow.server.handlers.ReceiverTestCase</blockquote>
<div><br>
</div>
<div>When I run the build (with tests) on Java 11.0.6, I get the following errors:</div>
<div><br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
[ERROR] testSpnegoSuccess(io.undertow.server.security.SpnegoDigestAuthenticationTestCase) &nbsp;Time elapsed: 0.01 s &nbsp;&lt;&lt;&lt; FAILURE!<br>
java.lang.AssertionError: Expected header not found.<br>
<br>
[ERROR] testSpnegoSuccess(io.undertow.server.security.SpnegoBasicAuthenticationTestCase) &nbsp;Time elapsed: 0 s &nbsp;&lt;&lt;&lt; FAILURE!<br>
java.lang.AssertionError: Expected header not found.<br>
<br>
[ERROR] testSpnegoSuccess(io.undertow.server.security.SpnegoAuthenticationTestCase) &nbsp;Time elapsed: 0 s &nbsp;&lt;&lt;&lt; FAILURE!<br>
java.lang.AssertionError: expected:&lt;401&gt; but was:&lt;403&gt;<br>
<br>
[ERROR] testNonDefaultFileSystem(io.undertow.server.handlers.file.PathResourceManagerTestCase) &nbsp;Time elapsed: 0.042 s &nbsp;&lt;&lt;&lt; FAILURE!<br>
java.lang.AssertionError: expected:&lt;/dir/resource.txt&gt; but was:&lt;/dir/./resource.txt&gt;<br>
<br>
[ERROR] testRegexPattern(io.undertow.server.handlers.SameSiteCookieHandlerTestCase) &nbsp;Time elapsed: 0.027 s &nbsp;&lt;&lt;&lt; ERROR!<br>
javax.net.ssl.SSLException: Connection reset<br>
</blockquote>
<div>&nbsp;</div>
<div>And then it hangs on the same test case that Java 8 hangs on (io.undertow.server.handlers.ReceiverTestCase)</div>
<div><br>
</div>
<div>What does it take to get a local build&nbsp;of Undertow working?&nbsp; If it matters, I'm trying to build&nbsp;on a Windows 7 machine.</div>
<div><br clear="all">
<div>
<div dir="ltr" class="x_gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div></div>
<div>Thanks!</div>
<div><br>
</div>
<div>~Brad</div>
<div><br>
</div>
<div><b>Developer Advocate</b></div>
<div><i>Ortus Solutions, Corp&nbsp;</i></div>
<div><b><br>
</b></div>
<div>E-mail: <a href="mailto:brad@coldbox.org" target="_blank">brad@coldbox.org</a></div>
<div>ColdBox Platform: <a href="http://www.coldbox.org" target="_blank">http://www.coldbox.org</a>&nbsp;</div>
<div>Blog: <a href="http://www.codersrevolution.com" target="_blank">http://www.codersrevolution.com</a></div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>