YxAc opened a new issue, #261:
URL: https://github.com/apache/rocketmq-mqtt/issues/261

   ### **What would you like to be improved?**
   When compiling according to [Build 
Requirements](https://github.com/apache/rocketmq-mqtt/blob/main/README.md), The 
following problems may occur on Apple M1/M2, causing the build to fail.
   
   ```
   [INFO] BUILD FAILURE
   [INFO] 
------------------------------------------------------------------------
   [INFO] Total time:  19.620 s
   [INFO] Finished at: 2024-05-05T22:38:27+08:00
   [INFO] 
------------------------------------------------------------------------
   [ERROR] Failed to execute goal 
org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.0:compile (default) on 
project mqtt-common: Missing:
   [ERROR] ----------
   [ERROR] 1) com.google.protobuf:protoc:exe:osx-aarch_64:3.8.0
   [ERROR] 
   [ERROR]   Try downloading the file manually from the project website.
   [ERROR] 
   [ERROR]   Then, install it using the command: 
   [ERROR]       mvn install:install-file -DgroupId=com.google.protobuf 
-DartifactId=protoc -Dversion=3.8.0 -Dclassifier=osx-aarch_64 -Dpackaging=exe 
-Dfile=/path/to/file
   [ERROR] 
   [ERROR]   Alternatively, if you host your own repository you can deploy the 
file there: 
   [ERROR]       mvn deploy:deploy-file -DgroupId=com.google.protobuf 
-DartifactId=protoc -Dversion=3.8.0 -Dclassifier=osx-aarch_64 -Dpackaging=exe 
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
   [ERROR] 
   [ERROR]   Path to dependency: 
   [ERROR]      1) org.apache.rocketmq:mqtt-common:jar:1.0.2-SNAPSHOT
   [ERROR]      2) com.google.protobuf:protoc:exe:osx-aarch_64:3.8.0
   [ERROR] 
   [ERROR] ----------
   [ERROR] 1 required artifact is missing.
   [ERROR] 
   ```
   
   ### **How should we improve?**
   
   Supplement the description of README, specifying the maven environment 
variable by `-D` or configure `profile` in `m2/settings.xml`


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