子模块ruoyi-common 在执行mvn clean install成功后,生成了ruoyi-common:jar:3.1.0。但是在执行system子模块时,报错:
[ERROR] Failed to execute goal on project ruoyi-system: Could not resolve dependencies for project com.ruoyi:ruoyi-system:jar:3.1.0:
Failed to collect dependencies at com.ruoyi:ruoyi-common:jar:3.1.0: Failed to read artifact descriptor for com.ruoyi:ruoyi-common:jar:3.1.0:
Could not find artifact com.ruoyi:ruoyi:pom:3.1.0 in public (http://maven.aliyun.com/nexus/content/groups/public/) -> [Help 1]
[ERROR] Failed to execute goal on project ruoyi-system: Could not resolve dependencies for project com.ruoyi:ruoyi-system:jar:3.1.0:
Failed to collect dependencies at com.ruoyi:ruoyi-common:jar:3.1.0: Failed to read artifact descriptor for com.ruoyi:ruoyi-common:jar:3.1.0:
Failure to find com.ruoyi:ruoyi:pom:3.1.0 in http://maven.aliyun.com/nexus/content/groups/public/ was cached in the local repository,
resolution will not be reattempted until the update interval of alimaven has elapsed or updates are forced -> [Help 1
解决办法:直接在顶层pom模块执行mvn clean install。成功。