OBP-API icon indicating copy to clipboard operation
OBP-API copied to clipboard

Cannot run test phase in obp-api module

Open catkeeper1 opened this issue 5 years ago • 1 comments

I have downloaded the master branch of this project and run "mvn test" successfully in obp-api module last week. Today, it did not work suddenly. When I run "mvn test", the error message is [ERROR] Failed to execute goal net.catte:scalapb-maven-plugin:1.2:compile (default) on project obp-api: Error compiling protobuf files: Unsupported platform: protoc-3.0.0-osx-x86_64.exe -> [Help 1]

In my local maven repository, I found package "com/github/os72/protoc-jar/3.5.1.1". So that I open the pom.xml in obp-api module and edit it as below:

<plugin> <groupId>net.catte</groupId> <artifactId>scalapb-maven-plugin</artifactId> <version>1.2</version> <configuration> <protocVersion>v3.5.1</protocVersion> <!-- I added this property --> <javaOutput>false</javaOutput> <inputDirectory>${basedir}/src/main/protobuf</inputDirectory> <outputDirectory>${basedir}/src/main/scala</outputDirectory> <grpc>true</grpc> </configuration> It works. May I know what is the root cause of this issue? Please help to update the source in master branch so that this issue will not happen for other people again.

catkeeper1 avatar Mar 01 '20 05:03 catkeeper1

Hi @catkeeper1 , this branch has been updated recently. Please try again!

Cheers, Daniel

karmaking avatar May 12 '20 12:05 karmaking