简体   繁体   English

maven-release-plugin:2.5.1:perform failed: 执行时遇到 API 不兼容

[英]maven-release-plugin:2.5.1:perform failed: An API incompatibility was encountered while executing

maven-release-plugin:2.5.1:perform failed: An API incompatibility was encountered while executing maven-release-plugin:2.5.1:perform failed: 执行时遇到 API 不兼容

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.1:perform (default-cli) on project eq-services-parent: 
Execution default-cli of goal org.apache.maven.plugins:maven-release-plugin:2.5.1:perform failed: An API incompatibility was encountered while executing org.apache.maven.plugins:

maven-release-plugin:2.5.1:perform: java.lang.NoSuchFieldError: SHALLOW

    [ERROR] -----------------------------------------------------
    [ERROR] realm =    plugin>org.apache.maven.plugins:maven-release-plugin:2.5.1
    [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy

Add below dependencies to your parent pom将以下依赖项添加到您的父 pom

<plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-release-plugin</artifactId>
               <version>2.5.1</version>
               <dependencies>
                   <dependency>
                       <groupId>org.apache.maven.scm</groupId>
                       <artifactId>maven-scm-api</artifactId>
                       <version>1.10.0</version>
                   </dependency>
                  <dependency>
                     <groupId>org.apache.maven.scm</groupId>
                     <artifactId>maven-scm-provider-gitexe</artifactId>
                     <version>1.10.0</version>
                  </dependency>
               </dependencies>
               <configuration>
                  <localCheckout>true</localCheckout>
                  <autoVersionSubmodules>true</autoVersionSubmodules>
               </configuration>
</plugin>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 nexus-staging-maven-plugin:maven 部署失败:执行时遇到 API 不兼容 - nexus-staging-maven-plugin: maven deploy failed: An API incompatibility was encountered while executing maven-help-plugin:2.1.1:effective-settings failed: 执行时遇到 API 不兼容 - maven-help-plugin:2.1.1:effective-settings failed: An API incompatibility was encountered while executing org.sonarsource.scanner.maven:sonar-maven-plugin:3.8.0.2131:sonar 失败:执行时遇到 API 不兼容问题 - org.sonarsource.scanner.maven:sonar-maven-plugin:3.8.0.2131:sonar failed: An API incompatibility was encountered while executing Maven 构建失败并出现错误:执行 com.cosium.code:git-code-format-maven-plugin 时遇到 API 不兼容 - Maven build fails with error: An API incompatibility was encountered while executing com.cosium.code:git-code-format-maven-plugin Hudson和maven-release-plugin - Hudson and maven-release-plugin 执行 org.apache.maven.plugins:maven-shade-plugin:1.3.1:shade: java.lang.AbstractMethodError: null 时遇到 API 不兼容 - An API incompatibility was encountered while executing org.apache.maven.plugins:maven-shade-plugin:1.3.1:shade: java.lang.AbstractMethodError: null maven-release-plugin和Arquillian - maven-release-plugin and Arquillian maven-release-plugin 标签创建 - maven-release-plugin tag creation 如何将CVS与maven-release-plugin一起使用? - How to use CVS with the maven-release-plugin? 在maven-release-plugin中添加SVN参数 - Adding SVN arguments in maven-release-plugin
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM