[mevenide-dev] [jira] Created: (MEVENIDE-435) cannot debug tests when surefire's argLine paramter used in pom

View: New views
16 Messages — Rating Filter:   Alert me  

[mevenide-dev] [jira] Created: (MEVENIDE-435) cannot debug tests when surefire's argLine paramter used in pom

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

cannot debug tests when surefire's argLine paramter used in pom
---------------------------------------------------------------

                 Key: MEVENIDE-435
                 URL: http://jira.codehaus.org/browse/MEVENIDE-435
             Project: mevenide
          Issue Type: Bug
          Components: mevenide2-netbeans
    Affects Versions: NB_2.1.1
            Reporter: Milos Kleint
         Assigned To: Milos Kleint
             Fix For: NB_FUTURE


the debug switches are passed to the surefire plugin via the -DargLine=-Xdebug...... property.
However when user defines the argLine parameter for surefire plugin in the pom, the system property is not being evaluated.

There's currently no solution to the problem. One idea that needs some prottyping is to add a method to the embedder that would be able to run the build on top of MavenProject instance instead of a pom file. That we we could dynamically inject the additional debug switches dynamicaly when constructing the MavenProject instance.

--
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

       

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


[jira] Updated: (MEVENIDE-435) cannot debug tests when surefire's argLine paramter used in pom

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

     [ http://jira.codehaus.org/browse/MEVENIDE-435?page=all ]

Milos Kleint updated MEVENIDE-435:
----------------------------------

    Fix Version/s:     (was: NB_FUTURE)
                   NB_2.3

> cannot debug tests when surefire's argLine paramter used in pom
> ---------------------------------------------------------------
>
>                 Key: MEVENIDE-435
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-435
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide2-netbeans
>    Affects Versions: NB_2.1.1
>            Reporter: Milos Kleint
>         Assigned To: Milos Kleint
>             Fix For: NB_2.3
>
>
> the debug switches are passed to the surefire plugin via the -DargLine=-Xdebug...... property.
> However when user defines the argLine parameter for surefire plugin in the pom, the system property is not being evaluated.
> There's currently no solution to the problem. One idea that needs some prottyping is to add a method to the embedder that would be able to run the build on top of MavenProject instance instead of a pom file. That we we could dynamically inject the additional debug switches dynamicaly when constructing the MavenProject instance.

--
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

       

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


[jira] Updated: (MEVENIDE-435) cannot debug tests when surefire's argLine paramter used in pom

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

     [ http://jira.codehaus.org/browse/MEVENIDE-435?page=all ]

Milos Kleint updated MEVENIDE-435:
----------------------------------

    Fix Version/s:     (was: NB_2.3)
                   NB_2.4

postpone, needs changes in maven embedder binaries.

> cannot debug tests when surefire's argLine paramter used in pom
> ---------------------------------------------------------------
>
>                 Key: MEVENIDE-435
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-435
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide2-netbeans
>    Affects Versions: NB_2.1.1
>            Reporter: Milos Kleint
>         Assigned To: Milos Kleint
>             Fix For: NB_2.4
>
>
> the debug switches are passed to the surefire plugin via the -DargLine=-Xdebug...... property.
> However when user defines the argLine parameter for surefire plugin in the pom, the system property is not being evaluated.
> There's currently no solution to the problem. One idea that needs some prottyping is to add a method to the embedder that would be able to run the build on top of MavenProject instance instead of a pom file. That we we could dynamically inject the additional debug switches dynamicaly when constructing the MavenProject instance.

--
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

       

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


[jira] Commented: (MEVENIDE-435) cannot debug tests when surefire's argLine paramter used in pom

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

    [ http://jira.codehaus.org/browse/MEVENIDE-435?page=comments#action_83215 ]
           
Milos Kleint commented on MEVENIDE-435:
---------------------------------------

when talking to jason, I understood that expressions defined in the parameters shall have priority over what's in the pom. The solution then would be to read the value in pom, enhance it and use as -D<key>=<value> on the command line

> cannot debug tests when surefire's argLine paramter used in pom
> ---------------------------------------------------------------
>
>                 Key: MEVENIDE-435
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-435
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide2-netbeans
>    Affects Versions: NB_2.1.1
>            Reporter: Milos Kleint
>         Assigned To: Milos Kleint
>             Fix For: NB_2.4
>
>
> the debug switches are passed to the surefire plugin via the -DargLine=-Xdebug...... property.
> However when user defines the argLine parameter for surefire plugin in the pom, the system property is not being evaluated.
> There's currently no solution to the problem. One idea that needs some prottyping is to add a method to the embedder that would be able to run the build on top of MavenProject instance instead of a pom file. That we we could dynamically inject the additional debug switches dynamicaly when constructing the MavenProject instance.

--
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

       

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


[jira] Commented: (MEVENIDE-435) cannot debug tests when surefire's argLine paramter used in pom

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MEVENIDE-435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_111245 ]

Milos Kleint commented on MEVENIDE-435:
---------------------------------------

A workaround for the issue:

Assuming your surefire setup is like this and your tests need the foobar property set in order to pass.

{code:xml}
<project>
....
 <build>
     <plugins>
         <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-surefire-plugin</artifactId>
             <version>2.3</version>
             <configuration>
               <argLine>-Dfoobar=YES</argLine>
             </configuration>
         </plugin>
     </plugins>
 </build>
</project>
{code}

1. Add a profile to the pom.xml with the following <profiles> section

{code:xml}
 <profiles>
     <profile>
         <id>debug</id>
         <activation>
             <property>
                 <name>debug</name>
                 <value>true</value>
             </property>
         </activation>
         <build>
             <plugins>
                 <plugin>
                     <groupId>org.apache.maven.plugins</groupId>
                     <artifactId>maven-surefire-plugin</artifactId>
                     <version>2.3</version>
                     <configuration>
                         <argLine>-Dfoobar=YES ${argLine}</argLine>
                     </configuration>
                 </plugin>
             </plugins>
         </build>
     </profile>
 </profiles>
{code}

2. Then go to the project's Properties dialog and in the Actions panel, find the "Debug Test" action mapping and add "debug=true" to the list of properties already present.

Then invoking the "Debug file" action on the test class should run the test and stop at breakpoints correctly. It will not in 6.0 betas when using the command-line maven instance for building (issue http://www.netbeans.org/issues/show_bug.cgi?id=119866)

The only downside to the workaround is that you have the foobar property setup at 2 distinct places.

If you don't want to include the profile in the pom.xml file, placing it into ${basedir}/profiles.xml shall work in the same manner. profiles.xml is not shareable by default, so might be a better location.


> cannot debug tests when surefire's argLine paramter used in pom
> ---------------------------------------------------------------
>
>                 Key: MEVENIDE-435
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-435
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide2-netbeans
>    Affects Versions: NB_2.1.1
>            Reporter: Milos Kleint
>            Assignee: Milos Kleint
>             Fix For: NB_2.4
>
>
> the debug switches are passed to the surefire plugin via the -DargLine=-Xdebug...... property.
> However when user defines the argLine parameter for surefire plugin in the pom, the system property is not being evaluated.
> There's currently no solution to the problem. One idea that needs some prottyping is to add a method to the embedder that would be able to run the build on top of MavenProject instance instead of a pom file. That we we could dynamically inject the additional debug switches dynamicaly when constructing the MavenProject instance.

--
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

       

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


[jira] Commented: (MEVENIDE-435) cannot debug tests when surefire's argLine paramter used in pom

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MEVENIDE-435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_120289 ]

Milos Kleint commented on MEVENIDE-435:
---------------------------------------

in surefire plugin 2.4 there's a new property ${maven.surefire.debug} which is used to pass debugging params into the forked jvm. These are added to the arg parameter.

> cannot debug tests when surefire's argLine paramter used in pom
> ---------------------------------------------------------------
>
>                 Key: MEVENIDE-435
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-435
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide2-netbeans
>    Affects Versions: NB_2.1.1
>            Reporter: Milos Kleint
>            Assignee: Milos Kleint
>             Fix For: NB_2.4
>
>
> the debug switches are passed to the surefire plugin via the -DargLine=-Xdebug...... property.
> However when user defines the argLine parameter for surefire plugin in the pom, the system property is not being evaluated.
> There's currently no solution to the problem. One idea that needs some prottyping is to add a method to the embedder that would be able to run the build on top of MavenProject instance instead of a pom file. That we we could dynamically inject the additional debug switches dynamicaly when constructing the MavenProject instance.

--
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

       

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


[jira] Commented: (MEVENIDE-435) cannot debug tests when surefire's argLine paramter used in pom

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MEVENIDE-435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=135974#action_135974 ]

Jeff Campbell commented on MEVENIDE-435:
----------------------------------------

We are seeing the same problem.  We are using 2.4.3 surefire plugin and it does not seem to help.  

> cannot debug tests when surefire's argLine paramter used in pom
> ---------------------------------------------------------------
>
>                 Key: MEVENIDE-435
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-435
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide2-netbeans
>    Affects Versions: NB_2.1.1
>            Reporter: Milos Kleint
>            Assignee: Milos Kleint
>             Fix For: NB_2.4
>
>
> the debug switches are passed to the surefire plugin via the -DargLine=-Xdebug...... property.
> However when user defines the argLine parameter for surefire plugin in the pom, the system property is not being evaluated.
> There's currently no solution to the problem. One idea that needs some prottyping is to add a method to the embedder that would be able to run the build on top of MavenProject instance instead of a pom file. That we we could dynamically inject the additional debug switches dynamicaly when constructing the MavenProject instance.

--
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

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Updated: (MEVENIDE-435) cannot debug tests when surefire's argLine paramter used in pom

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/MEVENIDE-435?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arne And updated MEVENIDE-435:
------------------------------

    Attachment: SurefirePlugin.java

Suggested solution, having an 'externalArgLine' readOnly property which also defaults to ${argLine}, and an 'inheritArgLine' boolean defaulting to true. If user sets 'argLine', it will be appended to 'externalArgLine' if 'inheritArgLine' is true. The inherit can of course be turned off if desirable. See attached suggested implementation. Not sure if it is the ultimate solution, but at least it worked for me, and gives the user of the plugin the possibility to decide what argLine to use

> cannot debug tests when surefire's argLine paramter used in pom
> ---------------------------------------------------------------
>
>                 Key: MEVENIDE-435
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-435
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide2-netbeans
>    Affects Versions: NB_2.1.1
>            Reporter: Milos Kleint
>            Assignee: Milos Kleint
>             Fix For: NB_2.4
>
>         Attachments: SurefirePlugin.java
>
>
> the debug switches are passed to the surefire plugin via the -DargLine=-Xdebug...... property.
> However when user defines the argLine parameter for surefire plugin in the pom, the system property is not being evaluated.
> There's currently no solution to the problem. One idea that needs some prottyping is to add a method to the embedder that would be able to run the build on top of MavenProject instance instead of a pom file. That we we could dynamically inject the additional debug switches dynamicaly when constructing the MavenProject instance.

--
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

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Commented: (MEVENIDE-435) cannot debug tests when surefire's argLine paramter used in pom

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MEVENIDE-435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=147366#action_147366 ]

Jeff Campbell commented on MEVENIDE-435:
----------------------------------------

This Bug makes it IMPOSSIBLE to debug a project that uses JMockit tests for its tests because the following needs to be in the pom.xml file:

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>  
                    <argLine>-javaagent:"${settings.localRepository}/jmockit/jmockit/0.94/jmockit-0.94.jar"</argLine>
                    <useSystemClassLoader>true</useSystemClassLoader>
                    <forkMode>always</forkMode>
                </configuration>
            </plugin>


> cannot debug tests when surefire's argLine paramter used in pom
> ---------------------------------------------------------------
>
>                 Key: MEVENIDE-435
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-435
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide2-netbeans
>    Affects Versions: NB_2.1.1
>            Reporter: Milos Kleint
>            Assignee: Milos Kleint
>             Fix For: NB_2.4
>
>         Attachments: SurefirePlugin.java
>
>
> the debug switches are passed to the surefire plugin via the -DargLine=-Xdebug...... property.
> However when user defines the argLine parameter for surefire plugin in the pom, the system property is not being evaluated.
> There's currently no solution to the problem. One idea that needs some prottyping is to add a method to the embedder that would be able to run the build on top of MavenProject instance instead of a pom file. That we we could dynamically inject the additional debug switches dynamicaly when constructing the MavenProject instance.

--
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

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Commented: (MEVENIDE-435) cannot debug tests when surefire's argLine paramter used in pom

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MEVENIDE-435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=147520#action_147520 ]

Milos Kleint commented on MEVENIDE-435:
---------------------------------------

Jeff, the maven.sufefire.debug property expression shall be working for you. Just replace the argLine in the action mapping dialog (in Project's properties) with maven.sufefire.debug=<the old value of argLine>

See
http://maven.apache.org/plugins/maven-surefire-plugin/examples/debugging.html

however your problem could be with the -javaagent switch, not sure never used it. If you can provide a sample project I can try debugging it.

IN any case for post netbeans  6.5 maven support, I'm planning to use maven.surefire.debug by default.

> cannot debug tests when surefire's argLine paramter used in pom
> ---------------------------------------------------------------
>
>                 Key: MEVENIDE-435
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-435
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide2-netbeans
>    Affects Versions: NB_2.1.1
>            Reporter: Milos Kleint
>            Assignee: Milos Kleint
>             Fix For: NB_2.4
>
>         Attachments: SurefirePlugin.java
>
>
> the debug switches are passed to the surefire plugin via the -DargLine=-Xdebug...... property.
> However when user defines the argLine parameter for surefire plugin in the pom, the system property is not being evaluated.
> There's currently no solution to the problem. One idea that needs some prottyping is to add a method to the embedder that would be able to run the build on top of MavenProject instance instead of a pom file. That we we could dynamically inject the additional debug switches dynamicaly when constructing the MavenProject instance.

--
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

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Updated: (MEVENIDE-435) cannot debug tests when surefire's argLine paramter used in pom

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/MEVENIDE-435?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeff Campbell updated MEVENIDE-435:
-----------------------------------

    Attachment: surefire-argline-debug.zip

Attached is a VERY simple Maven jar project that shows our issues for debugging in NetBeans, with a Maven project that requires the <argLine> to be specified.  The sample project uses jmockit to run a simple mock test.  In this case jmockit requires a <argLine> parameter to run successfully.

Side note (I don't know if this has any impact on a fix)... We do NOT check-in any Netbeans specific files into our source control.  Because 50% of us are using NetBeans, 48% of us are using Eclipse, and 2% are using IntelliJ, we do NOT want to check-in any files that are IDE specific (can get really messy to have a bunch of mixed IDE specific files).  So..... hopefully the fix will allow a raw Maven project to debug the attached Maven project.

> cannot debug tests when surefire's argLine paramter used in pom
> ---------------------------------------------------------------
>
>                 Key: MEVENIDE-435
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-435
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide2-netbeans
>    Affects Versions: NB_2.1.1
>            Reporter: Milos Kleint
>            Assignee: Milos Kleint
>             Fix For: NB_2.4
>
>         Attachments: surefire-argline-debug.zip, SurefirePlugin.java
>
>
> the debug switches are passed to the surefire plugin via the -DargLine=-Xdebug...... property.
> However when user defines the argLine parameter for surefire plugin in the pom, the system property is not being evaluated.
> There's currently no solution to the problem. One idea that needs some prottyping is to add a method to the embedder that would be able to run the build on top of MavenProject instance instead of a pom file. That we we could dynamically inject the additional debug switches dynamicaly when constructing the MavenProject instance.

--
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

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Commented: (MEVENIDE-435) cannot debug tests when surefire's argLine paramter used in pom

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MEVENIDE-435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=147694#action_147694 ]

Jeff Campbell commented on MEVENIDE-435:
----------------------------------------

One additional side comment.... half of us that use NetBeans are using 6.5 Nightly with the MevenIDE 4.0.4 plugin and we are STILL seeing the same issue.

> cannot debug tests when surefire's argLine paramter used in pom
> ---------------------------------------------------------------
>
>                 Key: MEVENIDE-435
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-435
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide2-netbeans
>    Affects Versions: NB_2.1.1
>            Reporter: Milos Kleint
>            Assignee: Milos Kleint
>             Fix For: NB_2.4
>
>         Attachments: surefire-argline-debug.zip, SurefirePlugin.java
>
>
> the debug switches are passed to the surefire plugin via the -DargLine=-Xdebug...... property.
> However when user defines the argLine parameter for surefire plugin in the pom, the system property is not being evaluated.
> There's currently no solution to the problem. One idea that needs some prottyping is to add a method to the embedder that would be able to run the build on top of MavenProject instance instead of a pom file. That we we could dynamically inject the additional debug switches dynamicaly when constructing the MavenProject instance.

--
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

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Commented: (MEVENIDE-435) cannot debug tests when surefire's argLine paramter used in pom

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MEVENIDE-435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=147768#action_147768 ]

Milos Kleint commented on MEVENIDE-435:
---------------------------------------

Sure, it's not working in 6.5, as I mentioned earlier. I'll be switching to maven.surefire.debug property AFTER 6.5.
So you either use the suggested workaround and will have to live without debugging tests, sorry. Checking the nbactions.xml file (with custom action mappings in netbeans) has no effect whatsoever on eclipse or idea users.

> cannot debug tests when surefire's argLine paramter used in pom
> ---------------------------------------------------------------
>
>                 Key: MEVENIDE-435
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-435
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide2-netbeans
>    Affects Versions: NB_2.1.1
>            Reporter: Milos Kleint
>            Assignee: Milos Kleint
>             Fix For: NB_2.4
>
>         Attachments: surefire-argline-debug.zip, SurefirePlugin.java
>
>
> the debug switches are passed to the surefire plugin via the -DargLine=-Xdebug...... property.
> However when user defines the argLine parameter for surefire plugin in the pom, the system property is not being evaluated.
> There's currently no solution to the problem. One idea that needs some prottyping is to add a method to the embedder that would be able to run the build on top of MavenProject instance instead of a pom file. That we we could dynamically inject the additional debug switches dynamicaly when constructing the MavenProject instance.

--
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

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Commented: (MEVENIDE-435) cannot debug tests when surefire's argLine paramter used in pom

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MEVENIDE-435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=149763#action_149763 ]

Milos Kleint commented on MEVENIDE-435:
---------------------------------------

done for netbeans.next - http://hg.netbeans.org/maven-dev/rev/2f6ef9d18287


> cannot debug tests when surefire's argLine paramter used in pom
> ---------------------------------------------------------------
>
>                 Key: MEVENIDE-435
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-435
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide2-netbeans
>    Affects Versions: NB_2.1.1
>            Reporter: Milos Kleint
>            Assignee: Milos Kleint
>             Fix For: NB_2.4
>
>         Attachments: surefire-argline-debug.zip, SurefirePlugin.java
>
>
> the debug switches are passed to the surefire plugin via the -DargLine=-Xdebug...... property.
> However when user defines the argLine parameter for surefire plugin in the pom, the system property is not being evaluated.
> There's currently no solution to the problem. One idea that needs some prottyping is to add a method to the embedder that would be able to run the build on top of MavenProject instance instead of a pom file. That we we could dynamically inject the additional debug switches dynamicaly when constructing the MavenProject instance.

--
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

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Commented: (MEVENIDE-435) cannot debug tests when surefire's argLine paramter used in pom

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MEVENIDE-435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=156526#action_156526 ]

Jaromir Uhrik commented on MEVENIDE-435:
----------------------------------------

This bug was transferred to the NetBeans Issuezilla bug tracking system as http://www.netbeans.org/issues/show_bug.cgi?id=154477

> cannot debug tests when surefire's argLine paramter used in pom
> ---------------------------------------------------------------
>
>                 Key: MEVENIDE-435
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-435
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide2-netbeans
>    Affects Versions: NB_2.1.1
>            Reporter: Milos Kleint
>            Assignee: Milos Kleint
>             Fix For: NB_2.4
>
>         Attachments: surefire-argline-debug.zip, SurefirePlugin.java
>
>
> the debug switches are passed to the surefire plugin via the -DargLine=-Xdebug...... property.
> However when user defines the argLine parameter for surefire plugin in the pom, the system property is not being evaluated.
> There's currently no solution to the problem. One idea that needs some prottyping is to add a method to the embedder that would be able to run the build on top of MavenProject instance instead of a pom file. That we we could dynamically inject the additional debug switches dynamicaly when constructing the MavenProject instance.

--
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

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Closed: (MEVENIDE-435) cannot debug tests when surefire's argLine paramter used in pom

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/MEVENIDE-435?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Milos Kleint closed MEVENIDE-435.
---------------------------------

    Resolution: Duplicate

closing the issue as duplicate of the newly created one in netbeans.org issuezilla.
Please post your additional comments to the new issue.

> cannot debug tests when surefire's argLine paramter used in pom
> ---------------------------------------------------------------
>
>                 Key: MEVENIDE-435
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-435
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide2-netbeans
>    Affects Versions: NB_2.1.1
>            Reporter: Milos Kleint
>            Assignee: Milos Kleint
>             Fix For: NB_2.4
>
>         Attachments: surefire-argline-debug.zip, SurefirePlugin.java
>
>
> the debug switches are passed to the surefire plugin via the -DargLine=-Xdebug...... property.
> However when user defines the argLine parameter for surefire plugin in the pom, the system property is not being evaluated.
> There's currently no solution to the problem. One idea that needs some prottyping is to add a method to the embedder that would be able to run the build on top of MavenProject instance instead of a pom file. That we we could dynamically inject the additional debug switches dynamicaly when constructing the MavenProject instance.

--
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

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email