bimargulies/m2e-code-quality — Issue #7: ${project.basedir} does not expand correctly
Author: PhilBeaudoin
Created: 2011-10-11 02:32:36+00:00
State: open

In my POM, for maven-checkstyle-plugin, I have something like this:

...
basedir=${project.basedir}

In my checkstyle.properties I have:

header.file=target/checkstyle-header.txt

Then, in my checkstyle.xml I have:

However, when I try to "check code with checkstyle" in Eclipse I get the following error:

cannot initialize module Header - unable to load header file C:Usersbeaudoinworkspace2gwtpgwtp-coregwtp-mvp-client/target/checkstyle-header.txt

From this, it looks like that ${basedir} wrongfully got extended to "C:Usersbeaudoinworkspace2gwtpgwtp-coregwtp-mvp-client" when it should have been "C:/Users/beaudoin/workspace2/gwtp/gwtp-core/gwtp-mvp-client"

I tried using ${basedir} instead of ${project.basedir} but it did not work.

I started looking around here:
http://www.google.com/codesearch#bgpu_i12kK4/tags/maven-2.0.2/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java
but could not find any obvious bug.