[cc]四月-22 05:02:28 ScriptRunner - C:\cruisecontrol-bin-2.8.4\projects\*******
*******************.java:[206,2] 警告:sun.net.TelnetOutputStream 是 Sun 的专用
API,可能会在未来版本中删除
[cc]四月-22 05:02:28 ScriptRunner -
[cc]四月-22 05:02:28 ScriptRunner -
[cc]四月-22 05:02:28 ScriptRunner - [INFO] ------------------------------------
------------------------------------
[cc]四月-22 05:02:28 ScriptRunner - [INFO] For more information, run Maven with
the -e switch
[cc]四月-22 05:02:28 ScriptRunner - [INFO] ------------------------------------
------------------------------------
[cc]四月-22 05:02:28 ScriptRunner - [INFO] Total time: 16 seconds
[cc]四月-22 05:02:28 ScriptRunner - [INFO] Finished at: Fri Apr 22 05:02:27 CST
2011
[cc]四月-22 05:02:28 ScriptRunner - [INFO] Final Memory: 32M/77M
[cc]四月-22 05:02:28 ScriptRunner - [INFO] ------------------------------------
------------------------------------
[cc]四月-22 05:02:28 jectController- trunk Controller: build result event: build
failed
以上是maven的build日志,可以看到是因为引用了sun的jar包,将来可能会被废弃掉,结果就出了警告,之后build就失败了.上谷歌查了下"maven 忽略告警信息",查到一篇文章:
让Maven正确处理javac警告 http://www.juvenxu.com/2010/09/01/maven-javac-warning/
在这篇文章结尾处,给出了一种解决方法-->设定maven-compiler-plugin的版本为2.3.2.跑到我们的项目的pom.xml文件中看了下,这边的version设置的是2.0.2,改成2.3.2,顺便换了个新版本的maven,maven仓库没去管,然后再编译,问题解决了.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version> <!--解决出现警告时build失败问题-->
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>UTF-8</encoding> <!--解决GBK映射报错问题-->
</configuration>
</plugin>