maven only whitespace content allowed before start

 

 

 

[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。执行上述命令没有报错。

你可能感兴趣的:(maven,whitespace)