我遇到了这里提到的确切问题: Unable to properly install binary edition of Apache Ant。
我按照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)
这是唯一无法安装的模块。你们其中一个慷慨的灵魂可以慷慨地帮助这个卑微的菜鸟吗?感谢。
答案 0 :(得分:1)
这些版本的jasper模块缺少Maven Central中的POM文件。这就是下载失败的原因:
是否可以使用更新的版本?
各种库版本由以下文件控制:
$ANT_HOME/lib/libraries.properties
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
我建议升级,或者选择获取此版本属性文件的副本。