现在的位置: 首页 > 综合 > 正文

appfuse2中mvn appfuse:full-source时出错的解决办法

2013年11月02日 ⁄ 综合 ⁄ 共 618字 ⁄ 字号 评论关闭

appfuse2中mvn appfuse:full-source时经常会遇到ant.1.0.7.jar出错,然后build失败。

解决办法:

 

原因:

官网提示:Bug with Ant 1.7.0
Local repositories and projects on Windows platforms are held in directories whose paths contain no spaces.是因为ANT.JAR的路径有空格时就会出这个错误。

 

解决:

1、将appfuse2的保存位置放到一个没有空格的路径下,例如:D:/repository.默认是在"C:/Documents and Settings/系统用户名/.m2/repository"。

 

2、将maven里的conf文件夹里的settings.xml中

<!-- localRepository
   | The path to the local repository maven will use to store artifacts.
   |
   | Default: ~/.m2/repository
<localRepository> /path/to/local/repo</localRepository>
-->

 /path/to/local/repo改成你保存appfuse2的路径,例如我的是D:/repository,"-->"挪走,默认这段是注释的。

 

完成,不会出那个错误了,当然要改pom.xml下SQL的用户名和密码。

抱歉!评论已关闭.