added a comment - - edited
Just tested the provided snapshot and it is now working in both windows and linux build environments. I was running into the issue described in SONARPLUGINS-363. Here is a log of the two runs for the part that shows sonar running.
Windows (slave):
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11 seconds
[INFO] Finished at: Fri Feb 26 14:56:07 PST 2010
[INFO] Final Memory: 22M/44M
[INFO] ------------------------------------------------------------------------
channel stopped
[trunk] $ "C:\Program Files (x86)\Apache\Maven\2.2.1\bin\mvn.bat" -f pom.xml -e -B sonar:sonar -Dsonar.jdbc.driver=com.mysql.jdbc.Driver "-Dsonar.jdbc.url=jdbc:mysql://dbhost:3306/sonar?autoReconnect=true&useUnicode=true&characterEncoding=utf8" -Dsonar.jdbc.username=sonar -Dsonar.jdbc.password=thepassword -Dsonar.host.url=http://sonarhost:9000
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'sonar'.
[INFO] ------------------------------------------------------------------------
[INFO] Building My Project
[INFO] task-segment: [sonar:sonar] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] [sonar:sonar
{execution: default-cli}
]
Linux (master):
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21 seconds
[INFO] Finished at: Fri Feb 26 15:01:10 PST 2010
[INFO] Final Memory: 42M/217M
[INFO] ------------------------------------------------------------------------
channel stopped
[trunk] $ /var/lib/hudson/tools/Maven_2.2.1/bin/mvn -f pom.xml -e -B sonar:sonar -Dsonar.jdbc.driver=com.mysql.jdbc.Driver -Dsonar.jdbc.url=jdbc:mysql://dbhost:3306/sonar?autoReconnect=true&useUnicode=true&characterEncoding=utf8 ******** ******** -Dsonar.host.url=http://sonarhost:9000
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'sonar'.
[INFO] ------------------------------------------------------------------------
[INFO] Building My Project
[INFO] task-segment: [sonar:sonar] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] [sonar:sonar
{execution: default-cli}
]
I did notice that on the linux master the sonar username / password was masked but the windows slave still was showing the values within the log. Guessing that is a seperate bug.
I don't have Solaris to test it, but most probably it's fixed in trunk.