- 浏览: 145535 次
- 性别:
- 来自: 大连
文章分类
最新评论
-
trydofor:
fujohnwang 写道为啥不是maven的问题?大概是因为 ...
jdk1.6.0_16 小bug -
fujohnwang:
为啥不是maven的问题?
jdk1.6.0_16 小bug -
trydofor:
参考资料http://supermmx.org/blog/20 ...
必须知道,别滥用-finally -
trydofor:
后续跟踪:使用javap分析finally块中return值h ...
必须知道,别滥用-finally -
trydofor:
(2)javap -c TestFor(1)javap -c ...
while(ture) 和 for(;;)
Build Spring3 惊喜手记
作者:臭豆腐[trydofor.com]
日期:2009-12-21
授权:署名-非商业-保持一致 1.0 协议
声明:拷贝、分发、呈现和表演本作品,请保留以上全部信息。
文档目录
1. 简单目标
目标是,把spring-framework-3.0.0.RELEASE导入Eclipse,编译无错误。
简单明了,可操作起来,得到很多惊喜。
本地环境:WinXP,ant-1.7.0,jdk1.6.0_16
考虑网速,省去svn检出,下载了spring-framework-3.0.0.RELEASE-with-docs.zip。
解压缩,进入projects/build-spring-framework目录,输入ant,切换窗口,忙别事。
2. 首次惊喜
5分钟吧,切窗口回来,得到惊喜(控制宽度,文本进行了手工折行)。
resolve.compile: [ivy:cachepath] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ :: [ivy:cachepath] :: loading settings :: file = E:\mess\projects\spring-build\common\ivysettings.xml [subant] Leaving directory: E:\mess\projects\org.springframework.instrument BUILD FAILED E:\mess\projects\spring-build\multi-bundle\artifact.xml:45: The following error occurred while executing this line: E:\mess\projects\spring-build\multi-bundle\common.xml:71: The following error occurred while executing this line: E:\mess\projects\spring-build\common\common.xml:91: impossible to configure ivy:settings with given file: E:\mess\projects\spring-build\common\ivysettings.xml : java.text.ParseException: failed to load settings from file:/E:/mess/projects/spring-build/common/ivysettings.xml: impossible to define new type: class not found: org.springframework.aws.ivy.S3Resolver in [] nor Ivy classloader |
一头雾水,几度搜索,得到线索和结论是,
Err with Pre-existing ant ivy jar (org.springframework.aws.ivy.S3Resolver)
删除 $ANT/lib/ivy-2.1.0.jar。
继续ant,继续切换窗口。
3. 再次惊喜
不知多久,窗口切换了好几回,文字在屏幕上上升,不亦乐乎。
出了个插曲:java.lang.OutOfMemoryError: PermGen space
修改环境变量:
ANT_OPTS=-Xms256m -Xmx768m -XX:MaxNewSize=256m -XX:MaxPermSize=512m
JAVA_OPTS=-Xms512m -Xmx1024m -XX:MaxNewSize=512m -XX:MaxPermSize=1024m
继续 ant,继续切换窗口,但最终得到惊喜。
[ivy:cachepath] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:cachepath] :: FAILED DOWNLOADS :: [ivy:cachepath] :: ^ see resolution messages for details ^ :: [ivy:cachepath] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:cachepath] :: org.hibernate#com.springsource.org.hibernate; 3.3.1.GA!com.springsource.org.hibernate.jar [ivy:cachepath] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:cachepath] [ivy:cachepath] [ivy:cachepath] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS [subant] Leaving directory: E:\mess\projects\org.springframework.orm BUILD FAILED |
重复了几次,都没有成功,视乎是网络问题?!
4. 换个角度
可能是点太背了吧,换个角度,转移到日本中转服务器碰碰运气。
CentOS release 4.3,但是java6,ant1.7和svn都没有。
<tty> 安装环境 | ||
|
网络条件很不错,下载ivy-cache.zip,替换到本地,23个工程好使了21个。
org.springframework.spring-library
spring-framework-reference
org.springframework.aop
org.springframework.asm
org.springframework.aspects
org.springframework.beans
org.springframework.context
org.springframework.context.support
org.springframework.core
org.springframework.expression
org.springframework.instrument
org.springframework.instrument.tomcat
org.springframework.integration-tests
org.springframework.jdbc
org.springframework.jms
org.springframework.orm
org.springframework.oxm
org.springframework.test
org.springframework.transaction
org.springframework.web
org.springframework.web.portlet
org.springframework.web.servlet
org.springframework.web.struts
出错的2个是,
org.springframework.web.servlet工程
org.springframework.web.servlet.view.BaseViewTests
第173行有个字符,需要以UTF8编译。
org.springframework.oxm工程
主要是以下测试代码的问题。
src/test/java/org/springframework/oxm/castor/
src/test/java/org/springframework/oxm/xmlbeans/
src/test/java/org/springframework/oxm/jaxb/
原因是找不到以下8个类:
Flight、FlightDocument、Flights
FlightsDocument、FlightType
ObjectFactory、Order、OrderItem
5. 拒不信邪
对于“再次惊喜”只是的网络故障,始终不能归咎于人品问题。
于是一步一步的,从头再来了一遍,依然没有成功 :(
结论是,在彻彻底底搞清楚之前,千万不要和人品过不去。
发表评论
-
Java 大括号语法糖
2012-07-04 16:53 1847Java 大括号语法糖 Java 的大括号(‘{’ ,curl ... -
jdk1.6.0_16 小bug
2011-06-01 17:10 2231汉语错误信息: [ERROR] \a9zones\a9id- ... -
JSR305 有助于提高代码健壮性
2011-05-18 16:44 2110JSR305 有助于提高代码健壮性 下载(java5+ ,据 ... -
Java常用工具类 -- ALOE 芦荟工程
2011-05-10 15:32 1279最牛全角互转半角 ... -
不可 T extends Iterator<E> & Iterable<E>
2011-05-09 10:50 1236//(a) public <T extends I ... -
必须知道,别滥用-finally
2011-04-21 10:57 1358public class Test { ... -
while(ture) 和 for(;;)
2011-03-28 11:10 1163多线程下的if,经常是while(...) 对于死等,在jdk ... -
小细节导致假调用
2011-03-17 11:40 839private final A9Loader< ... -
多线程情况下的一点差异
2011-03-14 17:04 787以下代码,没实际意义。 注意以下情况的不同点。 1)volat ... -
Number 为何不 Comparable
2011-02-18 09:55 1155现状 java 5+ package java.lang. ... -
synchronized 处发生了什么
2011-01-13 14:45 748问题 1.为何 map.clear(); 时的输出的毫秒数不连 ... -
讨论下 A9ID/A9IC 的短板
2011-01-12 16:21 832ID 生成策略,是各有各的道。且不问是否分布,多进程,多线程。 ... -
A9ID/A9IC
2011-01-12 09:35 970第一版的A9ID 和A9IC已经出炉了. 定义如下 ... -
文字替换之效率
2010-11-02 10:40 11011. 常用方法 a) public String repl ... -
遍历 List 之效率
2010-11-02 09:30 12621. 常用遍历 List 之方法 遍历 List 方法 ... -
JAVA乱码你知道(DIY)
2010-11-01 13:45 9811. 四个涉及编码的环节 java开发中的乱码问题,有 ... -
超级基础:作用范围和生命周期
2010-10-30 14:29 743代码中的类或变量: 1。一旦创建了,就不在需要了。 ... -
码工考古之DataSync
2010-06-19 20:50 975码工考古之DataSync 作者:臭豆腐[trydo ... -
IVY+IVYDE 非经典实践
2010-06-07 22:15 1063http://trydofor.com/a9w3-auhome ... -
日文编码SHIFT_JIS/MS932使用
2010-04-16 13:38 3765总结:在多数情况下,使用MS932代替SHIFT_JIS,可减 ...
相关推荐
Spring 5.0 Cookbook Recipes to build, test, and run Spring applications efficiently 英文azw3 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
How to build Spring-based web applications using Spring MVC and more How to build Spring-based front ends How the Spring Framework can work with scripting languages like Groovy to provide enhanced ...
build-spring-framework
Baeldung Build Your REST API with Spring 5 video course
spring-cloud-build:Spring Cloud模块的常见构建问题,共享插件配置等
spring-build-src-4.0.0.RELEASE.jar
This book will help you understand what Spring Boot is, how Spring Boot helps you build Spring-based applications quickly and easily, and the inner workings of Spring Boot using easy-to-follow ...
Baeldung Build Your REST API with Spring 5 Course
Spring Microservices_Build Scalable Microservices with Spring,Docker, and Mesos
This book will help you understand what Spring Boot is, how Spring Boot helps you build Spring-based applications quickly and easily, and the inner workings of Spring Boot using easy-to-follow ...
Mastering Spring Cloud_Build self-healing, microservices-based, distributed systems using Spring Cloud-Packt Publishing(2018)
非常完整的spring3及springsecurity3.1源码及jar包 spring3及springsecurity3.1源码及jar包,导入eclipse将各个工程下的jar包分别加入buildpath就可以用了
spring-framework-3.2.0.BUILD-SNAPSHOT-dist.zip~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
spring-build-src-3.2.4.RELEASE spring-context-3.2.4.RELEASE spring-context-support-3.2.4.RELEASE spring-core-3.2.4.RELEASE spring-expression-3.2.4.RELEASE spring-instrument-3.2.4.RELEASE spring-...
No usable Android build tools found. Highest 30.x installed version is 28.0.3; Recommended version is ...解决这个问题 只要下载30.0.3版本到C:\Users\yaohx\AppData\Local\Android\Sdk\build-tools目录下即可
Learn the Spring Boot 3 micro framework and build your first Java-based cloud-native applications and microservices. Spring Boot is the lightweight, nimbler cousin to the bigger Spring Framework, with...
Spring的4.0的包 新手总是找不到下载的地方 每年下载地址也得变一变 所以上传上来给大家
Build mission-critical ...3. Accessing Data with Spring 4. Understanding WebSocket 5. Securing Your Applications 6. Building a Single-Page Spring Application 7. Integrating with Other Web Frameworks
Build By Spring-Framework-4.3.18.RELEASE spring-cglib-repack-3.2.6.jar 文件大小:313502 字节 修改时间:2018年8月26日 09:12:09 MD5 :1F3A42309EC16632954291B584778432 SHA1 :7A9601D36541798180C2AFC4DA...