maven only whitespace content allowed before start

原创 2011年05月18日 16:34:00

 

 

 

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3.1:install (default-install) on project com.packtpub.felix.bookshelf-service-tui: Failed to install metadata com.packtpub.felix:com.packtpub.felix.bookshelf-service-tui/maven-metadata.xml: Could not parse metadata j:/maven-resource/com/packtpub/felix/com.packtpub.felix.bookshelf-service-tui/maven-metadata-local.xml: only whitespace content allowed before start tag and not /u0 (position: START_DOCUMENT seen /u0... @1:1) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3.1:install (default-install) on project com.packtpub.felix.bookshelf-service-tui: Failed to install metadata com.packtpub.felix:com.packtpub.felix.bookshelf-service-tui/maven-metadata.xml: Could not parse metadata j:/maven-resource/com/packtpub/felix/com.packtpub.felix.bookshelf-service-tui/maven-metadata-local.xml: only whitespace content allowed before start tag and not /u0 (position: START_DOCUMENT seen /u0... @1:1)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
 at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
 at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to install metadata com.packtpub.felix:com.packtpub.felix.bookshelf-service-tui/maven-metadata.xml: Could not parse metadata j:/maven-resource/com/packtpub/felix/com.packtpub.felix.bookshelf-service-tui/maven-metadata-local.xml: only whitespace content allowed before start tag and not /u0 (position: START_DOCUMENT seen /u0... @1:1)
 at org.apache.maven.plugin.install.InstallMojo.execute(InstallMojo.java:139)
 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
 ... 19 more
Caused by: org.apache.maven.artifact.installer.ArtifactInstallationException: Failed to install metadata com.packtpub.felix:com.packtpub.felix.bookshelf-service-tui/maven-metadata.xml: Could not parse metadata j:/maven-resource/com/packtpub/felix/com.packtpub.felix.bookshelf-service-tui/maven-metadata-local.xml: only whitespace content allowed before start tag and not /u0 (position: START_DOCUMENT seen /u0... @1:1)
 at org.apache.maven.artifact.installer.DefaultArtifactInstaller.install(DefaultArtifactInstaller.java:111)
 at org.apache.maven.plugin.install.InstallMojo.execute(InstallMojo.java:103)
 ... 21 more
Caused by: org.sonatype.aether.installation.InstallationException: Failed to install metadata com.packtpub.felix:com.packtpub.felix.bookshelf-service-tui/maven-metadata.xml: Could not parse metadata j:/maven-resource/com/packtpub/felix/com.packtpub.felix.bookshelf-service-tui/maven-metadata-local.xml: only whitespace content allowed before start tag and not /u0 (position: START_DOCUMENT seen /u0... @1:1)
 at org.sonatype.aether.impl.internal.DefaultInstaller.install(DefaultInstaller.java:317)
 at org.sonatype.aether.impl.internal.DefaultInstaller.install(DefaultInstaller.java:215)
 at org.sonatype.aether.impl.internal.DefaultInstaller.install(DefaultInstaller.java:162)
 at org.sonatype.aether.impl.internal.DefaultRepositorySystem.install(DefaultRepositorySystem.java:473)
 at org.apache.maven.artifact.installer.DefaultArtifactInstaller.install(DefaultArtifactInstaller.java:107)
 ... 22 more
