When I do a "mvn clean install" command in a project created using the S/4HANA Cloud SDK version 2.8.1 archetype, I get the following error:
[ERROR] Failed to execute goal com.sap.cloud.s4hana.plugins:s4sdk-maven-plugin:2.8.1:usage-analytics (default) on project zzzzz-application: Execution default of goal com.sap.cloud.s4hana.plugins:s4sdk-maven-plugin:2.8.1:usage-analytics failed: Plugin com.sap.cloud.s4hana.plugins:s4sdk-maven-plugin:2.8.1 or one of its dependencies could not be resolved: Failed to collect dependencies at com.sap.cloud.s4hana.plugins:s4sdk-maven-plugin:jar:2.8.1 -> com.sap.cloud.s4hana.plugins:usage-analytics:jar:[2.8.1,): No versions available for com.sap.cloud.s4hana.plugins:usage-analytics:jar:[2.8.1,) within specified range -> [Help 1]
All works fine with Version 2.8.0. Could you please double check?
I've just tried to generate a project with this command and it worked for me:
mvn archetype:generate -DarchetypeGroupId=com.sap.cloud.s4hana.archetypes -DarchetypeArtifactId=scp-neo-javaee7 -DarchetypeVersion=2.8.1
Can you try the following to rule out issues with your local Maven repository by using the following command for building your project:
mvn clean compile -Dmaven.repo.local=localrepo -s localsettings.xml
where the localsettings.xml
file should look like this:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
</settings>