2009-06-22 33 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 

上述命令的結果將幫助您解決問題。