|
@@ -68,6 +68,10 @@
|
|
|
<artifactId>protobuf-java</artifactId>
|
|
|
<groupId>com.google.protobuf</groupId>
|
|
|
</exclusion>
|
|
|
+ <exclusion>
|
|
|
+ <artifactId>guava</artifactId>
|
|
|
+ <groupId>com.google.guava</groupId>
|
|
|
+ </exclusion>
|
|
|
</exclusions>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
@@ -174,11 +178,11 @@
|
|
|
<artifactId>commons-compiler</artifactId>
|
|
|
<version>3.0.16</version>
|
|
|
</dependency>
|
|
|
- <!-- <dependency>-->
|
|
|
- <!-- <groupId>com.google.guava</groupId>-->
|
|
|
- <!-- <artifactId>guava</artifactId>-->
|
|
|
- <!-- <version>14.0.1</version>-->
|
|
|
- <!-- </dependency>-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.google.guava</groupId>
|
|
|
+ <artifactId>guava</artifactId>
|
|
|
+ <version>${guava.version}</version>
|
|
|
+ </dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.scala-lang</groupId>
|
|
|
<artifactId>scala-library</artifactId>
|
|
@@ -195,6 +199,16 @@
|
|
|
<groupId>io.milvus</groupId>
|
|
|
<artifactId>milvus-sdk-java</artifactId>
|
|
|
<version>2.4.9</version>
|
|
|
+ <exclusions>
|
|
|
+ <exclusion>
|
|
|
+ <artifactId>grpc-api</artifactId>
|
|
|
+ <groupId>io.grpc</groupId>
|
|
|
+ </exclusion>
|
|
|
+ <exclusion>
|
|
|
+ <artifactId>guava</artifactId>
|
|
|
+ <groupId>com.google.guava</groupId>
|
|
|
+ </exclusion>
|
|
|
+ </exclusions>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.projectlombok</groupId>
|
|
@@ -227,13 +241,24 @@
|
|
|
<artifactId>recommend-model-jni</artifactId>
|
|
|
<version>1.0.0</version>
|
|
|
</dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>io.grpc</groupId>
|
|
|
+ <artifactId>grpc-api</artifactId>
|
|
|
+ <version>1.59.1</version>
|
|
|
+ <exclusions>
|
|
|
+ <exclusion>
|
|
|
+ <artifactId>guava</artifactId>
|
|
|
+ <groupId>com.google.guava</groupId>
|
|
|
+ </exclusion>
|
|
|
+ </exclusions>
|
|
|
+ </dependency>
|
|
|
</dependencies>
|
|
|
<build>
|
|
|
<plugins>
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
|
- <version>3.2.3</version>
|
|
|
+ <version>3.6.0</version>
|
|
|
<executions>
|
|
|
<execution>
|
|
|
<phase>package</phase>
|
|
@@ -241,10 +266,17 @@
|
|
|
<goal>shade</goal>
|
|
|
</goals>
|
|
|
<configuration>
|
|
|
+<!-- <artifactSet>-->
|
|
|
+<!-- <includes>-->
|
|
|
+<!-- <include>io.grpc:grpc-api</include>-->
|
|
|
+<!-- <include>com.google.guava:guava</include>-->
|
|
|
+<!-- </includes>-->
|
|
|
+<!-- </artifactSet>-->
|
|
|
+<!-- <keepDependenciesWithProvidedScope>false</keepDependenciesWithProvidedScope>-->
|
|
|
<relocations>
|
|
|
<relocation>
|
|
|
- <pattern>com.google.common.*</pattern>
|
|
|
- <shadedPattern>shade.com.google.common.*</shadedPattern>
|
|
|
+ <pattern>com.google.common</pattern>
|
|
|
+ <shadedPattern>shade.com.google.common</shadedPattern>
|
|
|
</relocation>
|
|
|
</relocations>
|
|
|
<filters>
|
|
@@ -268,26 +300,26 @@
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
<!-- maven-assembly-plugin配置 -->
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-assembly-plugin</artifactId>
|
|
|
- <version>2.5.5</version>
|
|
|
- <configuration>
|
|
|
- <descriptorRefs>
|
|
|
- <descriptorRef>jar-with-dependencies</descriptorRef>
|
|
|
- </descriptorRefs>
|
|
|
- <finalName>${project.name}</finalName>
|
|
|
- </configuration>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>make-assembly</id>
|
|
|
- <phase>package</phase>
|
|
|
- <goals>
|
|
|
- <goal>single</goal>
|
|
|
- </goals>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
+ <!-- <plugin>-->
|
|
|
+ <!-- <groupId>org.apache.maven.plugins</groupId>-->
|
|
|
+ <!-- <artifactId>maven-assembly-plugin</artifactId>-->
|
|
|
+ <!-- <version>2.5.5</version>-->
|
|
|
+ <!-- <configuration>-->
|
|
|
+ <!-- <descriptorRefs>-->
|
|
|
+ <!-- <descriptorRef>jar-with-dependencies</descriptorRef>-->
|
|
|
+ <!-- </descriptorRefs>-->
|
|
|
+ <!-- <finalName>${project.name}</finalName>-->
|
|
|
+ <!-- </configuration>-->
|
|
|
+ <!-- <executions>-->
|
|
|
+ <!-- <execution>-->
|
|
|
+ <!-- <id>make-assembly</id>-->
|
|
|
+ <!-- <phase>package</phase>-->
|
|
|
+ <!-- <goals>-->
|
|
|
+ <!-- <goal>single</goal>-->
|
|
|
+ <!-- </goals>-->
|
|
|
+ <!-- </execution>-->
|
|
|
+ <!-- </executions>-->
|
|
|
+ <!-- </plugin>-->
|
|
|
<plugin>
|
|
|
<groupId>net.alchim31.maven</groupId>
|
|
|
<artifactId>scala-maven-plugin</artifactId>
|