[JIRA] Created: (HUDSON-5501) Sonar Plugins 1.2.2 fails on Windows

classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

[JIRA] Created: (HUDSON-5501) Sonar Plugins 1.2.2 fails on Windows

Hudson issues mailing list
Sonar Plugins 1.2.2 fails on Windows
------------------------------------

                 Key: HUDSON-5501
                 URL: http://issues.hudson-ci.org/browse/HUDSON-5501
             Project: Hudson
          Issue Type: Bug
          Components: sonar
         Environment: Windows 2003 + Maven 2.2.1
            Reporter: azgard
            Assignee: sonarteam
            Priority: Blocker


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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (HUDSON-5501) Sonar Plugins 1.2.2 fails on Windows

Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=135563#action_135563 ]

sbrandhof commented on HUDSON-5501:
-----------------------------------

The best way to "fix it asap" is to provide a patch.

> Sonar Plugins 1.2.2 fails on Windows
> ------------------------------------
>
>                 Key: HUDSON-5501
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5501
>             Project: Hudson
>          Issue Type: Bug
>          Components: sonar
>         Environment: Windows 2003 + Maven 2.2.1
>            Reporter: azgard
>            Assignee: sonarteam
>            Priority: Blocker
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Issue Comment Edited: (HUDSON-5501) Sonar Plugins 1.2.2 fails on Windows

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=135563#action_135563 ]

sbrandhof edited comment on HUDSON-5501 at 2/4/10 4:50 AM:
-----------------------------------------------------------

The best way to "fix it asap" is to provide a patch ;-)

      was (Author: sbrandhof):
    The best way to "fix it asap" is to provide a patch.
 

> Sonar Plugins 1.2.2 fails on Windows
> ------------------------------------
>
>                 Key: HUDSON-5501
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5501
>             Project: Hudson
>          Issue Type: Bug
>          Components: sonar
>         Environment: Windows 2003 + Maven 2.2.1
>            Reporter: azgard
>            Assignee: sonarteam
>            Priority: Blocker
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (HUDSON-5501) Sonar Plugins 1.2.2 fails on Windows

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=135564#action_135564 ]

godin commented on HUDSON-5501:
-------------------------------

This bug actually related to Hudson Maven invoker, which used in Hudson Sonar Plugin. Patch already ready, but not applied. So, you should wait until it will be fixed in future Hudson release. Current workaround is not use "&characterEncoding=utf8" and configure this on mysql side.

> Sonar Plugins 1.2.2 fails on Windows
> ------------------------------------
>
>                 Key: HUDSON-5501
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5501
>             Project: Hudson
>          Issue Type: Bug
>          Components: sonar
>         Environment: Windows 2003 + Maven 2.2.1
>            Reporter: azgard
>            Assignee: sonarteam
>            Priority: Blocker
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (HUDSON-5501) Sonar Plugins 1.2.2 fails on Windows

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=135566#action_135566 ]

azgard commented on HUDSON-5501:
--------------------------------

Thanks for your very very fast response. :-)

I actually use godin's workaround. And it works.

Interesting to hear it is a hudon - not sonar - bug. Will Hudson quote the params? What is the case number for this bug? Can you provide it?

> Sonar Plugins 1.2.2 fails on Windows
> ------------------------------------
>
>                 Key: HUDSON-5501
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5501
>             Project: Hudson
>          Issue Type: Bug
>          Components: sonar
>         Environment: Windows 2003 + Maven 2.2.1
>            Reporter: azgard
>            Assignee: sonarteam
>            Priority: Blocker
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (HUDSON-5501) Sonar Plugins 1.2.2 fails on Windows

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=135569#action_135569 ]

godin commented on HUDSON-5501:
-------------------------------

Hudson quotes params, but not for every case. And no - I can't provide issue number for this, but I can point you to source code line ;) Do you need this?

