InfluxDB 2.0.9版本应该需要什么版本的Guava库?
时间: 2023-09-25 14:14:02 浏览: 48
根据 InfluxDB 2.0.9 的官方文档,该版本的 InfluxDB 使用 Guava 版本为 30.1-jre。因此,你应该使用 Guava 30.1-jre 版本的库与 InfluxDB 2.0.9 进行兼容。
你可以在 Maven 或 Gradle 构建文件中添加以下依赖项来引入 Guava 30.1-jre:
Maven:
```xml
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>30.1-jre</version>
</dependency>
```
Gradle:
```groovy
implementation 'com.google.guava:guava:30.1-jre'
```
请确保更新你的构建文件中的依赖项,并重新构建你的项目,以确保使用了正确的 Guava 版本。
相关问题
kafka与springboot版本对应
Kafka与Spring Boot的版本对应可以参考以下对照表:
| Kafka版本 | Spring Boot版本 |
|:--------:|:--------------:|
| 0.10.x.x | 1.5.x - 1.5.22.RELEASE |
| 1.0.x - 1.1.x | 2.0.x - 2.0.9.RELEASE |
| 2.0.x - 2.1.x | 2.1.x - 2.1.15.RELEASE |
| 2.2.x | 2.2.x - 2.2.10.RELEASE |
| 2.3.x | 2.3.x - 2.3.9.RELEASE |
| 2.4.x | 2.4.x - 2.4.5.RELEASE |
| 2.5.x | 2.5.x - 2.5.4.RELEASE |
| 2.6.x | 2.6.x - 2.6.1.RELEASE |
请注意,这只是一个大致的对照表,具体的版本兼容性还需要根据实际情况和需求来确定。
java程序 通过nexus获取指定组件全部版本信息
您可以使用 Maven 命令来获取 Nexus 上指定组件的全部版本信息。假设您要获取的组件名称为 `com.example:example-component`,则可以运行以下命令:
```
mvn org.apache.maven.plugins:maven-metadata.xml:2.0.9:resolve -DgroupId=com.example -DartifactId=example-component -Dversion=LATEST -DremoteRepositories=https://<nexus-url>/repository/maven-public/ -DrepositoryId=nexus
```
其中,`<nexus-url>` 是 Nexus 服务器的地址,`-Dversion=LATEST` 表示获取最新的版本信息。如果您想获取所有的版本信息,则需要指定一个不存在的版本号,例如:
```
mvn org.apache.maven.plugins:maven-metadata.xml:2.0.9:resolve -DgroupId=com.example -DartifactId=example-component -Dversion=RELEASE -DremoteRepositories=https://<nexus-url>/repository/maven-public/ -DrepositoryId=nexus
```
此时,Maven 会列出 Nexus 上指定组件的所有版本信息。
相关推荐
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)