0

我尝试在 ubuntu 桌面 12.04 中安装 Hoop。我已经安装了 hadoop-1.0.2。我的安装遵循http://cloudera.github.com/hoop/docs/latest/ServerSetup.html 我安装了 maven 3.0.4,git 箍。然而,当我这样做时,问题就来了,

hoop $ mvn clean package site assembly:single

问题是:

[FATAL] Non-parseable POM /home/pc/.m2/repository/com/sun/jersey/jersey-project/1.4/jersey-project-1.4.pom: end tag name </body> must match start tag name <hr> from line 5 (position: TEXT seen ...</center>\r\n</body>... @6:8)  @ /home/pc/.m2/repository/com/sun/jersey/jersey-project/1.4/jersey-project-1.4.pom, line 6, column 8

[ERROR] /home/pc/hoop/hoop-server/src/main/java/com/cloudera/hoop/Hoop.java:[222,23] error: cannot find symbol
[ERROR] class Hoop

[WARNING] Unable to create Maven project from repository.
org.apache.maven.project.InvalidProjectModelException: Some problems were encountered while processing the POMs:
[ERROR] Invalid packaging for parent POM [unknown-group-id]:[unknown-artifact-id]:   [unknown-version], must be "pom" but is "jar" @ [unknown-group-id]:[unknown-artifact-id]:[unknown-version]
[ERROR] 'groupId' is missing. @ line 44, column 99
[ERROR] 'version' is missing. @ line 44, column 99


[INFO] Hoop Project POM .................................. SUCCESS [7.774s]
[INFO] Hoop TestNG ....................................... SUCCESS [12:16.761s]
[INFO] Hoop Server ....................................... FAILURE [1.161s]
[INFO] Hoop WebApp ....................................... SKIPPED
[INFO] Hoop Client ....................................... SKIPPED
[INFO] Hoop Docs ......................................... SKIPPED
[INFO] Hoop Distro ....................................... SKIPPED
[INFO] Hoop Main ......................................... SKIPPED

我该怎么办?

我将maven更改为maven2,我做到了

rm -rf ~/.m2/repository/com/sun/jersey
rm -rf ~/.m2/repository/org/glassfish/packager
rm -rf ~/.m2/repository/jersey

正如丹尼尔·巴克蒂尔所说。但是现在又出现了新问题

[INFO] Scanning for projects...
[INFO] Reactor build order: 
[INFO]   Hoop Project POM
[INFO]   Hoop TestNG
[INFO]   Hoop Server
[INFO]   Hoop WebApp
[INFO]   Hoop Client
[INFO]   Hoop Docs
[INFO]   Hoop Distro
[INFO]   Hoop Main
[INFO] ------------------------------------------------------------------------
[INFO] Building Hoop Project POM
[INFO]    task-segment: [clean, package, site, assembly:single]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:enforce {execution: clean}]
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequireMavenVersion failed with     message:
Detected Maven Version: 2.2.1 is not in the allowed range [3.0.0,).
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Fri Jun 01 15:51:06 CST 2012
[INFO] Final Memory: 13M/141M
[INFO] ------------------------------------------------------------------------

我现在该怎么办?

4

2 回答 2

0

由于代理 (nginx) 的间歇性中断,您的本地 Maven 2 存储库被搞砸了。因为该文件不是有效的 .pom 文件,所以 Maven 2 无法继续。

你应该做的是先删除它。

rm -rf ~/.m2/repository/com/sun/jersey
rm -rf ~/.m2/repository/org/glassfish/packager
rm -rf ~/.m2/repository/jersey

之后,再次运行 Maven mvn 命令。

于 2012-06-01T06:39:50.250 回答
0

maven2.0 在箍安装中不起作用。关于maven3.0.4的问题,可以尝试用官方文件更新pom.xml。只需在 google 中搜索 jersey-project-1.4.pom 即可。

于 2012-06-04T05:45:23.917 回答