> Sonar Plugins 1.2.2 fails on Windows
> ------------------------------------
>
>                 Key: HUDSON-5501
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5501
>             Project: Hudson
>          Issue Type: Bug
>          Components: sonar
>         Environment: Windows 2003 + Maven 2.2.1
>            Reporter: azgard
>            Assignee: sonarteam
>            Priority: Blocker
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (HUDSON-5501) Sonar Plugins 1.2.2 fails on Windows

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=135570#action_135570 ]

azgard commented on HUDSON-5501:
--------------------------------

Ye, please.

> Sonar Plugins 1.2.2 fails on Windows
> ------------------------------------
>
>                 Key: HUDSON-5501
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5501
>             Project: Hudson
>          Issue Type: Bug
>          Components: sonar
>         Environment: Windows 2003 + Maven 2.2.1
>            Reporter: azgard
>            Assignee: sonarteam
>            Priority: Blocker
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Issue Comment Edited: (HUDSON-5501) Sonar Plugins 1.2.2 fails on Windows

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=135570#action_135570 ]

azgard edited comment on HUDSON-5501 at 2/4/10 5:11 AM:
--------------------------------------------------------

Yes, please.

      was (Author: azgard):
    Ye, please.
 

> Sonar Plugins 1.2.2 fails on Windows
> ------------------------------------
>
>                 Key: HUDSON-5501
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5501
>             Project: Hudson
>          Issue Type: Bug
>          Components: sonar
>         Environment: Windows 2003 + Maven 2.2.1
>            Reporter: azgard
>            Assignee: sonarteam
>            Priority: Blocker
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (HUDSON-5501) Sonar Plugins 1.2.2 fails on Windows

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=135574#action_135574 ]

godin commented on HUDSON-5501:
-------------------------------

Take a look on class hudson.tasks.Maven it uses hudson.util.ArgumentListBuilder
ArgumentListBuilder adds quotes in case if argument contains space.

> Sonar Plugins 1.2.2 fails on Windows
> ------------------------------------
>
>                 Key: HUDSON-5501
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5501
>             Project: Hudson
>          Issue Type: Bug
>          Components: sonar
>         Environment: Windows 2003 + Maven 2.2.1
>            Reporter: azgard
>            Assignee: sonarteam
>            Priority: Blocker
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Issue Comment Edited: (HUDSON-5501) Sonar Plugins 1.2.2 fails on Windows

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=135574#action_135574 ]

godin edited comment on HUDSON-5501 at 2/4/10 5:21 AM:
-------------------------------------------------------

Take a look on class hudson.tasks.Maven it uses hudson.util.ArgumentListBuilder
ArgumentListBuilder adds quotes in case if argument contains space. But in case of windows we also should quote at least character "&".

      was (Author: godin):
    Take a look on class hudson.tasks.Maven it uses hudson.util.ArgumentListBuilder
ArgumentListBuilder adds quotes in case if argument contains space.
 

> Sonar Plugins 1.2.2 fails on Windows
> ------------------------------------
>
>                 Key: HUDSON-5501
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5501
>             Project: Hudson
>          Issue Type: Bug
>          Components: sonar
>         Environment: Windows 2003 + Maven 2.2.1
>            Reporter: azgard
>            Assignee: sonarteam
>            Priority: Blocker
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (HUDSON-5501) Sonar Plugins 1.2.2 fails on Windows

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=135575#action_135575 ]

azgard commented on HUDSON-5501:
--------------------------------

Should I/you open/provided a patch/issue?

> Sonar Plugins 1.2.2 fails on Windows
> ------------------------------------
>
>                 Key: HUDSON-5501
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5501
>             Project: Hudson
>          Issue Type: Bug
>          Components: sonar
>         Environment: Windows 2003 + Maven 2.2.1
>            Reporter: azgard
>            Assignee: sonarteam
>            Priority: Blocker
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Issue Comment Edited: (HUDSON-5501) Sonar Plugins 1.2.2 fails on Windows

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=135575#action_135575 ]

