编译Maven时出错

时间:2014-06-11 19:42:21

标签: java html5 actionscript-3 maven plugins

我正在尝试使用Jangaroo将FLEX转换为HTML 5和JavaScript。为了做到这一点,我需要使用Maven,并且在编译Maven(mvn compile)时,我会遇到一些错误。错误显示如下。 anoyone可以帮助我吗???


[INFO] Scanning for projects...
Downloading: http://repo.maven.apache.org/maven2/net/jangaroo/jangaroo-maven-plu
gin/0.8.3/jangaroo-maven-plugin-0.8.3.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project net.jangaroo.examples:hello-world:0.1.0-SNAPSHOT (F:\PROJE
CT_HOME\pom.xml) has 1 error
[ERROR]     Unresolveable build extension: Plugin net.jangaroo:jangaroo-maven-pl
ugin:0.8.3 or one of its dependencies could not be resolved: Failed to read arti
fact descriptor for net.jangaroo:jangaroo-maven-plugin:jar:0.8.3: Could not tran
sfer artifact net.jangaroo:jangaroo-maven-plugin:pom:0.8.3 from/to central (http
://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:80 [repo.mave
n.apache.org/199.27.74.192, repo.maven.apache.org/199.27.74.129] failed: Connect
ion timed out: connect -> [Help 2]
[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]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
gException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
onException

1 个答案:

答案 0 :(得分:0)

Maven尝试从其中央Maven存储库(或您在Maven设置或pom.xml中指定的任何其他存储库)下载构建所需的所有内容。 错误"连接超时"表示在IP地址199.27.74.129下(当前)无法从您的计算机访问repo.maven.apache.org。您有网络(配置)问题,或者当您尝试编译时服务器确实关闭了。 执行以下命令时的输出是什么?

ping repo.maven.apache.org

在您编译项目一次之后,可以使用Maven命令行开关-o离线重新编译它(除非您添加需要下载的新依赖项)。

不过,你应该真正更新到更新的Jangaroo版本。截至目前,jangaroo-maven-pluginjangaroo-runtime为1.0.2,所有其他jangaroo-libsjangaroo-browserjooflash等为1.0.3)