Skip to content

Commit

Permalink
remove mysql-oracle dependency jar from release package lib (#1680)
Browse files Browse the repository at this point in the history
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Co-authored-by: 花城 <71161318+wang1027-wqh@users.noreply.github.com>
  • Loading branch information
tomsun28 and wang1027-wqh authored Mar 22, 2024
1 parent bacc5a6 commit a53c748
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions collector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>provided</scope>
</dependency>
<!-- clickhouse -->
<dependency>
Expand Down Expand Up @@ -147,10 +148,12 @@
<dependency>
<groupId>com.oracle.database.jdbc</groupId>
<artifactId>ojdbc8</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.oracle.database.nls</groupId>
<artifactId>orai18n</artifactId>
<scope>provided</scope>
</dependency>
<!--redis-->
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,12 @@ public class JdbcSpiLoader implements CommandLineRunner {
public void run(String... args) throws Exception {
log.info("start load jdbc drivers");
try {
Class.forName("com.mysql.cj.jdbc.Driver");
Class.forName("org.postgresql.Driver");
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
Class.forName("oracle.jdbc.driver.OracleDriver");
Class.forName("dm.jdbc.driver.DmDriver");
Class.forName("com.clickhouse.jdbc.ClickHouseDriver");
} catch (Exception e) {
log.error("load jdbc error: {}", e.getMessage(), e);
log.error("load jdbc error: {}", e.getMessage());
}
log.info("end load jdbc drivers");
}
Expand Down
1 change: 1 addition & 0 deletions manager/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>provided</scope>
</dependency>
<!-- email -->
<dependency>
Expand Down

0 comments on commit a53c748

Please sign in to comment.