Maven Build错误“预期的根元素项目,但找到了html”

时间:2014-10-01 18:56:04

标签: java eclipse apache maven

我是maven的新手。我正在尝试建立一个给我的项目。但我不断收到以下错误。我已多次删除了.m2目录而没有运气。

我阅读了一些帖子建议ISP发送HTML文件而不是HTTP代码。

Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T12:37:52-05:00)
 Maven home: /opt/apache-maven
 Java version: 1.7.0_65, vendor: Oracle Corporation
 Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.65.x86_64/jre
 Default locale: en_US, platform encoding: UTF-8
 OS name: "linux", version: "2.6.32-431.el6.x86_64", arch: "amd64", family: "unix"
 [INFO] Error stacktraces are turned on.
 [DEBUG] Reading global settings from /opt/apache-maven/conf/settings.xml
 [DEBUG] Reading user settings from /root/.m2/settings.xml
 [DEBUG] Using local repository at /root/.m2/repository
 [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for /root/.m2/repository
 [INFO] Scanning for projects...
 [ERROR] The build could not read 1 project -> [Help 1]
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
 [WARNING] 'parent.relativePath' points at com.proclivitysystems:ps-framework instead of com.proclivitysystems:super-pom, please verify your project structure @ line 2, column 10
 [FATAL] Non-parseable POM /root/.m2/repository/com/proclivitysystems/super-pom/1.0.0/super-pom-1.0.0.pom: Expected root element 'project' but found 'html' (position: START_TAG seen ..." "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>... @1:127)  @ /root/.m2/repository/com/proclivitysystems/super-pom/1.0.0/super-pom-1.0.0.pom, line 1, column 127

at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:364)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:672)
at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:663)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:250)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
  [ERROR]   
  [ERROR]   The project com.proclivitysystems:ps-etl-framework:3.2.19-SNAPSHOT (/home/hadoop/proclitivity/etl/pom.xml) has 1 error
  [ERROR]     Non-parseable POM /root/.m2/repository/com/proclivitysystems/super-pom/1.0.0/super-pom-1.0.0.pom: Expected root element 'project' but found 'html' (position: START_TAG seen ..." "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>... @1:127)  @ /root/.m2/repository/com/proclivitysystems/super-pom/1.0.0/super-pom-1.0.0.pom, line 1, column 127 -> [Help 2]
 org.apache.maven.model.io.ModelParseException: Expected root element 'project' but found 'html' (position: START_TAG seen ..." "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>... @1:127) 
at org.apache.maven.model.io.DefaultModelReader.read(DefaultModelReader.java:127)
at org.apache.maven.model.io.DefaultModelReader.read(DefaultModelReader.java:91)
at org.apache.maven.model.building.DefaultModelProcessor.read(DefaultModelProcessor.java:77)
at org.apache.maven.model.building.DefaultModelBuilder.readModel(DefaultModelBuilder.java:453)
at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:864)
at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:669)
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:307)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:411)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:380)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:344)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:672)
at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:663)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:250)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
 Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: Expected root element 'project' but found 'html' (position: START_TAG seen ..." "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>... @1:127) 
at org.apache.maven.model.io.xpp3.MavenXpp3ReaderEx.read(MavenXpp3ReaderEx.java:4348)
at org.apache.maven.model.io.xpp3.MavenXpp3ReaderEx.read(MavenXpp3ReaderEx.java:560)
at org.apache.maven.model.io.DefaultModelReader.read(DefaultModelReader.java:118)
... 24 more
 [ERROR] 
 [ERROR] 
 [ERROR] For more information about the errors and possible solutions, please read the following articles:
 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
 [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException

0 个答案:

没有答案