Kay*_*ser 6 java command maven
我有maven-gwt项目.它有很多依赖,这是大型项目通常的.我认为它在创建classpath时处于极限.我找到了一些有关限制的信息.允许的是1023字符.但我需要这些库.
当我想打包我的项目mit时,我收到以下错误Maven.
The command line is too long.
Run Code Online (Sandbox Code Playgroud)
我怎样才能解决这个问题.
以下是Jenkins中的扩展错误:
[INFO] --- maven-surefire-plugin:2.5:test (default-test) @ MyProject ---
[INFO] Surefire report directory: C:\Documents and Settings\User\.jenkins\workspace\Myproject\target\surefire-reports
The command line is too long.
The command line is too long.
[ERROR] There are test failures.
Run Code Online (Sandbox Code Playgroud)
我在这里找到了另一个解决方法http://code.google.com/p/gwt-maven/issues/detail?id=88 (我在更改pom以适应特定操作系统时遇到问题)
简而言之:尽可能缩短本地存储库的路径.
"评论40由gaurav.a ... @ gmail.com,2009年3月23日"由于输入线太长而导致GWT编译失败的问题之一."如下:
C:\Documents and Settings\MahcineNameABC\.m2 将settings.xml文件从文件夹复制
apache-maven-2.0.8\apache-maven-2.0.8\conf到C:\Documents and Settings\MahcineNameABC\.m2
在settings.xml中:
将标签更改为
<localRepository>M:</localRepository>.现在你的m2家是一个虚拟M驱动器.
D:\maven-2.0.8\repositoryC:\Documents and Settings\MahcineNameABC\.m2\repository到D:\maven-2.0.8\repositoryD:\maven-2.0.8\repository. 现在,虚拟M驱动器将指向您的存储库.cmd /e:32768这将解决由于类路径变量中的条目很长而导致长输入的问题,至少在Win XP SP2中是这样.输入结合并在评论#22和#7中进行测试.
希望能帮助到你!
这在大多数情况下应该有所帮助(直到项目结束 - 至少在我的情况下)
| 归档时间: |
|
| 查看次数: |
14606 次 |
| 最近记录: |