我遇到了这里提到的一些问题:无法正确安装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)
这是唯一未安装的模块。你们中的一个慷慨的灵魂能仁慈地帮助这个卑微的角落吗?谢谢
那些版本的jasper模块在Maven Central中缺少POM文件。这就是下载失败的原因:
- jasper编译器
- jasper运行时
是否可以使用更新的版本?
更新
各种库版本由以下文件控制:
$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
我建议升级,或者复制此版本的属性文件。