项目install异常:Failed to execute goal on project xx: Could not resolve dependencies for project com.xx

1. Problem Background

       I am preparing to deploy the service on my own server. When the project is packaged, the exception described in the title appears in the console.

2. Problem description

        The problem was solved before taking screenshots, leaving only the translation records on Youdao.

Failed to execute goal on project xxx-framework: Could not resolve dependencies for project com.ruoyi:xxx-framework:jar:4.7.7: Could not find artifact com.xxx:xxx-system:jar:4.7.7 in public (https://maven.aliyun.com/repository/public) -> [Help 1]
[ERROR] 

  • abnormal translation

Failed to execute target xxx-framework on project: Could not resolve dependencies for project com. xxx:xxx-framework:jar:4.7.7: Could not find artifact com in public.

3. Cause of the problem

        Since you made such a mistake, your project should also have multiple modules (like the picture below). If it is a newly imported project and there are dependencies between submodules, an exception may occur when the submodule executes install.

       Example: Both framework and common inherit the parent project, and framework depends on common in the module, then after executing clean and install in common, the local warehouse will also have dependencies, but the above exception will occur when installing in framework.

        This is why I installed the framework subproject for the first time after importing the project, and the reason for the exception.

4. Solutions

[Sub- projects  ]         under [Parent Project ] should clean and install the [Parent Project] before running clean and install for the [first time] .


Guess you like

Origin blog.csdn.net/weixin_44259720/article/details/131326691