Starting jetty in debug mode, this is obvious, for remote debugging of the background Java code.
To do this: increase the environment variable gradle_opts and set the value to:
-xdebug-xrunjdwp:transport=dt_socket,address=9999,server=y,suspend=n
This way, when the jetty container is started by the Gradle jettyrun command, the following results are displayed, indicating that debug mode is enabled
Gradle jettyrunlistening for transport Dt_socket at address:9999
Let Gradle rely on the local jar package because the Maven Nexus was hung up and unable to download the dependent jar package through the Build.gradle file.
This time if using the Gradle war will find that the compilation failed, the workaround is to let the project rely on the local jar package, modify the Gradle project's build file.
dependencies {//single file dependent compile files (' Libs/commons-beanutils-1.8.0.jar ')//A folder under all dependent compile Filetree (dir: ' Libs ', Include: ' *.jar ')}
Where the Libs directory is in the same folder as the build.gradle directory.
Gradle Configuring local jar package dependencies and booting in debug mode jetty