【发布时间】:2017-04-21 02:10:32
【问题描述】:
我已经使用 protoc 3.2 编译器编译了我的 Protoc 文件。当我尝试将它与下面显示的 maven 依赖项一起使用时,POM 文件给了我错误,并且所有依赖项都没有解决。想知道我应该使用的正确版本的 grpc-all 与使用 protoc 编译器 3.2.0 生成的 Java 代码兼容
我的 pom 文件看起来像:
<dependencies>
<!-- https://mvnrepository.com/artifact/io.grpc/grpc-all -->
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-all</artifactId>
<version>1.3.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
【问题讨论】:
-
请提供“但所有依赖项均未解决”的错误消息。
-
嗨,Eric,我编辑了问题并附上了我收到的错误消息的屏幕截图。在我看来,这可能是 Maven 排除问题,因为我使用 0.15.0 版本的 grpc-all jar 文件配置了其他项目。