SDK not working after update to latest version

Looks like there was a new version of the SDK released a few days ago, version 5.4.0?

Attempting to run OpenMRS with this version of the SDK is failing when trying to start docker/mysql with the following error:

Starting 'mysql-openmrs' DB docker container...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.506 s
[INFO] Finished at: 2023-11-27T10:05:37-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-tomcat9-maven-plugin:5.4.0:run-tomcat (default-cli) on project standalone-pom: Unable to execute mojo: Execution null of goal org.openmrs.maven.plugins:openmrs-sdk-docker-maven-plugin:5.4.0:run-db failed: An API incompatibility was encountered while executing org.openmrs.maven.plugins:openmrs-sdk-docker-maven-plugin:5.4.0:run-db: java.lang.NoSuchMethodError: com.google.common.base.Platform.stringIsNullOrEmpty(Ljava/lang/String;)Z

fyi @dkayiwa @raff @ibacher @mseaton @grace

Ticketed here:

https://openmrs.atlassian.net/browse/SDK-324

The workaround is to lock on the 5.3.0 version of the SDK when running, ie:

mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:5.3.0:run

I created a fix for this: Fixing java.lang.NoSuchMethodError: com.google.common.base.Platform.stringIsNullOrEmpty by wikumChamith · Pull Request #261 · openmrs/openmrs-sdk · GitHub

2 Likes

I have merged and released version 5.5.0 of the SDK. Thanks @mogoodrich for reporting this, and thanks @wikumc for quickly fixing it! :slight_smile:

3 Likes