Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

maven install error - only whitespace content allowed before start tag and not \u0

Tags:

eclipse

maven

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

there is nothing in my maven-metadata-local.xml

what is the problem?

like image 572
Lucky Avatar asked Dec 18 '12 09:12

Lucky


2 Answers

The problem is in file ecommerce-web/maven-metadata-local.xml, it contains char(0) (or null char, or Unicode: 0x0).
Clean all local repository, or delete folder with com.app:ecommerce-web artifact

There is nothing in my maven-metadata-local.xml

It's not true. Open your file with Notepad++ and you will see many nulls

like image 159
Ilya Avatar answered Nov 07 '22 14:11

Ilya


Just go under

C:\Users\admin\.m2\repository\com\app\ecommerce-web\

and delete maven-metadata-local.xml Then do a clean install one more time, this should fix the problem and that's what I did.

like image 29
Ralf Avatar answered Nov 07 '22 14:11

Ralf