简体   繁体   English

无法执行目标org.apache.maven.plugins:maven-site-plugin:3.7:site(default-cli):常量池中的无效字节标记:18

[英]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.

相关问题 jenkins无法执行目标org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare(default-cli) - jenkins Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare (default-cli) 无法执行目标 org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate (default-cli) - Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate (default-cli) 无法执行目标org.apache.maven.plugins:maven - Failed to execute goal org.apache.maven.plugins:maven Maven:无法执行目标 org.apache.maven.plugins:maven-resources-plugin:2.7:resources - Maven:Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.7:resources Maven 3:无法执行目标org.apache.maven.plugins:maven-archetype-plugin:2.2:generate - Maven 3: Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate Maven 构建错误 - 无法执行目标 org.apache.maven.plugins:maven-assembly-plugin:2.5.5 - Maven build error - Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5.5 Maven:未能执行目标 org.apache.maven.plugins:maven-compiler-plugin:3.10.1compile: - Maven: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile MAVEN 错误:“无法执行目标 org.apache.maven.plugins:maven-clean-plugin:3.2.0:clean” - MAVEN ERROR : "Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:3.2.0:clean " Maven - 未能执行目标 org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean - Maven - Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean 未能执行目标 org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile: 无效的目标版本:11 - Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile : invalid target release: 11
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM