Skip to content

Commit

Permalink
[doc] proto on arm M1 or M2 or M3 processor
Browse files Browse the repository at this point in the history
  • Loading branch information
authorjapps authored and nirmalchandra committed Dec 16, 2023
1 parent e080677 commit dcb1afe
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,49 @@ As explained above, in the root/parent folder, please issue the below command(th
```
mvn clean install <---- To build and install all the modules
```

## Compiling in ARM Processors
You might get the following error when you do a "mvn clean install -DskipTests"

```java
[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]

//
// more details >>
//
[INFO] ZeroCode TDD Parent ................................ SUCCESS [ 0.504 s]
[INFO] Zerocode TDD Core .................................. SUCCESS [ 2.365 s]
[INFO] Zerocode Http Testing With Simple YAML and JSON DSL SUCCESS [ 0.413 s]
[INFO] Zerocode Kafka Testing With Simple YAML and JSON DSL FAILURE [ 0.507 s]
[INFO] Zerocode JUnit5 Jupiter Load Testing ............... SKIPPED
[INFO] Zerocode Automated Testing Maven Archetype ......... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.858 s
[INFO] Finished at: 2023-12-16T10:31:44Z
[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]

```

### Fix:
Go to --> .../zerocode/kafka-testing/pom.xml --> Comment the following line:

```shell
<!--
<plugin>
<groupId>com.github.os72</groupId>
<artifactId>protoc-jar-maven-plugin</artifactId>
<version>3.11.4</version>
...
</plugin>-->
```
Then execute ""mvn clean install -DskipTests"" --> It should be SUCCESS.

Raise an Issue if you want to locally execute the tests involving "protos" and you aren't able to do it.

Visit here for more details:
- https://github.com/os72/protoc-jar-maven-plugin?tab=readme-ov-file
- https://github.com/os72/protoc-jar/issues/93

0 comments on commit dcb1afe

Please sign in to comment.