Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

thirty-seven。 Moquette custom plug-in compilation and packaging

2025-02-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

one。 Preface

After downloading, compiling, and running the moquette source code, you must want to add your own logic. But do not want to modify the source code too much, for future upgrades.

So it's best to make another plug-in, a separate jar package.

Moquette source code compilation:

Http://483181.blog.51cto.com/473181/1959276

two。 Modify the build.gradle of distribution

Dependencies {compile project (': moquette-broker') compile project (': xxx') compile project (': moquette-h3-storage') compile project (': moquette-mapdb-storage')}

three。 Modify settings.gradle

RootProject.name = 'moquette-parent'include': moquette-broker'include': xxx'...project (': moquette-broker'). ProjectDir = "$rootDir/broker" as Fileproject (': xxx'). ProjectDir = "$rootDir/xxx" as File

Xxx represents the added plug-in module

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report