You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Per Olesen (JIRA)" <ji...@codehaus.org> on 2008/11/24 14:13:19 UTC

[jira] Created: (MNG-3867) Support MAVEN_OPTS in mvnDebug script

Support MAVEN_OPTS in mvnDebug script
-------------------------------------

                 Key: MNG-3867
                 URL: http://jira.codehaus.org/browse/MNG-3867
             Project: Maven 2
          Issue Type: Improvement
          Components: Command Line
    Affects Versions: 2.0.9
            Reporter: Per Olesen
            Priority: Minor


When using "mvnDebug" to start maven, the MAVEN_OPTS environment variable from $HOME/.mavenrc is not used. This makes it hard to set stuff like -Xmx on a debuggable maven instance.

Workaround of course is not to use mvnDebug but put all debug option, including the -Xmx, inside the MAVEN_OPTS, but this kind of beats the purpose of mvnDebug :-)

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

        

[jira] Closed: (MNG-3867) Support MAVEN_OPTS in mvnDebug script

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MNG-3867.
----------------------------------

         Assignee: Benjamin Bentmann
       Resolution: Fixed
    Fix Version/s:     (was: 2.0.x)
                   3.0-alpha-1
                   2.1.0-M2
                   2.0.11

Fixed in [r728940|http://svn.eu.apache.org/viewvc?view=rev&revision=728940], [r728942|http://svn.eu.apache.org/viewvc?view=rev&revision=728942] and [r728945|http://svn.eu.apache.org/viewvc?view=rev&revision=728945], respectively.

> Support MAVEN_OPTS in mvnDebug script
> -------------------------------------
>
>                 Key: MNG-3867
>                 URL: http://jira.codehaus.org/browse/MNG-3867
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Command Line
>    Affects Versions: 2.0.9
>            Reporter: Per Olesen
>            Assignee: Benjamin Bentmann
>            Priority: Minor
>             Fix For: 2.0.11, 2.1.0-M2, 3.0-alpha-1
>
>         Attachments: debug-opts.patch
>
>
> When using "mvnDebug" to start maven, the MAVEN_OPTS environment variable from $HOME/.mavenrc is not used. This makes it hard to set stuff like -Xmx on a debuggable maven instance.
> Workaround of course is not to use mvnDebug but put all debug option, including the -Xmx, inside the MAVEN_OPTS, but this kind of beats the purpose of mvnDebug :-)

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

        

[jira] Updated: (MNG-3867) Support MAVEN_OPTS in mvnDebug script

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann updated MNG-3867:
-----------------------------------

    Attachment: debug-opts.patch

The problem right now is that mvnDebug uses INT_MAVEN_OPTS which is initialized at the start of the script with both the debug options and the current value of MAVEN_OPTS. The proposed patch separates the debug options into a distinct variable MAVEN_DEBUG_OPTS which can be set independently from MAVEN_OPTS. The debug script passes both these variables to the command line of the java launcher.

> Support MAVEN_OPTS in mvnDebug script
> -------------------------------------
>
>                 Key: MNG-3867
>                 URL: http://jira.codehaus.org/browse/MNG-3867
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Command Line
>    Affects Versions: 2.0.9
>            Reporter: Per Olesen
>            Priority: Minor
>             Fix For: 2.0.x
>
>         Attachments: debug-opts.patch
>
>
> When using "mvnDebug" to start maven, the MAVEN_OPTS environment variable from $HOME/.mavenrc is not used. This makes it hard to set stuff like -Xmx on a debuggable maven instance.
> Workaround of course is not to use mvnDebug but put all debug option, including the -Xmx, inside the MAVEN_OPTS, but this kind of beats the purpose of mvnDebug :-)

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

        

[jira] Commented: (MNG-3867) Support MAVEN_OPTS in mvnDebug script

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=158907#action_158907 ] 

Brett Porter commented on MNG-3867:
-----------------------------------

looks good to me, want to apply it? :)

> Support MAVEN_OPTS in mvnDebug script
> -------------------------------------
>
>                 Key: MNG-3867
>                 URL: http://jira.codehaus.org/browse/MNG-3867
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Command Line
>    Affects Versions: 2.0.9
>            Reporter: Per Olesen
>            Priority: Minor
>             Fix For: 2.0.x
>
>         Attachments: debug-opts.patch
>
>
> When using "mvnDebug" to start maven, the MAVEN_OPTS environment variable from $HOME/.mavenrc is not used. This makes it hard to set stuff like -Xmx on a debuggable maven instance.
> Workaround of course is not to use mvnDebug but put all debug option, including the -Xmx, inside the MAVEN_OPTS, but this kind of beats the purpose of mvnDebug :-)

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

        

[jira] Updated: (MNG-3867) Support MAVEN_OPTS in mvnDebug script

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MNG-3867:
------------------------------

    Fix Version/s: 2.0.x

could you submit a patch?

> Support MAVEN_OPTS in mvnDebug script
> -------------------------------------
>
>                 Key: MNG-3867
>                 URL: http://jira.codehaus.org/browse/MNG-3867
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Command Line
>    Affects Versions: 2.0.9
>            Reporter: Per Olesen
>            Priority: Minor
>             Fix For: 2.0.x
>
>
> When using "mvnDebug" to start maven, the MAVEN_OPTS environment variable from $HOME/.mavenrc is not used. This makes it hard to set stuff like -Xmx on a debuggable maven instance.
> Workaround of course is not to use mvnDebug but put all debug option, including the -Xmx, inside the MAVEN_OPTS, but this kind of beats the purpose of mvnDebug :-)

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