-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Blocker
-
Component/s: sonar-plugin
-
None
-
Environment:Windows 2003 + Maven 2.2.1
We run Hudson in Master Slave mode. All maven builds run on Windows slaves.
The problem now is that Sonar fails to call mvn.bat with unquoted params.
s:\localpath\apache-maven-2.2.1\bin\mvn.bat -f pom.xml -Dsonar.jdbc.url=jdbc:mysql://host/sonar?useUnicode=true&characterEncoding=utf8 -Dsonar.jdbc.password=sonar -Dsonar.jdbc.driver=com.mysql.jdbc.Driver -Dsonar.host.url=http://host/sonar -Dsonar.jdbc.username=sonar "-Dmaven.repo.local=D:\localpath\.repository" -e -B sonar:sonar
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Project XXX
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO]
You must specify at least one goal or lifecycle phase to perform build steps.
The following list illustrates some commonly used build commands:
The problem in this mvn.bat call is, that param -Dsonar.jdbc.url=jdbc:mysql://host/sonar?useUnicode=true&characterEncoding=utf8 must be quoted on windows (i think the problem is the & in jdbc url). If i quote it on command line (like "-Dmaven.repo.local=D:\localpath\.repository"), it works well.
Please fix it asap.
I try 1.2.1 and 1.2.2 - fails on both versions.