whuerboy opened a new issue, #11518: URL: https://github.com/apache/rocketmq/issues/11518
### Before Creating the Enhancement Request - [x] I have confirmed that this should be classified as an enhancement rather than a bug/feature. ### Summary Provide shared IntelliJ IDEA run configurations and local debugging configuration files for starting RocketMQ NameServer and Broker from source. ### Motivation New contributors need to manually configure main classes, module classpaths, RocketMQ home, configuration paths, logging, and JVM options before debugging RocketMQ in IntelliJ IDEA. During a fresh setup, I also encountered generated protocol sources not being recognized by IDEA. Additionally, IDEA's native compilation with --release 8 could not resolve sun.misc.Unsafe on JDK 17, although Maven compilation succeeded. These differences make the initial setup confusing and require contributors to repeat similar troubleshooting steps. ### Describe the Solution You'd Like - Add reusable NameServer and Broker run configurations that: - Use repository-relative paths and inherit the project SDK. - Load dedicated configuration files for local debugging. - Store messages and logs under the already ignored devenv directory. Execute Maven compilation before launching, ensuring protocol generation and compilation follow the Maven build configuration. Explicitly register the protocol-generated source directories through build-helper-maven-plugin in rocketmq-proto/pom.xml. Provide documentation covering JDK/Maven requirements, submodule initialization, startup order, and troubleshooting. ### Describe Alternatives You've Considered - Manually create IDEA run configurations and mark generated source directories. This works, but contributors must repeat the setup individually. - Document all manual setup steps without providing shared configurations. This improves guidance but still leaves room for inconsistent settings. - Use existing startup scripts or containers. These are useful for running services, but additional IDE configuration is still needed for source-level debugging. ### Additional Context The prototype was tested on Windows with JDK 17 and Maven 3.9.8. Local validation included Maven compilation, server startup, Broker registration, and a message round trip. Further verification is needed for the complete fresh IDEA import workflow and other operating systems. These configurations are intended for local development and learning, rather than production deployment. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
