Build a Netty‑Powered Instant Chat Plugin for IntelliJ IDEA – Full Guide
This article introduces XEChat‑Idea, a Netty‑based instant messaging and game‑battle plugin for IntelliJ IDEA, detailing its features, project structure, required environment, step‑by‑step build, run and deployment instructions for both the server and the IDEA plugin, and how to install it locally.
XEChat‑Idea
Based on Netty, an IDEA instant‑chat plugin
Project Introduction
Main features:
Instant chat
Game battle
Project Structure
.
├── LICENSE
├── README.md
├── xechat-commons // public module
│ ├── pom.xml
│ └── src
├── xechat-plugin // IDEA plugin side
│ ├── build.gradle
│ ├── gradle
│ ├── gradle.properties
│ ├── gradlew
│ ├── gradlew.bat
│ ├── settings.gradle
│ └── src
└── xechat-server // server side
├── pom.xml
└── srcProject Environment
Server & Public Module
JDK 8
Maven 3.6.x
IDEA Plugin Side
JDK 11
Gradle 6.x
IDEA 2021.2.x
Run & Deploy
Reminder: package the public module first
Package Public Module
# Enter the public module root directory
cd xechat-commons
# Install to local Maven repository
mvn installServer
Create or adjust the log directory in src/main/resources/logback.xml:
<property name="ROOT_LOG_PATH" value="/var/log/xechat-server"/>Run
Execute the main class XEChatServer.java directly.
Deploy
# Enter server root directory
cd xechat-server
# Package
mvn package
# Start the server
java -jar target/xechat-server-xxx.jarIDEA Plugin Side
Adjust IDEA Version
Edit build.gradle to set the IDEA version you use:
intellij {
version '2021.2'
}Local Run
Tasks > intellij > runIde
Package Plugin
Tasks > build > assemble
Resulting file:
build/distributions/xechat-plugin-xxx.zipInstall Plugin
IDEA > Preferences > Plugins
Add plugin repository:
http://plugins.xttblog.cnSearch for “xechat” and install.
If possible, deploy the server yourself.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Programmer DD
A tinkering programmer and author of "Spring Cloud Microservices in Action"
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
