Skip to content

Commit

Permalink
将强依赖于mysql驱动包的模块,移入seata-plugin,由用户自行打包。
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 committed Nov 21, 2023
1 parent 6595e6b commit 8f56510
Show file tree
Hide file tree
Showing 13 changed files with 8 additions and 25 deletions.
10 changes: 0 additions & 10 deletions all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -189,16 +189,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.seata</groupId>
<artifactId>seata-rm-datasource-mysql5</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.seata</groupId>
<artifactId>seata-rm-datasource-mysql8</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.seata</groupId>
<artifactId>seata-sqlparser-core</artifactId>
Expand Down
10 changes: 0 additions & 10 deletions bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -198,16 +198,6 @@
<artifactId>seata-rm-datasource</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.seata</groupId>
<artifactId>seata-rm-datasource-mysql5</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.seata</groupId>
<artifactId>seata-rm-datasource-mysql8</artifactId>
<version>${project.version}</version>
</dependency>
<!-- the 'seata-server' is an application, not a dependency
<dependency>
<groupId>io.seata</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author wang.liang
*/
public class DependsOnException extends Exception {
class DependsOnException extends Exception {

public DependsOnException(String message) {
super(message);
Expand Down
2 changes: 0 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@
<module>integration/brpc</module>
<module>rm</module>
<module>rm-datasource</module>
<module>rm-datasource-mysql5</module>
<module>rm-datasource-mysql8</module>
<module>spring</module>
<module>tcc</module>
<module>test</module>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ protected TableMeta resultSetMetaToSchema(Connection connection, Statement stmt,
* 1. show full columns from xxx from xxx(normal)
* 2. select xxx from xxx where catalog_name like ? and table_name like ?(informationSchema=true)
*/

try (ResultSet rsColumns = dbmd.getColumns(catalogName, schemaName, tableName, "%");
ResultSet rsIndex = dbmd.getIndexInfo(catalogName, schemaName, tableName, false, true);
ResultSet onUpdateColumns = dbmd.getVersionColumns(catalogName, schemaName, tableName)) {
Expand Down
2 changes: 2 additions & 0 deletions seata-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@

<modules>
<module>seata-jackson-parser-oracle</module>
<module>seata-rm-datasource-mysql5</module>
<module>seata-rm-datasource-mysql8</module>
</modules>

<repositories>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>io.seata</groupId>
<artifactId>seata-parent</artifactId>
<artifactId>seata-plugin</artifactId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand All @@ -39,6 +39,7 @@
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql5.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>io.seata</groupId>
<artifactId>seata-parent</artifactId>
<artifactId>seata-plugin</artifactId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand All @@ -39,6 +39,7 @@
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql8.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>

0 comments on commit 8f56510

Please sign in to comment.