2009-06-22 64 views
7

当我做一个干净的所有在Eclipse中我的Maven项目,它总是与以下错误回来:Maven的Eclipse的卷标语法错误

文件名,目录名或卷标语法不正确

我有启用的maven构建器和java bulider。有谁知道这个错误是什么意思?

感谢,

杰夫

+0

这就是整个错误?似乎没有什么帮助。 – 2009-06-22 17:59:20

+0

我知道,但这就是我得到的。错误日志中有一些堆栈跟踪信息: 导致:java.io.IOException:文件名,目录名称或卷标语法不正确 at java.io.WinNTFileSystem.canonicalize0(Native Method) at java.io .Win32FileSystem.canonicalize(Win32FileSystem.java:396) 在java.io.File.getCanonicalPath(File.java:559) 在org.codehaus.groovy.maven.plugin.CompilerMojoSupport.addSourceRoot(CompilerMojoSupport.java:80) 在org.codehaus.groovy.maven.plugin.stubgen.AbstractGenerateStubsMojo.addSourceRoot(AbstractGenerateStubsMojo.java:113) 在 – 2009-06-22 18:18:45

回答

3

这可能与错误MECLIPSE-269:完整的错误消息可能有助于为这个 “ ” java.io.IOException: The filename, directory name, or volume label syntax is incorrect “实际上是根本原因” org.apache.maven.lifecycle.LifecycleExecutionException: Can't canonicalize system path

I get a " Can't canonicalize system path " error using the goal eclispse:eclipse when the <warSourceDirectory> of the maven-war-plugin starts with ${basedir} .
If I remove the ${basedir} , the build is successful. If, as it appears, the war plugin uses different rules related to the prefixing a path with ${basedir}, then I consider it a bug because the configuration of <warSourceDirectory> is inconsistent with similar tags.

0

使用以下命令可以得到确切的错误原因:

mvn eclipse:eclipse -X 

上述命令的结果将帮助您解决问题。