Gradle Configuring local jar package dependencies and booting in debug mode jetty

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.