Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does this mean: Not a v4.0.0 POM. for project org.codehaus.mojo:rpm-maven-plugin

I'm afraid I just don't know what this error means, besides that there is an error. I was able to build jars before, but this is my first time using the rpm-maven-plugin.

I would like to create an rpm, but so far using the rpm-maven-plugin has resulted in errors.

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.codehaus.mojo:rpm-maven-plugin
POM Location: C:\Users\<my name>\.m2\repository\org\codehaus\mojo\rpm-maven-plug
in\2.0.1\rpm-maven-plugin-2.0.1.pom

Reason: Not a v4.0.0 POM. for project org.codehaus.mojo:rpm-maven-plugin at C:\U
sers\<my name>\.m2\repository\org\codehaus\mojo\rpm-maven-plugin\2.0.1\rpm-maven
-plugin-2.0.1.pom
like image 846
MedicineMan Avatar asked Mar 17 '14 09:03

MedicineMan


2 Answers

The problem was exactly as the error stated. I went to my respository and opened the POM file at the path above. I realize that somehow the POM file was downloaded while I was not authenticated against one of our internal systems.

So even though a file existed, the pom file only contained an error message.

After deleting the file at the path and restarting the build, the build was successful.

like image 191
MedicineMan Avatar answered Nov 12 '22 08:11

MedicineMan


I found that I was missing the ~/.m2/settings.xml file. Once I got that file, I was able to use maven just fine.

like image 38
tommy Avatar answered Nov 12 '22 06:11

tommy