简体   繁体   English

编译Maven时出错

[英]Errors when compiling Maven

I am trying to use Jangaroo to convert FLEX to HTML 5 and JavaScript. 我正在尝试使用Jangaroo将FLEX转换为HTML 5和JavaScript。 In order to do so I need to use Maven, and when compiling Maven (mvn compile), I get a couple errors. 为此,我需要使用Maven,并且在编译Maven(mvn编译)时会遇到一些错误。 The errors are displayed below. 错误显示在下面。 Can anoyone help me out??? 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

Maven tries to download everything it needs for your build from its central Maven repository (or any other repository you specify in your Maven settings or pom.xml ). Maven尝试从其中央Maven存储库(或在Maven设置或pom.xml指定的任何其他存储库)下载构建所需的一切。 The error "Connection timed out" means that repo.maven.apache.org is (currently) not reachable from your machine under IP address 199.27.74.129. 错误“连接超时”是指repo.maven.apache.org是(目前)不是从你的机器访问的IP地址199.27.74.129下。 Either you have a network (configuration) problem, or the server was really down when you tried to compile. 您可能遇到了网络(配置)问题,或者尝试进行编译时服务器确实宕机了。 What is the output when you execute the following command? 当您执行以下命令时,输出是什么?

ping repo.maven.apache.org

After you have compiled your project once, it can be re-compiled offline using the Maven command line switch -o (unless you add new dependencies that need to be downloaded). 编译完项目后,可以使用Maven命令行开关-o离线重新编译项目(除非您添加需要下载的新依赖项)。

Btw., you should really update to a more recent Jangaroo version. 顺便说一句,您确实应该更新到较新的Jangaroo版本。 As of now, this would be 1.0.2 for jangaroo-maven-plugin and jangaroo-runtime and 1.0.3 for all other jangaroo-libs ( jangaroo-browser , jooflash , etc.). 到目前为止,对于jangaroo-maven-pluginjangaroo-runtime ,该jangaroo-maven-plugin 1.0.2;对于所有其他jangaroo-libsjangaroo-browserjooflash等),该值是1.0.3。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM