Maven Error: Plugin's descriptor contains the wrong version

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.

Upvotes: 2

Views: 5344

Answers (2)

user158037
user158037

Reputation: 2603

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.

Upvotes: 2

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.

Upvotes: 1

Related Questions