From eacee5247c1abdbb65233c1da70f236a35dd7a7e Mon Sep 17 00:00:00 2001 From: zhouyifan279 Date: Wed, 31 May 2023 12:19:07 +0800 Subject: [PATCH] [KYUUBI #4907] [KYUUBI#4906][INFRA] Add a maven profile 'remote-debug' ### _Why are the changes needed?_ IntelliJ IDEA can not use the right Spark version to run UT when we switches between multiple Spark versions. This PR adds a maven profile 'remote-debug' to let UT open a debug port. So we can run UI using mvn cli and remote debug in IDEA. ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [x] Add screenshots for manual tests if appropriate image - [ ] [Run test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request Closes #4907 from zhouyifan279/ut-debug. Closes #4907 ad2b06dbc [zhouyifan279] [KYUUBI#4906][Improvement] Add a maven profile 'remote-debug' to ease unit test remote debugging Authored-by: zhouyifan279 Signed-off-by: Cheng Pan --- pom.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pom.xml b/pom.xml index 5bf90e748..15f2e0edb 100644 --- a/pom.xml +++ b/pom.xml @@ -231,6 +231,7 @@ 2.2.0 org.scalatest.tags.Slow + false 2.30.0 0.8.7 1.0.0 @@ -277,6 +278,7 @@ --add-opens=java.base/sun.util.calendar=ALL-UNNAMED -Djdk.reflect.useDirectMethodHandle=false -Dio.netty.tryReflectionSetAccessible=true + -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 @@ -1712,6 +1714,8 @@ ${maven.plugin.scalatest.exclude.tags} ${maven.plugin.scalatest.include.tags} + ${maven.plugin.scalatest.debug.enabled} + ${debugArgLine} @@ -2266,6 +2270,14 @@ + + remote-debug + + ${debugArgLine} + true + + + web-ui