You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "ankitshokeen (via GitHub)" <gi...@apache.org> on 2025/04/24 22:14:23 UTC

[I] [Bug] Nacos registry not working with registry setup [dubbo]

ankitshokeen opened a new issue, #15336:
URL: https://github.com/apache/dubbo/issues/15336

   ### Pre-check
   
   - [x] I am sure that all the content I provide is in English.
   
   
   ### Search before asking
   
   - [x] I had searched in the [issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Apache Dubbo Component
   
   Java SDK (apache/dubbo)
   
   ### Dubbo Version
   
   Dubbo `3.3.4-SNAPSHOT`, Java `JDK17`, Nacos `2.5.1`
   
   ### Steps to reproduce this issue
   
   first run `nacos-server-2.5.1\nacos\bin> startup.cmd -m standalone`,
   After Nacos start successfully run `mvn clean install` then error will be thrown.
   
   ### What you expected to happen
   
   Running `mvn clean install` should register services with Nacos without any errors.
   
   ## Actual Behavior
   
   Maven build fails due to issues related to Nacos registry.
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request to fix on your own?
   
   - [x] Yes I am willing to submit a pull request on my own!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [Bug] Nacos registry not working with registry setup [dubbo]

Posted by "ankitshokeen (via GitHub)" <gi...@apache.org>.
ankitshokeen commented on issue #15336:
URL: https://github.com/apache/dubbo/issues/15336#issuecomment-2831143532

   > Hi [@ankitshokeen](https://github.com/ankitshokeen), thanks for the report and your willingness to contribute!
   > 
   > Just a quick clarification: running `mvn clean install` will not trigger service registration to Nacos, because Dubbo only registers services at runtime, when the application is actually started (e.g., via `java -jar`,` main()` method in IDE, or `Spring Boot startup`).
   > 
   > The `mvn clean install` command is purely for building the project — compiling, running tests, packaging, and installing artifacts into the local Maven repository. It does not run your service or trigger any registry behavior.
   > 
   > If you’re expecting the service to register itself to Nacos, please try running the application (after mvn clean package) and then check the Nacos console to verify the service is properly registered.
   > 
   > Let me know if you're still seeing errors during build or at runtime — feel free to share stack traces or configs, and I’d be happy to take a deeper look!
   > 
   > Thanks again!
   
   Hi @heliang666s ,
   
   Thanks for the helpful explanation that really clears things up!
   
   I now understand that service registration with Nacos only occurs when the application is actually running, not during the build process with mvn clean install. I’ll go ahead and run the application after packaging it and check the Nacos console for any registered services.
   
   Also, could you please let me know which module in the project I should start to test the Nacos service registration?
   
   I’ll be sure to share any errors or configurations if I encounter issues during runtime. Appreciate your support!
   
   Best regards,
   Ankit


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [Bug] Nacos registry not working with registry setup [dubbo]

Posted by "heliang666s (via GitHub)" <gi...@apache.org>.
heliang666s commented on issue #15336:
URL: https://github.com/apache/dubbo/issues/15336#issuecomment-2830163436

   Hi @ankitshokeen, thanks for the report and your willingness to contribute!
   
   Just a quick clarification: running `mvn clean install` will not trigger service registration to Nacos, because Dubbo only registers services at runtime, when the application is actually started (e.g., via `java -jar`,` main()` method in IDE, or `Spring Boot startup`).
   
   The `mvn clean install` command is purely for building the project — compiling, running tests, packaging, and installing artifacts into the local Maven repository. It does not run your service or trigger any registry behavior.
   
   If you’re expecting the service to register itself to Nacos, please try running the application (after mvn clean package) and then check the Nacos console to verify the service is properly registered.
   
   Let me know if you're still seeing errors during build or at runtime — feel free to share stack traces or configs, and I’d be happy to take a deeper look!
   
   Thanks again!


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [Bug] Nacos registry not working with registry setup [dubbo]

Posted by "ankitshokeen (via GitHub)" <gi...@apache.org>.
ankitshokeen closed issue #15336: [Bug] Nacos registry not working with registry setup
URL: https://github.com/apache/dubbo/issues/15336


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org