Netty. Source code Compilation

Source: Internet
Author: User
I. Preface

After reading ROCKETMQ source code, its namesrv and broker communication mechanism use is Netty, so netty generated interest. According to their own general study of the law, are the source code to download, compile, and then the breakpoint has been hit the log debugging.
So this article describes how to download the compiled Netty source code under Mac.

Two. Download the source code

GitHub Source code Address

Https://github.com/netty/netty

Open the command line through the address clone inside: git clone [email protected]:netty/netty.git

Three. command-line compilation
MVN install-dskiptests

-dskiptests represents skipping the test case step because running the test case is a bit long and you can also mvn the install directly.

After execution, the results are as follows:

Four. Import IntelliJ

  1. Open ij, then File->open, find the Netty directory you just downloaded (the first import is a bit slow)

  2. view-> Tool windows->maven Projects Open right Maven Projects window

  3. Compiling, such as compiling common
    Netty/common->lifecycle->install

    Install execution Complete Result

Netty. Source code Compilation

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.