zhzh12312312 commented on issue #11563:
URL: https://github.com/apache/rocketmq/issues/11563#issuecomment-7090963619

   I hit exactly the same issue on Linux (Alibaba Cloud Linux 8) while building 
a 5.5.1 checkout from the develop branch, so this is not Windows-specific.
   
   After a plain `git clone`, the Maven build reached `rocketmq-auth` and 
failed with "程序包 apache.rocketmq.v2 不存在" (package `apache.rocketmq.v2` does not 
exist) and a cascade of "cannot find symbol" errors. The root cause was that 
`rocketmq-proto` logged `protobuf:compile ... No proto files to compile` and 
generated 0 Java files, because the `rocketmq-apis` submodule (which holds the 
`.proto` sources) was never initialized. `git submodule status` showed the 
leading `-`, confirming it was uninitialized.
   
   Running `git submodule update --init --recursive` and rebuilding resolved it 
and all 20 modules reported BUILD SUCCESS.
   
   +1 for documenting this in the command-line quick starts. Using `git clone 
--recurse-submodules` and mentioning `git submodule update --init --recursive` 
for existing clones before the Maven step would save new contributors a 
confusing failure.


-- 
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]

Reply via email to