简体   繁体   English

无法正确安装Apache Ant的二进制版本:jspc仍然无法正常工作

[英]Unable to properly install binary edition of Apache Ant: jspc still not working

I had the exact some problem as mentioned here: Unable to properly install binary edition of Apache Ant . 我遇到了这里提到的确切问题: 无法正确安装Apache Ant的二进制版本

I followed the steps by replacing http://repository.jboss.org/maven2 with https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/ but am still getting this error: 我按照以下步骤操作,将http://repository.jboss.org/maven2替换为https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/,但仍然出现此错误:

jspc:
[artifact:dependencies] Downloading: tomcat/jasper-compiler/4.1.36/jasper-compil
er-4.1.36.pom
[artifact:dependencies] [WARNING] Unable to get resource from repository remote
(http://repo1.maven.org/maven2/)
[artifact:dependencies] Downloading: tomcat/jasper-compiler/4.1.36/jasper-compil
er-4.1.36.pom
[artifact:dependencies] [WARNING] Unable to get resource from repository central
 (http://repo1.maven.org/maven2)
[artifact:dependencies] Downloading: tomcat/jasper-runtime/4.1.36/jasper-runtime
-4.1.36.pom
[artifact:dependencies] [WARNING] Unable to get resource from repository remote
(http://repo1.maven.org/maven2/)
[artifact:dependencies] Downloading: tomcat/jasper-runtime/4.1.36/jasper-runtime
-4.1.36.pom
[artifact:dependencies] [WARNING] Unable to get resource from repository central
 (http://repo1.maven.org/maven2)

This is the only module that doesn't install. 这是唯一未安装的模块。 Can one of you generous souls graciously help this lowly noob out? 你们其中一个慷慨的灵魂可以慷慨地帮助这个卑微的菜鸟吗? Thanks. 谢谢。

Those versions of of the jasper modules are missing POM files in Maven Central. 那些版本的jasper模块在Maven Central中缺少POM文件。 That is why the download is failing: 这就是下载失败的原因:

Is it possible to use more recent versions? 是否可以使用更新的版本?


Update 更新

The various libraries versions are controlled by the following file: 各种库版本由以下文件控制:

$ANT_HOME/lib/libraries.properties

Version 1.8.2 of ANT appears to be broken.I tried tweaking this file and finally gave up and upgraded to the latest version of ANT: ANT的1.8.2版本似乎已损坏,我尝试调整此文件,最后放弃并升级到最新版本的ANT:

$ ant -version
Apache Ant(TM) version 1.8.3 compiled on February 26 2012

$ ant -f $ANT_HOME/fetch.xml -Ddest=user

I suggest an upgrade, or alternative take a copy of this version's properties file. 我建议进行升级,或采取其他措施来复制此版本的属性文件。

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

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