<div dir="ltr">Hmm, perhaps I was too vague in my original post.  I enjoy the extistial discussion of Maven and things that might be.  But I guess I&#39;m looking for much more concrete answers as to <div><ul><li>Why the tests don&#39;t pass for me on a plain jane vanilla clone of the master branch</li><li>Why I can&#39;t skip them with the build failing</li><li>If there&#39;s some additional hidden information not found in the docs that is escaping me</li></ul></div><div>I hear you saying &quot;it&#39;s probably best to actually run the tests&quot; and &quot;you can always skip the test execution&quot;, but I posted all the bad things that happen when I try.  I need help here to know how to get the tests to run and how to successfully skip tests-- because I followed the docs, and they don&#39;t work.  So... something&#39;s gotta&#39; give here.</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><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 16, 2020 at 7:47 PM Bernd Eckenfels &lt;<a href="mailto:ecki@zusammenkunft.net">ecki@zusammenkunft.net</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div>
<div>
<div>
<div style="direction:ltr">What the section means you can always skip the test execution with the property (you mainly do that for performance reasons, but sometimes you just cannot get all tests to pass).</div>
<div><br>
</div>
<div style="direction:ltr">But you cannot skip the Maven Test build phase the first time you run the build, because it has to build that test library (and install it into the local Maven &quot;Repo cache&quot;).</div>
<div><br>
</div>
<div style="direction:ltr">If you have run the install build once you can - for performance reason also use the Maven.skip.test - at least until you change the project version. However it&#39;s probably best to actually run the tests, especially if you plan to
 submit changes.</div>
<div><br>
</div>
<div style="direction:ltr">Gruss</div>
<div style="direction:ltr">Bernd</div>
</div>
<div><br>
</div>
<div>
<div><br>
</div>
<div style="direction:ltr">-- </div>
<div style="direction:ltr"><a href="http://bernd.eckenfels.net" target="_blank">http://bernd.eckenfels.net</a></div>
</div>
</div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_-2628383465058667298divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Brad Wood &lt;<a href="mailto:bdw429s@gmail.com" target="_blank">bdw429s@gmail.com</a>&gt;<br>
<b>Gesendet:</b> Wednesday, June 17, 2020 1:52:46 AM<br>
<b>An:</b> Bernd Eckenfels &lt;<a href="mailto:ecki@zusammenkunft.net" target="_blank">ecki@zusammenkunft.net</a>&gt;<br>
<b>Cc:</b> Undertow Developers &lt;<a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.jboss.org</a>&gt;<br>
<b>Betreff:</b> Re: [undertow-dev] Building Undertow</font>
<div> </div>
</div>
<div>
<div dir="ltr">Thanks for chiming in, though I&#39;m not sure what that means in regards to whether or not I&#39;m running the build correctly.  Is it your understanding that I should be able to run the build without error if I use both of those skip flags?  Does the
 syntax that I showed in my original post demonstrate correct usage of those flags?  I&#39;m not a regular Maven user and I&#39;ve never heard of surefire today, and the docs don&#39;t really show a full example of running the build while skipping the tests so I&#39;m unclear
 on the proper way to do it.  
<div><br>
</div>
<div>Of course, ultimately, I need to know why the tests are failing and hanging as well.  But for now, just trying to get the build to run!</div>
<div><br>
</div>
<div>On a related note, some runs of the test suite after my original post gave me these failures additional:</div>
<div><br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
[ERROR] testBinary(io.undertow.websockets.core.protocol.WebSocket13ServerTestCase)  Time elapsed: 0.02 s  &lt;&lt;&lt; ERROR!<br>
java.lang.IllegalStateException: ChannelPipeline does not contain an HttpRequestEncoder or HttpClientCodec<br>
<br>
[ERROR] testCloseFrame(io.undertow.websockets.core.protocol.WebSocket08ServerTest)  Time elapsed: 0.013 s  &lt;&lt;&lt; ERROR!<br>
java.lang.IllegalStateException: ChannelPipeline does not contain an HttpRequestEncoder or HttpClientCodec<br>
</blockquote>
<div><br>
<div>It really is sort of alarming the number of intermittent issues I&#39;m having with the test suite.</div>
<div><br>
<div>
<div>
<div dir="ltr">
<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>
<br>
</div>
</div>
</div>
</div>
<br>
<div>
<div dir="ltr">On Tue, Jun 16, 2020 at 6:36 PM Bernd Eckenfels &lt;<a href="mailto:ecki@zusammenkunft.net" target="_blank">ecki@zusammenkunft.net</a>&gt; wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="ltr">
<div></div>
<div>
<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 id="gmail-m_-2628383465058667298x_gmail-m_-8612227336283265923ms-outlook-mobile-signature">
<div style="direction:ltr">-- </div>
<div style="direction:ltr"><a href="http://bernd.eckenfels.net" target="_blank">http://bernd.eckenfels.net</a></div>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_-2628383465058667298x_gmail-m_-8612227336283265923divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b>
<a href="mailto:undertow-dev-bounces@lists.jboss.org" target="_blank">undertow-dev-bounces@lists.jboss.org</a> &lt;<a href="mailto:undertow-dev-bounces@lists.jboss.org" target="_blank">undertow-dev-bounces@lists.jboss.org</a>&gt; im Auftrag von Brad Wood &lt;<a href="mailto:bdw429s@gmail.com" target="_blank">bdw429s@gmail.com</a>&gt;<br>
<b>Gesendet:</b> Tuesday, June 16, 2020 9:21:55 PM<br>
<b>An:</b> Undertow Developers &lt;<a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.jboss.org</a>&gt;<br>
<b>Betreff:</b> [undertow-dev] Building Undertow</font>
<div> </div>
</div>
<div>
<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" target="_blank">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 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 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 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 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 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">
<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>
</div>
</div>
</blockquote>
</div>
</div>
</div>

</blockquote></div>