从GitHub导入项目后,出现Maven依赖错误
Following the S4HANA Cloud SDK SAP Press book exercises. After importing the project into intellij IDE, it thorows maven dependency errors. Here are the steps-
1. Download the project to do unit test. Link: https://github.com/SAP/cloud-s4-sdk-book/tree/course/2_5_testing
2. Imported the project into IntelliJIDE
3. Renamed the folder to address-manager (from cloud-s4-sdk-book-course-2_5_testing)
4. After importing went to the folder address-manager --> unit-tests --> src ---> test --> java --> com.sap.cloud.s4hana.examples.addressmgr --> commands --> GetAllBusinessPartnersCommandTest
此后,我们现在打开命令,我们立即得到这些依赖错误 所有代码段,例如google,sdk等,都变成红色,无法识别。
答案 0 :(得分:1)
提到的工件可用here。 因此,您可能遇到设置问题或连接问题。
请确保:
我还建议查阅Maven文档以获取更多帮助: https://maven.apache.org/guides/
最后,还请确保使用最新的SDK版本。