开发者

Maven Error: Plugin's descriptor contains the wrong version

开发者 https://www.devze.com 2023-02-07 19:39 出处:网络
I\'m trying to release a project with a custom plug-in dependency. And maven throws an error saying, [INFO] [INFO] Internal error in the

I'm trying to release a project with a custom plug-in dependency. And maven throws an error saying,

[INFO] [INFO] Internal error in the 开发者_运维技巧 plugin manager getting plugin 'com.xxx.xxx.tools:generate-xxx-config': Plugin 'com.xxx.xxx.tools:generate-xxx-config:0.0.1' has an invalid descriptor: [INFO] 1) Plugin's descriptor contains the wrong version: 0.0.1-SNAPSHOT

Any help will be greatly appreciated.


Inside plugin jar there is a plugin.xml file that contains the plugin version. From 2.2 Maven validates that value from file matches the one from pom and directory structure.


Ok. This is what I found. I was using maven version 2.2.1. I changed it to 2.0.11 and it worked.

Cannot fathom why it did not work with 2.2.1.

0

精彩评论

暂无评论...
验证码 换一张
取 消