【发布时间】:2011-11-23 19:57:39
【问题描述】:
我正在阅读 manning 的 EJB 3.1 书,并且在尝试使用 Maven 2 将源代码导入 IntelliJ 时遇到了很糟糕的情况。
来源位于:http://action-bazaar.googlecode.com/svn/trunk
签出项目并导入所有内容后,我尝试运行 maven 构建,看到以下错误:
Downloading: http://download.java.net/maven/2/org/glassfish/javax.ejb/3.1/javax.ejb-3.1.pom
[WARNING] Unable to get resource 'org.glassfish:javax.ejb:pom:3.1' from
repository java.net2 (http://download.java.net/maven/2): Error transferring file: Connection timed out: connect
错误是: 传输文件时出错:连接超时:连接
我在代理后面,但已在 IDE 上成功设置了我的 HTTP 代理设置。
Pom.xml 位于here:
问题 我该如何解决这个问题,或者如何在 IntelliJ 上导入和运行这个项目(现在只是第 1 章)?
【问题讨论】:
标签: jakarta-ee maven glassfish intellij-idea ejb-3.1