Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

maven : Failed to install metadata project Could not parse metadata maven-metadata-local.xml: only whitespace content allowed before start tag

Got this error when I was trying to build a project which I just downloaded from SVN.

Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install (default-install) on project : Failed to install metadata project:1.0-SNAPSHOT/maven-metadata.xml: Could not parse metadata C:\Users.m2\project\1.0-SNAPSHOT\maven-metadata-local.xml: only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1) -> [Help 1]

like image 954
jeraldfdo Avatar asked Sep 24 '14 19:09

jeraldfdo


People also ask

What is the name of the metadata file in Maven?

The metadata file name is: maven-metadata.xml in a remote repository, maven-metadata-<repo-id>.xml in a local repository, for metatada from a repository with repo-id identifier. The following are generated from this model:

What are the Maven build errors?

Maven build error is occured in simple maven file -3 Error seen while Clean installing using Maven Related 2 RESOLVE Maven Failed to retrieve plugin descriptor and Build Failure 34 maven : Failed to install metadata project Could not parse metadata maven-metadata-local.xml: only whitespace content allowed before start tag 1

What are the Maven build errors in selenium pom?

Linked 0 Whitespace Errors in Maven when Installing Selenium POM 0 Maven build error is occured in simple maven file -3 Error seen while Clean installing using Maven Related 2 RESOLVE Maven Failed to retrieve plugin descriptor and Build Failure 34


1 Answers

I just wanted to document this error on the internet. There was no much help or I didn't search properly.

Answer :

Go to the the path where the maven-metadata-local.xml is. Delete the project folder along with the xml and build the project.

It worked for me!

like image 165
jeraldfdo Avatar answered Oct 13 '22 08:10

jeraldfdo