build: 手动引入dubbo的jar,避免 java.lang.NoClassDefFoundError

This commit is contained in:
CaptainB 2022-03-22 10:54:15 +08:00 committed by shiziyuan9527
parent db940117f4
commit ea55f280f1
1 changed files with 14 additions and 0 deletions

View File

@ -18,6 +18,7 @@
<shiro.version>1.8.0</shiro.version>
<java.version>11</java.version>
<flyway.version>7.15.0</flyway.version>
<dubbo.version>2.7.15</dubbo.version>
</properties>
<dependencies>
@ -165,6 +166,19 @@
</exclusions>
</dependency>
<!-- 手动引入,不然会有 java.lang.NoClassDefFoundError: Could not initialize class org.apache.dubbo.config.ReferenceConfig -->
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo</artifactId>
<version>${dubbo.version}</version>
<exclusions>
<exclusion>
<artifactId>spring-context</artifactId>
<groupId>org.springframework</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- 排除jmeter中的 xstream 解决bug -->
<dependency>
<groupId>com.thoughtworks.xstream</groupId>