[英]Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.7:site (default-cli): Invalid byte tag in constant pool: 18
As I am not expert for maven, I'm a bit lost here. 因为我不是行家的专家,所以我在这里有点迷失了。 We have projects which fail with the following error
我们的项目失败,并出现以下错误
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.7:site (default-cli) on project xxxx: Execution default-cli of goal org.apache.maven.plugins:maven-site-plugin:3.7:site failed: Invalid byte tag in constant pool: 18 -> [Help 1]
when executing this command 执行此命令时
mvn site:site site-deploy -e -U
This occurs since we switched to java 8 and to my understanding it is somehow related to Java 8 and BCEL . 发生这种情况是因为我们切换到Java 8,并且据我所知,它与Java 8和BCEL有某种关系。 However the message in the bug report is not exactly the same so I am not sure how or what do I have to configure to overcome the problem.
但是, 错误报告中的消息并不完全相同,因此我不确定如何或如何配置才能解决此问题。
Here the essential info on how we have configured the site-plugin in the parent pom: 这里是有关我们如何在父pom中配置站点插件的基本信息:
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.6</version>
<configuration>
<locales>en</locales>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-webdav-jackrabbit</artifactId>
<version>${wagon.webdav.version}</version>
</dependency>
</dependencies>
Actually a rather stupid error. 实际上是一个相当愚蠢的错误。 The issue was with the used clirr which was 2.3
问题是使用的clirr是2.3
08:26:16 [INFO] <<< clirr-maven-plugin:2.3:clirr < compile @ xxxxx <<<
Actually clirr was configured in the parent pom to use 2.8 实际上,在父pom中将clirr配置为使用2.8
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>clirr-maven-plugin</artifactId>
<version>2.8</version>
</plugin>
However, in the local maven repository there was still an outdated parent pom which refered to 2.3 instead 2.8. 但是,在本地Maven存储库中,仍然有一个过时的父pom,它引用2.3而不是2.8。 Deleting the parent pom from the local repo forced the re-download of the parent pom and now we are using the correct configuration
从本地存储库中删除父pom会强制重新下载父pom,现在我们使用的是正确的配置
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.