0

一位团队成员在 bitbucket 上与我分享了他的项目,他使用 maven 来管理他的依赖项。将 repo(使用 mercurial)克隆到我的工作区(Eclipse)并下载 maven、m2e 和所有其他必需的设置文件后,我能够获得除 4 之外的所有项目库。

下载项目后,我运行了几个mvn命令来清理、安装并希望下载这些丢失的 jar。当我运行mvn -e命令时,我得到了这个无济于事的长错误。我是否必须找到并下载这 4 个 jar 并将它们放入我的 maven repo 中?

命令输出:mvn -e

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23.769s
[INFO] Finished at: Mon Apr 09 17:42:17 CDT 2012
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project Dugsi_Manager: Could not resolve depen
dencies for project org.bixin.dugsi:Dugsi_Manager:war:0.1.0.BUILD-SNAPSHOT: The
following artifacts could not be resolved: org.eclipse.persistence:eclipselink:j
ar:2.2.0, org.eclipse.persistence:javax.persistence:jar:2.0.3, org.vaadin:icepus
h-gwt:jar:0.1.2, org.jqurantree:jquran:jar:1.0.0: Could not find artifact org.ec
lipse.persistence:eclipselink:jar:2.2.0 in spring-maven-release (http://maven.sp
ringframework.org/release) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]

编辑:

我只需要与克隆我的项目的所有其他团队成员共享我的本地存储库。不使用 maven 的外部 jar 必须手动安装到我的本地 repo 中,这会产生问题,因为我无法共享我的本地 repo?有任何想法吗

4

1 回答 1

0

您可以将这些 JAR 安装在本地存储库中,或者设置一个自己的(可能是私有的)maven 存储库以与您的团队共享。Sonatype 为Nexus OSS提供了一个基于开源的软件,可以轻松设置存储库(如果您愿意,它也可以代理远程存储库)。

于 2012-04-18T16:20:17.117 回答