[
https://issues.apache.org/jira/browse/MNG-7358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17459874#comment-17459874
]
Odne Hellebø commented on MNG-7358:
-----------------------------------
Ok. I don't think it is a matter of change from maven 3 to 4 either, since I
can't get it to work with maven 3 either. Asked a colleague to test and he
experienced the same thing with maven 3's mvnDebug. The command {code:sh}
mvn -Dmaven.surefire.debug="-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -Xnoagent
-Djava.compiler=NONE" test
{code}
worked though. My colleague is on ubuntu, and I'm on arch. If you don't have
any good ideas, (or any others) I'll just make an alias for the new version as
well.
> Can't debug with mvnDebug with version 4
> ----------------------------------------
>
> Key: MNG-7358
> URL: https://issues.apache.org/jira/browse/MNG-7358
> Project: Maven
> Issue Type: Bug
> Components: Command Line
> Affects Versions: 4.0.x-candidate
> Environment: Linux
> 3.8.3
> $ mvn --version
> Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
> Apache Maven 3.8.3 (NON_CANONICAL)
> Maven home: /opt/maven
> Java version: 1.8.0_292, vendor: Oracle Corporation, runtime:
> /usr/lib/jvm/java-8-openjdk/jre
> Default locale: en_GB, platform encoding: UTF-8
> OS name: "linux", version: "5.15.5-arch1-1", arch: "amd64", family: "unix"
> 4.0.0
> Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
> Apache Maven 4.0.0-alpha-1-SNAPSHOT (3a06530dbce82e2054afa3cc4c81631910474bd0)
> Maven home: /opt/maven-git
> Java version: 1.8.0_292, vendor: Oracle Corporation, runtime:
> /usr/lib/jvm/java-8-openjdk/jre
> Default locale: en_GB, platform encoding: UTF-8
> OS name: "linux", version: "5.15.5-arch1-1", arch: "amd64", family: "unix"
> Reporter: Odne Hellebø
> Priority: Minor
> Attachments: image-2021-12-11-21-55-46-230.png, intellijDebug.png,
> mvnDebugGit.zip, screenshot-1.png
>
>
> When using mvnDebug at version 4, it just skips all the breakpoints in
> intellij.
> These are the settings in intellij
> !intellijDebug.png!
> To reproduce just set some breakpoints in test, and then run
> {code:bash}mvnDebug test{code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)