<div dir="ltr">I&#39;m trying to build Undertow using the (sparse) instructions here and having a heck of a time.  <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>  <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>  <br></div><div><br></div><div>So firstly, I&#39;m not super familiar with Maven (not a full time java dev) but when I skip the tests, the build fails.  Here is the note in the docs, which is confusing for a couple reasons:</div><div><br></div><blockquote class="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 </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"> 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 </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>  <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.  </li><li>What is the difference between the <b>maven.test.skip</b> property and the <b>skiptests</b> property?  Do I need both of them?  </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="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="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&#39;m not sure what to do there.  The docs state that setting those JVM args is an alternative to running the tests but it doesn&#39;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!  I get tons of test failures and other errors and the behavior differs whether I&#39;m using Java 8 or Java 11 (fun!) and the tests usually just hang and won&#39;t complete.  </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="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="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)  Time elapsed: 0.01 s  &lt;&lt;&lt; FAILURE!<br>java.lang.AssertionError: Expected header not found.<br><br>[ERROR] testSpnegoSuccess(io.undertow.server.security.SpnegoBasicAuthenticationTestCase)  Time elapsed: 0 s  &lt;&lt;&lt; FAILURE!<br>java.lang.AssertionError: Expected header not found.<br><br>[ERROR] testSpnegoSuccess(io.undertow.server.security.SpnegoAuthenticationTestCase)  Time elapsed: 0 s  &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)  Time elapsed: 0.042 s  &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)  Time elapsed: 0.027 s  &lt;&lt;&lt; ERROR!<br>javax.net.ssl.SSLException: Connection reset<br></blockquote><div> </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 of Undertow working?  If it matters, I&#39;m trying to build on a Windows 7 machine.</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="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 </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> </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>