mvn clean install
http3 and http3s providersmvn -Pshell -Dhttp3
http4 and http4s providersmvn -Pshell -Dhttp4
http3, http3s, http4 and http4s providers togethermvn -Pshell -Dhttp3 -Dhttp4
mvn -Pshell -Dhttp3 -Dhttp4 ... cd http3://repo1.maven.org/maven2/org/apache/commons/commons-vfs2/ ... cat maven-metadata.xml ... cd http3s://repo1.maven.org/maven2/org/apache/commons/commons-vfs2/ ... cat maven-metadata.xml ... cd http4://repo1.maven.org/maven2/org/apache/commons/commons-vfs2/ ... cat maven-metadata.xml ... cd http4s://repo1.maven.org/maven2/org/apache/commons/commons-vfs2/ ... cat maven-metadata.xml ... cd http://repo1.maven.org/maven2/org/apache/commons/commons-vfs2/ ... cat maven-metadata.xml ... cd https://repo1.maven.org/maven2/org/apache/commons/commons-vfs2/ ... cat maven-metadata.xml ... pwd > Current folder is https://repo1.maven.org/maven2/org/apache/commons/commons-vfs2 pwfs > FileSystem of current folder is org.apache.commons.vfs2.provider.http.HttpFileSystem@668be11a (root: https://repo1.maven.org/) ... quit
Set -Dproviders=<custom_providers.xml_resource_name>.
mvn -Pshell -Dhttp3 -Dhttp4 -Dproviders=providers-http4-default.xml ... Custom providers configuration used: file:/tmp/commons-vfs/commons-vfs2-examples/target/classes/providers-http4-default.xml VFS Shell null cd http://repo1.maven.org/maven2/org/apache/commons/commons-vfs2/ > Current folder is http://repo1.maven.org/maven2/org/apache/commons/commons-vfs2 pwd > Current folder is http://repo1.maven.org/maven2/org/apache/commons/commons-vfs2 pwfs > FileSystem of current folder is org.apache.commons.vfs2.provider.http4.Http4FileSystem@6e012f9b (root: http://repo1.maven.org/) ...