Caused by: org.sonatype.aether.RepositoryException: Could not parse metadata j:/maven-resource/com/packtpub/felix/com.packtpub.felix.bookshelf-service-tui/maven-metadata-local.xml: only whitespace content allowed before start tag and not /u0 (position: START_DOCUMENT seen /u0... @1:1)
 at org.apache.maven.repository.internal.MavenMetadata.read(MavenMetadata.java:105)
 at org.apache.maven.repository.internal.MavenMetadata.merge(MavenMetadata.java:69)
 at org.sonatype.aether.impl.internal.DefaultInstaller.install(DefaultInstaller.java:305)
 ... 26 more
Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: only whitespace content allowed before start tag and not /u0 (position: START_DOCUMENT seen /u0... @1:1)
 at org.codehaus.plexus.util.xml.pull.MXParser.parseProlog(MXParser.java:1528)
 at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1407)
 at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1105)
 at org.apache.maven.artifact.repository.metadata.io.xpp3.MetadataXpp3Reader.read(MetadataXpp3Reader.java:1193)
 at org.apache.maven.artifact.repository.metadata.io.xpp3.MetadataXpp3Reader.read(MetadataXpp3Reader.java:1122)
 at org.apache.maven.repository.internal.MavenMetadata.read(MavenMetadata.java:97)
 ... 28 more

 

 

不知道是何原因,

把本地库中文件删除了,重新mvn install -X,  mvn clean deploy。执行上述命令没有报错。

Failed to install metadata only whitespace content allowed before start tag and not \u0

突然蓝屏,然后重启发现这个玩意已经不行了,编译就出这玩意,什么鬼 后面直接删了.m2目录下相关的:maven-metadata-local.xml...
  • luyee2010
  • luyee2010
  • 2015年08月24日 21:05
  • 4266

maven生成代码结构时XmlPullParserException异常

在使用maven eclipse:eclipse生成Eclipse项目代码结构时,遇到如下Warning提示信息: [WARNING] could not read workspace projec...
  • bbirdsky
  • bbirdsky
  • 2015年08月26日 12:09
  • 4156

Jmeter 1 - 打开Badboy录制的脚本报错 ‘only whitespace content allowed before start tag and not\ufffd’

问题  - 当使用jmeter 打开badboy 录制的脚本时报错,如下图: 原因 - 由于badboy录制完脚本后直接保存为.jmx文件; 解决方法 - 将badboy录制完的脚本export...
  • hua19910620
  • hua19910620
  • 2015年07月02日 15:52
  • 1717

工作空间被锁定

用maven命令创建了一个项目,报错: could not read
  • sunhuwh
  • sunhuwh
  • 2014年11月06日 23:31
  • 3358

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

solution: find local maven-metadata-local.xml file then delete it.reference1reference2
  • zhaoyayua
  • zhaoyayua
  • 2016年06月22日 16:37
  • 463

maven报错maven only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT

删除maven目录下conf文件夹中setting.xml maven install
  • M87138
  • M87138
  • 2014年07月04日 11:35
  • 1907

Maven项目错误解决小结

Maven项目错误解决小结 注:整理错误,不喜欢为了一个小问题,占篇幅,所以请Ctrl+F自己查看,定位问题,愿为解决. 注:网络上的错误解决经验,只是作者在特定的条件下发生,或者适合你不适合你,请勿...
  • typa01_kk
  • typa01_kk
  • 2015年10月16日 23:27
  • 63260

关于before和after以及content的用法

一、伪元素和伪类的区别 在 CSS3 中为了区别伪元素和伪类为伪元素使用了双冒号,即 :before为伪元素 ; ::before为伪类; 关于语法和浏览器支持 伪元素实际上在CSS1中就存在了...
  • qq_30486009
  • qq_30486009
  • 2016年05月30日 10:34
  • 3424

你为什么需要 Kotlin

Kotlin 似乎并不是一门新的编程语言,它看上去更像 Java 的语法糖,只不过,这糖放的彻底了些。...
  • Kotlinlang
  • Kotlinlang
  • 2017年02月01日 22:08
  • 784

微信小程序----引入外部字体库iconfont的图标

直接使用阿里巴巴的网络路径选择iconfont图标 官网:阿里巴巴矢量字体库 步骤:阿里巴巴字体库使用方法 全局引入app.wxss@font-face { font-family: '...
  • m0_38082783
  • m0_38082783
  • 2017年12月22日 14:36
  • 1922
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:maven only whitespace content allowed before start
举报原因:
原因补充:

(最多只允许输入30个字)