Search code examples
s4sdk

Maven Build Failure releated to com.sap.cloud.s4hana.plugins:s4sdk-maven-plugin


  1. I am facing an issue during the Maven build. The issue on my terminal is: [ERROR] Failed to execute goal com.sap.cloud.s4hana.plugins:s4sdk-maven-plugin:2.12.0:usage-analytics (default) on project demo-generator-application: Execution default of goal com.sap.cloud.s4hana.plugins:s4sdk-maven-plugin:2.12.0:usage-analytics failed: Plugin com.sap.cloud.s4hana.plugins:s4sdk-maven-plugin:2.12.0 or one of its dependencies could not be resolved: Failed to collect dependencies at com.sap.cloud.s4hana.plugins:s4sdk-maven-plugin:jar:2.12.0 -> com.sap.cloud.s4hana.plugins:usage-analytics:jar:2.12.1-M1: Failed to read artifact descriptor for com.sap.cloud.s4hana.plugins:usage-analytics:jar:2.12.1-M1: Failure to find com.sap.cloud.s4hana:sdk-modules-bom:pom:2.12.1-M1 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

The maven project I used can be found here:

The document can be found:


Solution

  • Please try to run mvn clean install -U to force an update of dependencies.