ant编译Tomcat8时报错 the archive file.tar.gz doesn't exist
来源:互联网 发布:mysql函数与存储过程 编辑:程序博客网 时间:2024/06/05 18:22
报错:
testexist:
[echo] Testing for D:/project/Tomcat_8_0_2_src/share/commons-dbcp2-2.0-SNAPSHOT-src/build.xml
downloadgz-2:
proxyflags:
setproxy:
trydownload.check:
trydownload:
proxyflags:
setproxy:
trydownload.check:
trydownload:
BUILD FAILED
D:\project\Tomcat_8_0_2_src\build.xml:2614: The following error occurred while executing this line:
D:\project\Tomcat_8_0_2_src\build.xml:2825: the archive file.tar.gz doesn't exist
Total time: 3 seconds
解决方法:
从上面报错看,是找不到commons-dbcp2-2.0-SNAPSHOT-src的文件
打开Tomcat_8_0_2_src (Tomcat源码目录)下的build.properties文件,里面的:
commons-dbcp.version=2.0-20140205.233744-168
commons-dbcp.home=${base.path}/commons-dbcp2-2.0-SNAPSHOT-src
commons-dbcp-src.loc.1=https://repository.apache.org/content/repositories/snapshots/org/apache/commons/commons-dbcp2/2.0-SNAPSHOT/commons-dbcp2-${commons-dbcp.version}-src.tar.gz
commons-dbcp-src.loc.2=https://repository.apache.org/content/repositories/snapshots/org/apache/commons/commons-dbcp2/2.0-SNAPSHOT/commons-dbcp2-${commons-dbcp.version}-src.tar.gz
可以发现要下载的commons-dbcp.version=2.0-20140205.233744-168,地址为commons-dbcp-src.loc.1=https://repository.apache.org/content/repositories/snapshots/org/apache/commons/commons-dbcp2/2.0-SNAPSHOT/commons-dbcp2-${commons-dbcp.version}-src.tar.gz
用浏览器打开仓库:https://repository.apache.org/content/repositories/snapshots/org/apache/commons 如下图所示:
可以发现出现该问题主要是因为随时间更新,commons-dbcp.version=2.0-20140205.233744-168版本的源码已经不存在了。
把Tomcat_8_0_2_src (Tomcat源码目录)下的build.properties文件里面的commons-dbcp.version=2.0-20140205.233744-168改为仓库里现有的一个版本号。
如:commons-dbcp.version=2.0-20140217.200202-187
再用ant重新编译即可。
- ant编译Tomcat8时报错 the archive file.tar.gz doesn't exist
- Myql运行时报错: Table 'performance_schema.session_variables' doesn't exist
- 编译forms程序报错,internal_impl_21.0.3.jar doesn't exist|classes.jar doesn't exist
- 打开wireshark出现the file"..."doesn't exist/couldn't create signal pipe...
- 安装APK时报Local path doesn't exist错误
- 安装APK时报Local path doesn't exist错误
- linux 启动mysql 时报:Table 'mysql.host' doesn't exist
- tar解压tar.gz文件时报tar not found in archive解决办法
- 数据库报错:Table '*.*' doesn't exist
- Android报错:Parent file doesn't exist:/Users/XXX/Library/Caches/AndroidStudio2.3/caches/
- jenkins doesn't exist in the repository svn
- hadoop0.20.2:The temporary job-output directory doesn't exist!
- Ant编译The archive: org.eclipse.swt.win32.win32.x86_64_3.104.0.v20150528-0211.jar does not exist. 标签:
- innodb tables doesn't exist?
- Mysql table '' doesn`t exist
- Software Doesn’t Really Exist
- Android Studio报错:Local path doesn't exist 解决方法
- 【报错】BatchUpdateException: Table 'right_test_db.user' doesn't exist
- wordpress独立博客搭建教程完整版
- Merge Two Sorted Lists
- arm-linux-gcc编译qt库
- 阿里正逢多事之秋,最近有点烦
- 读书笔记--盗梦工厂--2014年02月25日
- ant编译Tomcat8时报错 the archive file.tar.gz doesn't exist
- SAP ABAP ALV(LVC)的一个自定义事件(F4帮助事件,回车ENTER按钮事件)的一个实例
- poj2983
- java中package与import
- jar包冲突问题排查总结
- 这样的爱不算爱
- 在登录oracle中遇到的问题
- android实现共享数据
- 计算机操作系统——设备管理(6)