diff --git a/commons-vfs2-ant/pom.xml b/commons-vfs2-ant/pom.xml index 3c5d5cfa12..8629ace056 100644 --- a/commons-vfs2-ant/pom.xml +++ b/commons-vfs2-ant/pom.xml @@ -34,35 +34,22 @@ Apache Commons VFS Ant Tasks. + org.apache.ant ant + - org.apache.commons - commons-vfs2 - - - org.apache.commons - commons-vfs2 - test-jar - test - - - org.junit.jupiter - junit-jupiter-engine - test - - - org.junit.vintage - junit-vintage-engine - test + commons-logging + commons-logging + - org.apache.logging.log4j - log4j-core - test + org.apache.commons + commons-vfs2 + diff --git a/commons-vfs2-examples/pom.xml b/commons-vfs2-examples/pom.xml index d8ce6cf80c..d0d936376a 100644 --- a/commons-vfs2-examples/pom.xml +++ b/commons-vfs2-examples/pom.xml @@ -34,30 +34,35 @@ + + + org.apache.commons + commons-lang3 + + org.apache.commons commons-vfs2 + commons-net commons-net true - - org.apache.commons - commons-collections4 - true - + com.jcraft jsch true + ${basedir}/.. + org.apache.commons.vfs2.examples true * @@ -136,6 +141,26 @@ runtime + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + verify-undeclared-deps + + + + commons-httpclient:commons-httpclient + + + + + + + @@ -153,6 +178,26 @@ runtime + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + verify-undeclared-deps + + + + org.apache.httpcomponents:httpclient + + + + + + + @@ -170,6 +215,27 @@ runtime + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + verify-undeclared-deps + + + + org.apache.httpcomponents.client5:httpclient5 + + + + + + + diff --git a/commons-vfs2-hdfs/pom.xml b/commons-vfs2-hdfs/pom.xml index 669032768c..1a3de1d267 100644 --- a/commons-vfs2-hdfs/pom.xml +++ b/commons-vfs2-hdfs/pom.xml @@ -34,76 +34,126 @@ Apache Commons VFS is a Virtual File System library - Apache Hadoop HDFS provider. + + + commons-io + commons-io + + org.apache.commons - commons-vfs2 + commons-lang3 + - org.apache.hadoop - hadoop-hdfs-client + commons-logging + commons-logging + - org.apache.hadoop - hadoop-common + org.apache.commons + commons-vfs2 + org.apache.hadoop - hadoop-hdfs + hadoop-common + + + com.sun.jersey + * + + + org.apache.avro + * + + + org.eclipse.jetty + * + + + - org.apache.logging.log4j - log4j-slf4j2-impl - test + org.apache.hadoop + hadoop-hdfs-client + runtime + + org.apache.commons commons-vfs2 test-jar test + - org.junit.jupiter - junit-jupiter-engine - test - - - org.junit.vintage - junit-vintage-engine + org.apache.hadoop + hadoop-common + test-jar test + + + com.google.guava + guava + + + - org.apache.logging.log4j - log4j-core + org.apache.hadoop + hadoop-hdfs test - + org.apache.hadoop - hadoop-common + hadoop-hdfs test-jar test + - - jdk.tools - jdk.tools + io.netty + * + + + junit + junit + test + + + + org.apache.hadoop - hadoop-hdfs + hadoop-common test-jar test + + + + com.google.guava + guava + + + + org.mockito mockito-core test + @@ -219,6 +269,23 @@ + + + org.apache.maven.plugins + maven-dependency-plugin + + + verify-undeclared-deps + + + + org.apache.hadoop:hadoop-common:test-jar + org.mockito:mockito-core + + + + + diff --git a/commons-vfs2-hdfs/src/test/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProviderTest.java b/commons-vfs2-hdfs/src/test/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProviderTest.java index 3645489e0c..e78173cc19 100644 --- a/commons-vfs2-hdfs/src/test/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProviderTest.java +++ b/commons-vfs2-hdfs/src/test/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProviderTest.java @@ -39,10 +39,8 @@ import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; -import org.apache.hadoop.hdfs.DFSConfigKeys; import org.apache.hadoop.hdfs.MiniDFSCluster; -import org.apache.log4j.Level; -import org.apache.log4j.Logger; +import org.apache.hadoop.hdfs.client.HdfsClientConfigKeys; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeAll; @@ -109,7 +107,6 @@ public static void setUmask(final Configuration config) { @BeforeAll public static void setUp() throws Exception { System.setProperty("test.basedir", "../commons-vfs2/target/test-classes/test-data"); - Logger.getRootLogger().setLevel(Level.ERROR); // Put the MiniDFSCluster directory in the target directory final File data = new File("target/test/hdfstestdata").getAbsoluteFile(); @@ -121,7 +118,7 @@ public static void setUp() throws Exception { conf = new Configuration(); conf.set(FileSystem.FS_DEFAULT_NAME_KEY, HDFS_URI); conf.set("hadoop.security.token.service.use_ip", "true"); - conf.setLong(DFSConfigKeys.DFS_BLOCK_SIZE_KEY, 1024 * 1024); // 1M block size + conf.setLong(HdfsClientConfigKeys.DFS_BLOCK_SIZE_KEY, 1024 * 1024); // 1M block size setUmask(conf); diff --git a/commons-vfs2-hdfs/src/test/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProviderTestCase.java b/commons-vfs2-hdfs/src/test/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProviderTestCase.java index b359569706..af060e9180 100644 --- a/commons-vfs2-hdfs/src/test/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProviderTestCase.java +++ b/commons-vfs2-hdfs/src/test/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProviderTestCase.java @@ -36,10 +36,8 @@ import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; -import org.apache.hadoop.hdfs.DFSConfigKeys; import org.apache.hadoop.hdfs.MiniDFSCluster; -import org.apache.log4j.Level; -import org.apache.log4j.Logger; +import org.apache.hadoop.hdfs.client.HdfsClientConfigKeys; import org.junit.Assume; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.condition.DisabledOnOs; @@ -93,7 +91,6 @@ private void copyTestResources(final File directory, final Path parent) throws E protected void setUp() throws Exception { Assume.assumeFalse(SystemUtils.IS_OS_WINDOWS); System.setProperty("test.basedir", "../commons-vfs2/target/test-classes/test-data"); - Logger.getRootLogger().setLevel(Level.OFF); // Put the MiniDFSCluster directory in the target directory final File data = new File("target/test/hdfstestcasedata").getAbsoluteFile(); @@ -105,7 +102,7 @@ protected void setUp() throws Exception { conf = new Configuration(); conf.set(FileSystem.FS_DEFAULT_NAME_KEY, HDFS_URI); conf.set("hadoop.security.token.service.use_ip", "true"); - conf.setLong(DFSConfigKeys.DFS_BLOCK_SIZE_KEY, 1024 * 1024); // 1M block size + conf.setLong(HdfsClientConfigKeys.DFS_BLOCK_SIZE_KEY, 1024 * 1024); // 1M block size HdfsFileProviderTest.setUmask(conf); diff --git a/commons-vfs2-jackrabbit1/pom.xml b/commons-vfs2-jackrabbit1/pom.xml index 15bb401dd9..c28a4960fd 100644 --- a/commons-vfs2-jackrabbit1/pom.xml +++ b/commons-vfs2-jackrabbit1/pom.xml @@ -35,29 +35,14 @@ - - org.apache.commons - commons-vfs2 - - - - org.apache.commons - commons-lang3 - - - - commons-logging - commons-logging - - commons-httpclient commons-httpclient - org.apache.httpcomponents - httpclient + org.apache.commons + commons-vfs2 @@ -66,6 +51,9 @@ ${jackrabbit1.version} + org.apache.commons commons-vfs2 @@ -74,37 +62,8 @@ - org.junit.jupiter - junit-jupiter-engine - test - - - org.junit.vintage - junit-vintage-engine - test - - - - commons-io - commons-io - - - - org.slf4j - slf4j-api - test - - - - org.slf4j - slf4j-log4j12 - 1.5.11 - test - - - - org.slf4j - jcl-over-slf4j + junit + junit test @@ -206,6 +165,26 @@ + + + org.apache.maven.plugins + maven-dependency-plugin + + + verify-undeclared-deps + + + + commons-io:commons-io + + + + commons-io:commons-io + + + + + diff --git a/commons-vfs2-jackrabbit2/pom.xml b/commons-vfs2-jackrabbit2/pom.xml index aef5140d3d..7a1e684f9b 100644 --- a/commons-vfs2-jackrabbit2/pom.xml +++ b/commons-vfs2-jackrabbit2/pom.xml @@ -34,23 +34,24 @@ Apache Commons VFS is a Virtual File System library - Jackrabbit2-based WebDAV provider. - - org.apache.logging.log4j - log4j-slf4j2-impl - test - + org.apache.commons commons-vfs2 - - commons-logging - commons-logging - + org.apache.httpcomponents httpclient + + + org.apache.commons + commons-vfs2 + test-jar + test + + org.apache.jackrabbit jackrabbit-webdav @@ -62,46 +63,84 @@ + + + + commons-chain + commons-chain + test + + - org.apache.commons - commons-vfs2 - test-jar - test + commons-cli + commons-cli + test + - org.junit.jupiter - junit-jupiter-engine + org.apache.jackrabbit + jackrabbit-core test + - org.junit.vintage - junit-vintage-engine + org.apache.jackrabbit + jackrabbit-jcr-commons test + - org.apache.commons - commons-lang3 + org.apache.jackrabbit + jackrabbit-jcr-servlet + test + + + + + org.apache.jackrabbit + jackrabbit-standalone-components + test + + + + xml-apis + xml-apis + + + - commons-io - commons-io + javax.jcr + jcr + test + - org.slf4j - slf4j-api + org.eclipse.jetty + jetty-server test + - org.apache.logging.log4j - log4j-core + org.eclipse.jetty + jetty-servlet test - + - org.apache.jackrabbit - jackrabbit-standalone-components + org.eclipse.jetty + jetty-webapp test + + + junit + junit + test + + @@ -192,6 +231,27 @@ + + + org.apache.maven.plugins + maven-dependency-plugin + + + verify-undeclared-deps + + + + commons-io:commons-io + + + + commons-io:commons-io + org.apache.httpcomponents:httpcore + + + + + diff --git a/commons-vfs2/pom.xml b/commons-vfs2/pom.xml index cf447477d9..8a1b113f17 100644 --- a/commons-vfs2/pom.xml +++ b/commons-vfs2/pom.xml @@ -31,123 +31,132 @@ ../pom.xml + - commons-logging - commons-logging + commons-io + commons-io + - commons-net - commons-net - true + org.apache.commons + commons-lang3 + + + commons-logging + commons-logging + + + org.apache.commons commons-compress true + org.apache.commons commons-collections4 true + commons-httpclient commons-httpclient true + + + commons-net + commons-net + true + + org.apache.httpcomponents - httpclient + httpcore true + org.apache.httpcomponents.core5 httpcore5 true + + + org.apache.httpcomponents + httpclient + true + + org.apache.httpcomponents.client5 httpclient5 true + com.jcraft jsch true - - - org.apache.logging.log4j - log4j-slf4j2-impl - test - - - org.junit.jupiter - junit-jupiter - test - + + - org.junit.vintage - junit-vintage-engine + org.apache.ftpserver + ftplet-api test + - org.mockito - mockito-core + org.apache.ftpserver + ftpserver-core test + - org.apache.commons - commons-lang3 - - - - org.apache.ftpserver - ftpserver-core + + org.openjdk.jmh + jmh-core test + - org.slf4j - slf4j-api + junit + junit test + - org.apache.logging.log4j - log4j-slf4j-impl + org.apache.mina + mina-core test + - org.apache.logging.log4j - log4j-core + org.mockito + mockito-core test - + + org.apache.sshd sshd-core test + + + org.bouncycastle bcprov-jdk16 test - - commons-io - commons-io - - - - org.apache.httpcomponents - httpcore-nio - test - - - - org.openjdk.jmh - jmh-core - test - + @@ -160,10 +169,6 @@ - - - - ${basedir}/src/main/resources @@ -236,6 +241,11 @@ target/test-classes/test-data test-data target/derby.log + + target/classes @@ -248,6 +258,22 @@ + + + org.apache.maven.plugins + maven-dependency-plugin + + + verify-undeclared-deps + + + + org.bouncycastle:bcprov-jdk16 + + + + + diff --git a/pom.xml b/pom.xml index a93b51dbd7..3e8f7f3be8 100644 --- a/pom.xml +++ b/pom.xml @@ -113,6 +113,7 @@ true false false + 1.2.1 2025-02-14T13:36:40Z @@ -275,6 +276,43 @@ ${commons.parent.dir}/findbugs-exclude-filter.xml + + + + org.apache.maven.plugins + maven-dependency-plugin + + + verify-obsolete-exclusions + + analyze-exclusions + + validate + + true + + + + verify-undeclared-deps + + analyze-only + + + true + + + org.apache.logging.log4j:log4j-core + org.apache.logging.log4j:log4j-slf4j2-impl + + org.junit.jupiter:junit-jupiter-api + + + + + @@ -380,6 +418,16 @@ + + commons-chain + commons-chain + 1.2 + + + commons-cli + commons-cli + 1.9.0 + commons-logging commons-logging @@ -405,6 +453,11 @@ commons-httpclient ${httpclient3.version} + + org.apache.httpcomponents + httpcore + 4.4.16 + org.apache.httpcomponents httpclient @@ -453,32 +506,30 @@ org.apache.hadoop - hadoop-hdfs-client + hadoop-common ${hadoop.version} org.apache.hadoop - hadoop-common + hadoop-hdfs ${hadoop.version} - - - * - * - - org.apache.hadoop - hadoop-hdfs + hadoop-hdfs-client ${hadoop.version} - - - * - * - - + + javax.jcr + jcr + 2.0 + + + junit + junit + 4.13.2 + org.junit junit-bom @@ -492,10 +543,15 @@ ${commons.mockito.version} + + org.apache.ftpserver + ftplet-api + ${ftpserver.version} + org.apache.ftpserver ftpserver-core - 1.2.1 + ${ftpserver.version} org.slf4j @@ -549,12 +605,31 @@ + + org.apache.jackrabbit + jackrabbit-core + ${jackrabbit2.version} + + + + org.apache.jackrabbit + jackrabbit-jcr-commons + ${jackrabbit2.version} + + + + org.apache.jackrabbit + jackrabbit-jcr-servlet + ${jackrabbit2.version} + + org.apache.jackrabbit jackrabbit-standalone-components ${jackrabbit2.version} test + org.apache.logging.log4j log4j-bom @@ -568,13 +643,6 @@ hadoop-common ${hadoop.version} test-jar - - - - org.slf4j - slf4j-log4j12 - - org.apache.hadoop @@ -600,9 +668,47 @@ 1.37 test + + + + org.eclipse.jetty + jetty-bom + 9.4.56.v20240826 + pom + import + + + + + + org.junit.jupiter + junit-jupiter-api + test + + + + + org.apache.logging.log4j + log4j-core + test + + + + org.apache.logging.log4j + log4j-slf4j2-impl + test + + + commons.site diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 59a2cbfa88..4e89ab281e 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -50,6 +50,7 @@ The type attribute can be add,update,fix,remove. Rework FTPClientWrapper.disconnect() to remove any chance of a new connection being created on demand. The write buffer size in DefaultFileContent is now 8K instead of 4K. Improve performance of encoding URIs #660. + Fixes optional dependencies in JPMS descriptors. Add org.apache.commons.vfs2.provider.ftp.FTPClientWrapper.sendOptions(String, String). Add FtpFileSystemConfigBuilder.getControlEncodingCharset(FileSystemOptions) and deprecate getControlEncoding(FileSystemOptions).