我使用了云托管,然后springboot项目是多模块的,dockerfile应该放在根项目还是入口模块,是否需要更改dockerfile或者pom.xml应如何配置。
目前本地构建时会报如下错误
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
#14 3.156 [FATAL] Non-resolvable parent POM for com.xj:want-remember-server:1.0.0: Could not find artifact com.xj:wx-want-remember-boot:pom:1.0.0 in central (https://repo.maven.apache.org/maven2) and 'parent.relativePath' points at wrong local POM @ line 5, column 13
#14 3.165 @
#14 3.166 [ERROR] The build could not read 1 project -> [Help 1]
#14 3.170 [ERROR]
#14 3.171 [ERROR] The project com.xj:want-remember-server:1.0.0 (/app/pom.xml) has 1 error
#14 3.175 [ERROR] Non-resolvable parent POM for com.xj:want-remember-server:1.0.0: Could not find artifact com.xj:wx-want-remember-boot:pom:1.0.0 in central (https://repo.maven.apache.org/maven2) and 'parent.relativePath' points at wrong local POM @ line 5, column 13 -> [Help 2]
可以参考下官方的SpringBoot模板:https://github.com/WeixinCloud/wxcloudrun-springboot
dockerfile无所谓官方不官方,本质就是docker,我是写到根目录