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]


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!

We got the same problem in a project right after modifying the pom.xml to add some plugins and configurations. Deleting the project folders from maven local repository cache solved it.

Need Your Help

How do I create persistent sessions in PHP?

session-cookies php

I used session_start() to initiate a session in PHP, but when my browser closes, the session is gone.

Should Unicode be allowed in usernames?

web-services security unicode username

Why do most (all?) websites only support usernames in ASCII? Are there any security considerations if an admin decides to start accepting Unicode usernames?