azgard edited comment on HUDSON-5501 at 2/4/10 5:35 AM:
--------------------------------------------------------

Should I/you open a issue/provided a patch?

      was (Author: azgard):
    Should I/you open/provided a patch/issue?
 

> Sonar Plugins 1.2.2 fails on Windows
> ------------------------------------
>
>                 Key: HUDSON-5501
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5501
>             Project: Hudson
>          Issue Type: Bug
>          Components: sonar
>         Environment: Windows 2003 + Maven 2.2.1
>            Reporter: azgard
>            Assignee: sonarteam
>            Priority: Blocker
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Issue Comment Edited: (HUDSON-5501) Sonar Plugins 1.2.2 fails on Windows

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=135575#action_135575 ]

azgard edited comment on HUDSON-5501 at 2/4/10 6:45 AM:
--------------------------------------------------------

Should I/you open a issue/provided a patch?

Why not always qoute on windows?

      was (Author: azgard):
    Should I/you open a issue/provided a patch?
 

> Sonar Plugins 1.2.2 fails on Windows
> ------------------------------------
>
>                 Key: HUDSON-5501
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5501
>             Project: Hudson
>          Issue Type: Bug
>          Components: sonar
>         Environment: Windows 2003 + Maven 2.2.1
>            Reporter: azgard
>            Assignee: sonarteam
>            Priority: Blocker
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (HUDSON-5501) Sonar Plugins 1.2.2 fails on Windows

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=135595#action_135595 ]

godin commented on HUDSON-5501:
-------------------------------

Why are you asking me? Ask author of ArgumentListBuilder ;)

> Sonar Plugins 1.2.2 fails on Windows
> ------------------------------------
>
>                 Key: HUDSON-5501
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5501
>             Project: Hudson
>          Issue Type: Bug
>          Components: sonar
>         Environment: Windows 2003 + Maven 2.2.1
>            Reporter: azgard
>            Assignee: sonarteam
>            Priority: Blocker
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (HUDSON-5501) Sonar Plugins 1.2.2 fails on Windows

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=135597#action_135597 ]

godin commented on HUDSON-5501:
-------------------------------

Here is discussion in dev mailing list: http://n4.nabble.com/hudson-tasks-Maven-with-in-properties-fails-on-windows-tp1469973p1469973.html

> Sonar Plugins 1.2.2 fails on Windows
> ------------------------------------
>
>                 Key: HUDSON-5501
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5501
>             Project: Hudson
>          Issue Type: Bug
>          Components: sonar
>         Environment: Windows 2003 + Maven 2.2.1
>            Reporter: azgard
>            Assignee: sonarteam
>            Priority: Blocker
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Resolved: (HUDSON-5501) Sonar Plugins 1.2.2 fails on Windows

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

     [ http://issues.hudson-ci.org/browse/HUDSON-5501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

godin resolved HUDSON-5501.
---------------------------

    Resolution: Fixed

See [http://jira.codehaus.org/browse/SONARPLUGINS-363]

> Sonar Plugins 1.2.2 fails on Windows
> ------------------------------------
>
>                 Key: HUDSON-5501
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5501
>             Project: Hudson
>          Issue Type: Bug
>          Components: sonar
>         Environment: Windows 2003 + Maven 2.2.1
>            Reporter: azgard
>            Assignee: sonarteam
>            Priority: Blocker
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Closed: (HUDSON-5501) Sonar Plugins 1.2.2 fails on Windows

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

     [ http://issues.hudson-ci.org/browse/HUDSON-5501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

godin closed HUDSON-5501.
-------------------------


Fixed in 1.3.

> Sonar Plugins 1.2.2 fails on Windows
> ------------------------------------
>
>                 Key: HUDSON-5501
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5501
>             Project: Hudson
>          Issue Type: Bug
>          Components: sonar
>         Environment: Windows 2003 + Maven 2.2.1
>            Reporter: azgard
>            Assignee: sonarteam
>            Priority: Blocker
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]