我每次运行 mvn clean install 都会收到一个非常烦人的错误。

huangapple go评论69阅读模式
英文:

I keep getting a really annoying error everytime I run mvn clean install

问题

I keep getting a

> 执行目标时失败
> org.apache.maven.plugins:maven-shade-plugin:2.1:shade (默认) 于
> 项目 PermissionsPlugin 上:创建阴影 jar 时出错:在处理类 net/perms/commands/rank/deleteRank.class 的 ASM 中出现
> 错误。

我无法弄清楚发生了什么,因为当我在Intellij中构建时没有任何错误。我使用Maven构建的原因是为了进行阴影处理,如果你想知道的话。有关如何解决此问题的任何建议吗?

英文:

I keep getting a

> Failed to execute goal
> org.apache.maven.plugins:maven-shade-plugin:2.1:shade (default) on
> project PermissionsPlugin: Error creating shaded jar: Error in ASM
> processing class net/perms/commands/rank/deleteRank.class" error.

I can't figure out what is happening, as Intellij isn't giving me any errors when I build with it. The reason I build with maven is to shade, in case you were wondering. Any suggestions on how to fix this?

答案1

得分: 1

解决方案是更新Maven shade插件。

英文:

The solution was to update the Maven shade plugin.

答案2

得分: 0

我找到了问题。我的Maven Shade插件不是最新的... 这个错误在一段时间前被Maven修复了。

英文:

I found out my issue. My maven shade plugin wasn't up to date... The error has been fixed by Maven a while ago.

huangapple
  • 本文由 发表于 2020年9月28日 10:27:58
  • 转载请务必保留本文链接:https://go.coder-hub.com/64095197.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定