废话不多说直接上报错
代码位置选中的第70行的报错
显然这个问题不是我写错了,而是低版本的兼容问题
插件在1.16的版本上并没有此bug
我从网上搜了一下都说是guava的问题,要更新guava版本
但是我的guava已经是最新的了

代码位置选中的第70行的报错

显然这个问题不是我写错了,而是低版本的兼容问题
插件在1.16的版本上并没有此bug
我从网上搜了一下都说是guava的问题,要更新guava版本
但是我的guava已经是最新的了

本帖最后由 克鲁鲁殿下 于 2022-3-22 12:16 编辑
有没有一种可能,1.8.8这种六七年前的服务端,不支持最新版的guava,反而需要老一点的版本。。。。
复制代码
1.8.8服务端中有关guava的xml文件
也许你要用17.0这种版本()
复制代码pom.properties文件
有没有一种可能,1.8.8这种六七年前的服务端,不支持最新版的guava,反而需要老一点的版本。。。。
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>com.google.guava</groupId>
- <artifactId>guava-parent</artifactId>
- <version>17.0</version>
- </parent>
- <artifactId>guava</artifactId>
- <name>Guava: Google Core Libraries for Java</name>
- <packaging>bundle</packaging>
- <description>
- Guava is a suite of core and expanded libraries that include
- utility classes, google's collections, io classes, and much
- much more.
- Guava has only one code dependency - javax.annotation,
- per the JSR-305 spec.
- </description>
- <dependencies>
- <dependency>
- <groupId>com.google.code.findbugs</groupId>
- <artifactId>jsr305</artifactId>
- <optional>true</optional><!-- needed only for annotations -->
- </dependency>
- <!-- TODO(cpovirk): want this only for dependency plugin but seems not to work there? Maven runs without failure, but the resulting Javadoc is missing the hoped-for inherited text -->
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <version>2.3.7</version>
- <extensions>true</extensions>
- <executions>
- <execution>
- <id>bundle-manifest</id>
- <phase>process-classes</phase>
- <goals>
- <goal>manifest</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <instructions>
- <Export-Package>!com.google.common.base.internal,com.google.common.*</Export-Package>
- <Import-Package>
- javax.annotation;resolution:=optional,
- javax.inject;resolution:=optional,
- sun.misc.*;resolution:=optional
- </Import-Package>
- </instructions>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- </plugin>
- <plugin>
- <artifactId>maven-source-plugin</artifactId>
- </plugin>
- <!-- TODO(cpovirk): include JDK sources when building testlib doc, too -->
- <plugin>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>unpack-jdk-sources</id>
- <phase>site</phase>
- <goals><goal>unpack-dependencies</goal></goals>
- <configuration>
- <includeArtifactIds>srczip</includeArtifactIds>
- <overWrite>true</overWrite>
- <outputDirectory>${project.build.directory}/jdk-sources</outputDirectory>
- <silent>false</silent>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>animal-sniffer-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <configuration>
- <encoding>UTF-8</encoding>
- <docencoding>UTF-8</docencoding>
- <charset>UTF-8</charset>
- <additionalparam>-XDignore.symbol.file</additionalparam>
- <excludePackageNames>com.google.common.base.internal</excludePackageNames>
- <linksource>true</linksource>
- <links>
- <link>http://jsr-305.googlecode.com/svn/trunk/javadoc</link>
- <link>http://docs.oracle.com/javase/7/docs/api/</link>
- </links>
- <!-- TODO(cpovirk): can we use includeDependencySources and a local com.oracle.java:jdk-lib:noversion:sources instead of all this unzipping and manual sourcepath modification? -->
- <sourcepath>${project.build.sourceDirectory}:${project.build.directory}/jdk-sources</sourcepath>
- <subpackages>com.google.common</subpackages>
- </configuration>
- <executions>
- <execution>
- <id>attach-docs</id>
- </execution>
- <execution>
- <id>generate-javadoc-site-report</id>
- <phase>site</phase>
- <goals><goal>javadoc</goal></goals>
- </execution>
- <execution>
- <id>generate-jdiff-site-report</id>
- <phase>site</phase>
- <goals><goal>javadoc</goal></goals>
- <configuration>
- <doclet>jdiff.JDiff</doclet>
- <docletPath>${project.basedir}/lib/jdiff.jar</docletPath>
- <additionalparam>
- -XDignore.symbol.file -apiname 'Guava ${project.version}'
- </additionalparam>
- <useStandardDocletOptions>false</useStandardDocletOptions>
- <reportOutputDirectory>${project.reporting.outputDirectory}</reportOutputDirectory>
- <destDir>jdiff</destDir>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <profiles>
- <profile>
- <id>srczip</id>
- <activation>
- <file>
- <exists>${java.home}/../src.zip</exists>
- </file>
- </activation>
- <dependencies>
- <dependency>
- <groupId>jdk</groupId>
- <artifactId>srczip</artifactId>
- <version>999</version>
- <scope>system</scope>
- <systemPath>${java.home}/../src.zip</systemPath>
- <optional>true</optional>
- </dependency>
- </dependencies>
- </profile>
- </profiles>
- </project>
1.8.8服务端中有关guava的xml文件
也许你要用17.0这种版本()
- #Generated by org.apache.felix.bundleplugin
- #Tue Apr 22 16:47:33 EDT 2014
- version=17.0
- groupId=com.google.guava
- artifactId=guava
克鲁鲁殿下 发表于 2022-3-22 12:15
有没有一种可能,1.8.8这种六七年前的服务端,不支持最新版的guava,反而需要老一点的版本。。。。
1.8.8 ...
好的我试一下
如果是第三方包,是否考虑了一起打包?(我的拙见,不代表说的正确)
WekyJay 发表于 2022-3-22 12:38
如果是第三方包,是否考虑了一起打包?(我的拙见,不代表说的正确)
用的是maven里头写的depend
我觉得应该是没有问题的,因为在高版本没有这个问题
有没有一种可能,我看不懂()