Hi All:

I am trying to bump HC from 5.1.3 to 5.2 in Apache Commons VFS and I get an odd 
failure.

To reproduce:

git clone https://gitbox.apache.org/repos/asf/commons-vfs.git
cd commons-vfs

Then, this works:

mvn clean test-compile exec:java 
-Dexec.mainClass=org.apache.commons.vfs2.util.NHttpFileServer -Dexec.args=". 0" 
-Dexec.classpathScope=test -e -pl commons-vfs2 -DNHttpFileServer.debug=true 
-Dhttpclient5.version=5.1.3

A file server on the current folder is now listening on the port displayed on 
the console as the 0 arg allocates an ephemeral port.

Test it with:

curl http://localhost:<ThePort>/pom.xml

You see the pom.xml 

Next, this does not work, the only difference is the httpclient5.version passed 
on the command line:

mvn clean test-compile exec:java 
-Dexec.mainClass=org.apache.commons.vfs2.util.NHttpFileServer -Dexec.args=". 0" 
-Dexec.classpathScope=test -e -pl commons-vfs2 -DNHttpFileServer.debug=true 
-Dhttpclient5.version=5.2

curl http://localhost:<ThePort>/pom.xml

Gives you something like:

curl: (7) Failed to connect to localhost port 65079 after 2257 ms: Connection 
refused

Thoughts?

Gary

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org
For additional commands, e-mail: dev-h...@hc.apache.org

Reply via email to