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...

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

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

工作空间被锁定

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

maven生成代码结构时XmlPullParserException异常

在使用maven eclipse:eclipse生成Eclipse项目代码结构时,遇到如下Warning提示信息: [WARNING] could not read workspace projec...

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
  • 1726

Maven install 出错解决方法

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3.1:install (default-...

Maven项目错误解决小结

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

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

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

ObservableCollection的神奇用法

最近在做taobao的一个卖家应用,需要订阅taobao的订单推送,示例代码如下:     看到上面的OnMessage场景之后,我突然就鬼使神差的在想最近写的一个服务,其中...

java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed

jodd.db.DbQueryBase.executeUpdate(DbQueryBase.java:677) jodd.db.DbQueryBase.executeUpdate(DbQuer...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:maven only whitespace content allowed before start
举报原因:
原因补充:

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