Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

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

[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:Usersadmin.m2 epositorycomappecommerce-webmaven-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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...