maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hauschel Fred Robert <FredRobert.Hausc...@Cirquent.de>
Subject maven3 - maven-checkstyle-plugin:2.5 - Property ${basedir} has not been set
Date Wed, 16 Feb 2011 11:28:07 GMT
Hi all,
I've configured checkstyle for a project.
1. If I use the default check style, all works.

2. If I use a absolute path in file system
<configLocation>//xxx\yyy\Checkstyle\ISPA_checkstyle.xml</configLocation
>
The same error as with 3. Happens!

3. If I use:
						<plugin>
	
<groupId>org.apache.maven.plugins</groupId>
	
<artifactId>maven-checkstyle-plugin</artifactId>
	
<version>${version_maven-checkstyle-plugin}</version>
							<configuration>
	
<configLocation>/preferences/XXX_checkstyle.xml</configLocation>
							</configuration>
						</plugin>

The following happens:

[INFO] Generating "Checkstyle" report    --- maven-checkstyle-plugin:2.5
[DEBUG] executeCheckstyle start headerLocation : LICENSE.txt
[DEBUG] Adding the outputDirectory
file:/D:/IDE/workspaces/current/score_common/target/classes/ to the
Checkstyle class path
[DEBUG] request.getConfigLocation() /preferences/XXX_checkstyle.xml
[DEBUG] The resource '/preferences/XXX_checkstyle.xml' was found as
jar:file:/D:/Documents%20and%20Settings/XHAUSF/.m2/repository/com/xxx/sc
ore/buildExtension/0.0.1-SNAPSHOT/buildExtension-0.0.1-SNAPSHOT.jar!/pre
ferences/XXX_checkstyle.xml.
[DEBUG] headerLocation LICENSE.txt
[DEBUG] The resource 'LICENSE.txt' was found as
jar:file:/D:/Documents%20and%20Settings/XHAUSF/.m2/repository/org/apache
/maven/plugins/maven-checkstyle-plugin/2.5/maven-checkstyle-plugin-2.5.j
ar!/LICENSE.txt.
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 17.625s
[INFO] Finished at: Wed Feb 16 12:03:40 CET 2011
[INFO] Final Memory: 22M/58M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-site-plugin:3.0-beta-3:site
(default-site) on project score_common: Error during page generation: 
Error rendering Maven report: Failed during checkstyle execution: Failed
during checkstyle configuration: unable to read 
D:\IDE\workspaces\current\score_common\target\checkstyle-checker.xml -
unable to parse configuration stream - Property ${basedir} has not been
set -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal org.apache.maven.plugins:maven-site-plugin:3.0-beta-3:site
(default-site) on project score_common: Error during page generation

It's great to know, that it find my settings on the classpath in the
buildextension ;-) But wtf is the problem with the basedir?

Any idea ??

Fredy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message