Jeff Storey
Jeff Storey

Reputation: 57202

Maven Eclipse volume label syntax error

When I do a clean all on my maven project in Eclipse, it always comes back with the following error:

The filename, directory name, or volume label syntax is incorrect

I have the maven builder and java bulider enabled. Does anyone know what this error means?

thanks,

Jeff

Upvotes: 7

Views: 8486

Answers (2)

Santosh Ganacharya
Santosh Ganacharya

Reputation: 384

use the following command to get exact cause of an error.

mvn eclipse:eclipse -X

The result of above command will help you to fix an issue.

Upvotes: 1

VonC
VonC

Reputation: 1326646

It could be related to bug MECLIPSE-269: the full error message might help as this " "java.io.IOException: The filename, directory name, or volume label syntax is incorrect" is actually the root cause of "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.

Upvotes: 3

Related Questions