build: 手动引入dubbo的jar,避免 java.lang.NoClassDefFoundError
This commit is contained in:
parent
db940117f4
commit
ea55f280f1
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue