diff --git a/history/latest/2474.md b/history/latest/2474.md new file mode 100644 index 000000000..b1a9ef4ae --- /dev/null +++ b/history/latest/2474.md @@ -0,0 +1,5 @@ +- **[repo]** Fixed duplicate classes on the classpath of an application that uses `com.clickhouse:clickhouse-jdbc-all`. + The jar of this artifact contains all its dependencies, but its POM also declared them, so Maven added + `clickhouse-jdbc` (classifier `all`), `jdbc-v2`, `client-v2`, `clickhouse-data` and the third-party jars next to it. + The POM now declares no dependencies, so tools that read the POM no longer list the bundled libraries. + (https://github.com/ClickHouse/clickhouse-java/issues/2474) diff --git a/packages/clickhouse-jdbc-all/pom.xml b/packages/clickhouse-jdbc-all/pom.xml index e610e4829..d02ea4026 100644 --- a/packages/clickhouse-jdbc-all/pom.xml +++ b/packages/clickhouse-jdbc-all/pom.xml @@ -96,6 +96,12 @@ org.codehaus.mojo flatten-maven-plugin + + + + remove + + flatten