[mevenide-dev] [jira] Commented: (MEVENIDE-435) cannot debug tests when surefire's argLine paramter used in pom
"Jeff Campbell (JIRA)" <jira-yCVjj/[email protected]> Mon, 8 Sep 2008 15:55:49 -0500 (CDT)
| Newsgroups | gmane.comp.jakarta.turbine.maven.mevenide.devel |
|---|---|
| Message-ID | <24773402.1220907349057.JavaMail.haus-jira@codehaus01.managed.contegix.com> |
[ 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