<div dir="ltr">Thanks for chiming in, though I'm not sure what that means in regards to whether or not I'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'm not a regular Maven user and I've never heard of surefire today, and the docs don't really show a full example of running the build while skipping the tests so I'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 class="gmail_quote" 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 <<< 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 <<< 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'm having with the test suite.</div><div><br><div><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></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 16, 2020 at 6:36 PM Bernd Eckenfels <<a href="mailto:ecki@zusammenkunft.net">ecki@zusammenkunft.net</a>> 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 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_-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_-8612227336283265923divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> <a href="mailto:undertow-dev-bounces@lists.jboss.org" target="_blank">undertow-dev-bounces@lists.jboss.org</a> <<a href="mailto:undertow-dev-bounces@lists.jboss.org" target="_blank">undertow-dev-bounces@lists.jboss.org</a>> im Auftrag von Brad Wood <<a href="mailto:bdw429s@gmail.com" target="_blank">bdw429s@gmail.com</a>><br>
<b>Gesendet:</b> Tuesday, June 16, 2020 9:21:55 PM<br>
<b>An:</b> Undertow Developers <<a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.jboss.org</a>><br>
<b>Betreff:</b> [undertow-dev] Building Undertow</font>
<div> </div>
</div>
<div>
<div dir="ltr">I'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:"Droid Sans Mono","DejaVu Sans Mono",monospace;font-size:15.9375px;word-spacing:-2.39063px;background-color:rgb(247,247,248)">cd undertow && mvn install</span> <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. 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:"Noto Serif","DejaVu Serif",serif;font-size:17px;letter-spacing:-0.17px">If you attempt to build with </span><code style="box-sizing:border-box;font-family:"Droid Sans Mono","DejaVu Sans Mono",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:"Noto Serif","DejaVu Serif",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:"Droid Sans Mono","DejaVu Sans Mono",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:"Noto Serif","DejaVu Serif",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 "master" 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 -> [Help 1]<br>
</blockquote>
<div><br>
</div>
<div>So, I'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'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'm using Java 8 or Java 11 (fun!)
and the tests usually just hang and won'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 <<< FAILURE!<br>
java.lang.AssertionError: Expected header not found.<br>
<br>
[ERROR] testSpnegoSuccess(io.undertow.server.security.SpnegoBasicAuthenticationTestCase) Time elapsed: 0 s <<< FAILURE!<br>
java.lang.AssertionError: Expected header not found.<br>
<br>
[ERROR] testSpnegoSuccess(io.undertow.server.security.SpnegoAuthenticationTestCase) Time elapsed: 0 s <<< FAILURE!<br>
java.lang.AssertionError: expected:<401> but was:<403><br>
<br>
[ERROR] testNonDefaultFileSystem(io.undertow.server.handlers.file.PathResourceManagerTestCase) Time elapsed: 0.042 s <<< FAILURE!<br>
java.lang.AssertionError: expected:</dir/resource.txt> but was:</dir/./resource.txt><br>
<br>
[ERROR] testRegexPattern(io.undertow.server.handlers.SameSiteCookieHandlerTestCase) Time elapsed: 0.027 s <<< 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'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>