Maven 依赖项中的冲突未得到解决
Conflict in Maven Dependencies not getting resolved
我正在为 Google 语音和 Google 自然语言处理使用 Google 云 API。我为两者使用的版本如下:
google-cloud-speech: 0.13.0-alpha
google-cloud-language: 0.9.4-alpha
并且它们都使用 google-gax api 作为内部依赖项。语音 api 使用 gax 版本 0.10.0,语言 api 使用 0.1.4。
在 pom 中,我有提供的依赖范围。所以出于这个原因,我在服务器的 lib 文件夹中提供了 jars。
但问题在于 gax api。问题是:
When i provide the gax version 0.10.0, the speech api works but language api does not work.
If the gax version 0.1.4 is provided, then language api works but the speech apis doesn't works.
And if both the version are provided, then only speech api works.
有什么解决问题的建议吗?我已经尝试了一切,即清理项目、更新 maven、重新部署项目、删除所有 maven 依赖项并重建。但是没有解决问题。
更改 google-云语言效果很好。现在将语言版本更新为
google-cloud-language-0.13.0-alpha
一切顺利。原因是这个版本使用了gax-0.10.0,从而解决了冲突。
我正在为 Google 语音和 Google 自然语言处理使用 Google 云 API。我为两者使用的版本如下:
google-cloud-speech: 0.13.0-alpha
google-cloud-language: 0.9.4-alpha
并且它们都使用 google-gax api 作为内部依赖项。语音 api 使用 gax 版本 0.10.0,语言 api 使用 0.1.4。 在 pom 中,我有提供的依赖范围。所以出于这个原因,我在服务器的 lib 文件夹中提供了 jars。
但问题在于 gax api。问题是:
When i provide the gax version 0.10.0, the speech api works but language api does not work.
If the gax version 0.1.4 is provided, then language api works but the speech apis doesn't works.
And if both the version are provided, then only speech api works.
有什么解决问题的建议吗?我已经尝试了一切,即清理项目、更新 maven、重新部署项目、删除所有 maven 依赖项并重建。但是没有解决问题。
更改 google-云语言效果很好。现在将语言版本更新为
google-cloud-language-0.13.0-alpha
一切顺利。原因是这个版本使用了gax-0.10.0,从而解决了冲突。