【发布时间】:2012-01-01 03:20:08
【问题描述】:
我有 maven-gwt 项目。它有很多依赖项,这在大型项目中很常见。我认为这是创建类路径的极限。我找到了一些关于限制的信息。允许使用 1023 个字符。但我需要图书馆。
当我想打包我的项目 mit Maven 时收到以下错误。
The command line is too long.
我怎样才能解决这个问题?
这是 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.
【问题讨论】:
-
哪个特定插件出现此错误?
-
@matthew-farwell 我在这行之后收到了错误
--- maven-surefire-plugin:2.5:test (default-test) -
你能发布整个错误吗?
-
实际上你的类路径限制似乎不是真的,如果我在一个相当大的项目上执行
mvn dependency:build-classpath | wc -c,它会说10290...你mvn dependency:build-classpath | wc -c的输出是什么?谁在你的类路径中添加东西,maven 还是你自己添加的? -
@christian-uhl Eclipse 或 maven 做。我在代码中所做的更改只是添加了更多依赖项。那是我对类路径的评价