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.
精彩评论