首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >目标org.apache.maven.plugins:maven-dependency-plugin:3.0.0:analyze-only的执行分析失败:此功能需要ASM7

目标org.apache.maven.plugins:maven-dependency-plugin:3.0.0:analyze-only的执行分析失败:此功能需要ASM7
EN

Stack Overflow用户
提问于 2019-08-01 21:17:10
回答 1查看 804关注 0票数 1

我正在使用open jdk-11。当我运行maven时,我得到以下错误:

代码语言:javascript
复制
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.0.0:analyze-only (analyze) on project mobilefabric-install-common: Execution analyze of goal org.apache.maven.plugins:maven-dependency-plugin:3.0.0:analyze-only failed: This feature requires ASM7 -> [Help 1]


org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.0.0:analyze-only (analyze) on project mobilefabric-install-common: Execution analyze of goal org.apache.maven.plugins:maven-dependency-plugin:3.0.0:analyze-only failed: This feature requires ASM7

Maven版本: 3.6.1

pom.xml

代码语言:javascript
复制
<artifactId>maven-dependency-plugin</artifactId>
<version>3.1.1</version>
<dependencies> 
  <dependency> 
   <groupId>org.ow2.asm</groupId> 
   <artifactId>asm</artifactId> 
   <version>7.2-beta</version> 
  </dependency> 
</dependencies>
EN

回答 1

Stack Overflow用户

发布于 2019-11-13 05:22:25

此配置适用于我的Java 11:

代码语言:javascript
复制
<plugin>
  <artifactId>maven-dependency-plugin</artifactId>
  <version>3.1.1</version>
  <dependencies>
    <dependency>
      <groupId>org.apache.maven.shared</groupId>
      <artifactId>maven-dependency-analyzer</artifactId>
      <version>1.11.1</version>
    </dependency>
  </dependencies>
</plugin>

来源:MDEP-613上的Rune Flobakk's comment

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57309914

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档