Skip to content

Commit

Permalink
Pom profile os classifier (#63)
Browse files Browse the repository at this point in the history
* Profile creation based on os classifier to handle mac-m2 build issue
  • Loading branch information
JAReddy authored May 30, 2024
1 parent 176577a commit 12b3dc0
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions bundleserver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,30 @@
<protobuf.version>3.5.1</protobuf.version>
<grpc.version>1.50.2</grpc.version>
</properties>
<profiles>
<profile>
<id>mac-m2</id>
<activation>
<os>
<arch>aarch64</arch>
</os>
</activation>
<properties>
<custom.os.classifier>osx-x86_64</custom.os.classifier>
</properties>
</profile>
<profile>
<id>others</id>
<activation>
<os>
<arch>!aarch64</arch>
</os>
</activation>
<properties>
<custom.os.classifier>${os.detected.classifier}</custom.os.classifier>
</properties>
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down Expand Up @@ -193,10 +217,11 @@
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.6.1</version>
<extensions>true</extensions>
<configuration>
<protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
<protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${custom.os.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${custom.os.classifier}</pluginArtifact>
</configuration>
<executions>
<execution>
Expand All @@ -209,5 +234,4 @@
</plugin>
</plugins>
</build>

</project>

0 comments on commit 12b3dc0

Please sign in to comment.