zerocode icon indicating copy to clipboard operation
zerocode copied to clipboard

[M3][ERROR] Failed to execute goal com.github.os72:protoc-jar-maven-plugin:3.11.4:run (default) on project kafka-testing: Error extracting protoc for version 3.11.4: Unsupported platform: protoc-3.11.4-osx-aarch_64.exe -> [Help 1]

Open authorjapps opened this issue 2 years ago • 4 comments

The Problem:

Unable to compile protoc related stuffs in mac m3 architecture.

Suggest a newer version of this library which can run on osx-aarch_64 without throwing any error.


Console Logs:

[INFO] ----------------------< org.jsmart:kafka-testing >----------------------
    [INFO] Building Zerocode Kafka Testing With Simple YAML and JSON DSL 1.3.43-SNAPSHOT [4/6]
    [INFO]   from kafka-testing/pom.xml
    [INFO] --------------------------------[ jar ]---------------------------------
    [INFO] 
    [INFO] --- clean:3.2.0:clean (default-clean) @ kafka-testing ---
    [INFO] Deleting /Users/zerocode/kafka-testing/target
    [INFO] 
    [INFO] --- enforcer:1.2:enforce (enforce-maven) @ kafka-testing ---
    [INFO] 
    [INFO] --- protoc-jar:3.11.4:run (default) @ kafka-testing ---
    [INFO] Protoc version: 3.11.4
    protoc-jar: protoc version: 3.11.4, detected platform: osx-aarch_64 (mac os x/aarch64)
    protoc-jar: downloading: https://repo.maven.apache.org/maven2/com/google/protobuf/protoc/maven-metadata.xml
    protoc-jar: saved: /var/folders/c2/_hkgq7x13hg72r1cdch69sp80000gn/T/protocjar.webcache/com/google/protobuf/protoc/maven-metadata.xml
    protoc-jar: downloading: https://repo.maven.apache.org/maven2/com/github/os72/protoc/maven-metadata.xml
    protoc-jar: saved: /var/folders/c2/_hkgq7x13hg72r1cdch69sp80000gn/T/protocjar.webcache/com/github/os72/protoc/maven-metadata.xml
    protoc-jar: cached: /var/folders/c2/_hkgq7x13hg72r1cdch69sp80000gn/T/protocjar.webcache/com/google/protobuf/protoc/maven-metadata.xml
    protoc-jar: downloading: https://repo.maven.apache.org/maven2/com/google/protobuf/protoc/3.11.4/protoc-3.11.4-osx-aarch_64.exe
    protoc-jar: cached: /var/folders/c2/_hkgq7x13hg72r1cdch69sp80000gn/T/protocjar.webcache/com/github/os72/protoc/maven-metadata.xml
    protoc-jar: downloading: https://repo.maven.apache.org/maven2/com/github/os72/protoc/3.11.4/protoc-3.11.4-osx-aarch_64.exe
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary for ZeroCode TDD Parent 1.3.43-SNAPSHOT:
    [INFO] 
    [INFO] ZeroCode TDD Parent ................................ SUCCESS [ 15.766 s]
    [INFO] Zerocode TDD Core .................................. SUCCESS [ 12.895 s]
    [INFO] Zerocode Http Testing With Simple YAML and JSON DSL  SUCCESS [  2.253 s]
    [INFO] Zerocode Kafka Testing With Simple YAML and JSON DSL FAILURE [  0.655 s] <---------- Failed 🔴 
    [INFO] Zerocode JUnit5 Jupiter Load Testing ............... SKIPPED
    [INFO] Zerocode Automated Testing Maven Archetype ......... SKIPPED
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time:  31.640 s
    [INFO] Finished at: 2024-03-25T14:43:30Z
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal com.github.os72:protoc-jar-maven-plugin:3.11.4:run (default) on project kafka-testing: Error extracting protoc for version 3.11.4: Unsupported platform: protoc-3.11.4-osx-aarch_64.exe -> [Help 1]

authorjapps avatar Mar 25 '24 14:03 authorjapps

HEY CAN I WORK ON THIS ISSUE

dhrax21 avatar Mar 30 '24 04:03 dhrax21

HEY CAN I WORK ON THIS ISSUE

Yes please.

You should be able to reproduce this in any arm processor, e.g. M1 or M2 or M3 or similar one.

authorjapps avatar Mar 31 '24 07:03 authorjapps

Found a potential solution from here: https://github.com/os72/protoc-jar/pull/94#issuecomment-1142634496

nirmalchandra avatar May 01 '24 10:05 nirmalchandra

Found a potential solution from here from Google: https://github.com/os72/protoc-jar/pull/94#issuecomment-1142634496

Check latest versions here: https://repo.maven.apache.org/maven2/com/google/protobuf/protoc/

This PR has worked. ✅
https://github.com/authorjapps/zerocode/pull/664 CI is green.

nirmalchandra avatar May 01 '24 10:05 nirmalchandra