You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "Crazylychee (via GitHub)" <gi...@apache.org> on 2025/03/28 10:51:16 UTC

Re: [I] mac m芯片,docker打包不成功 [rocketmq-dashboard]

Crazylychee commented on issue #262:
URL: https://github.com/apache/rocketmq-dashboard/issues/262#issuecomment-2760966872

   Error Analysis & Solutions
   1. First Error: Maven Compilation Failure (JCImport Error)
   Root Cause:
   
   You upgraded Lombok to v30+, but it requires JDK 17+, while your project likely uses JDK 8.
   
   Lombok's high versions are incompatible with JDK 8's javac, causing JCTree field resolution failures.
   2. Second Error: Docker Build Failure (FFI Architecture Issue)
   Root Cause:
   
   The outdated docker-maven-plugin (v0.4.11) lacks ARM64 (M1/M2 Mac) support.
   
   Its dependency jnr-ffi fails to load native libraries (.dylib) due to architecture mismatch (x86_64 vs. arm64).
   
   Solutions:
   
   Recommended: Replace the plugin with a modern alternative:
   
   jib-maven-plugin (no Docker daemon needed):
   
   ```xml
   <plugin>
       <groupId>com.google.cloud.tools</groupId>
       <artifactId>jib-maven-plugin</artifactId>
       <version>3.3.2</version>
   </plugin>
   ```
   Build with:
   
   ```bash
   mvn compile jib:build
   ```
   dockerfile-maven-plugin (updated fork).
   
   Workaround: Force x86 emulation on ARM Mac:
   
   ```bash
   arch -x86_64 mvn clean package  # Uses Rosetta 2
   ```
   
   ```shell
   docker pull crazylychee/rocketmqdashboard:3.0
   ```
   These are some **AI-generated** suggestions that might be helpful for your situation. If you simply need to deploy via Docker, you can directly use the latest image I've built and packaged - hopefully this will resolve your issues. Let me know if you need further assistance!


-- 
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: commits-unsubscribe@rocketmq.apache.org

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