Skip to content

Commit

Permalink
去掉agent中mybatis依赖,最小化方式实现
Browse files Browse the repository at this point in the history
  • Loading branch information
yinjihuan committed May 14, 2022
1 parent 6e09124 commit d4f93f6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
11 changes: 0 additions & 11 deletions fox-mock-agent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,6 @@
<groupId>ognl</groupId>
<artifactId>ognl</artifactId>
</dependency>

<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.5.6</version>
</dependency>
</dependencies>
<build>
<plugins>
Expand Down Expand Up @@ -115,10 +109,6 @@
<pattern>ognl</pattern>
<shadedPattern>com.cxytiandi.foxmock.agent.ognl</shadedPattern>
</relocation>
<relocation>
<pattern>org.mybatis</pattern>
<shadedPattern>com.cxytiandi.foxmock.agent.mybatis</shadedPattern>
</relocation>
</relocations>
<artifactSet>
<includes>
Expand All @@ -129,7 +119,6 @@
<include>ch.qos.logback:logback-core</include>
<include>com.alibaba.arthas:arthas-repackage-logger</include>
<include>ognl:ognl</include>
<include>org.mybatis:mybatis</include>
</includes>
</artifactSet>
<filters>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package org.apache.ibatis.mapping;


public final class MappedStatement {

private String id;

public void setId(String id) {
this.id = id;
}

public String getId() {
return id;
}
}
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<logback-classic.version>1.2.11</logback-classic.version>
<logback-core.version>1.2.11</logback-core.version>
<ognl.version>3.1.19</ognl.version>
<mybatis.version>3.5.6</mybatis.version>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -65,6 +66,11 @@
<artifactId>ognl</artifactId>
<version>${ognl.version}</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>${mybatis.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
</project>

0 comments on commit d4f93f6

Please sign in to comment.