#####maven的setting.xml中配置
<!-- docker私有仓库配置 -->
<server>
<id>docker-registry</id>
<username>admin</username>
<password>admin123</password>
<configuration>
<email>[email protected]</email>
</configuration>
</server>
<!-- 配置maven的阿里云加速 -->
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
#####构建镜像
mvn clean package dockerfile:build
#####推送镜像到私有仓库
mvn clean package dockerfile:push
#####公共依赖模块问题 公共依赖模块被多个其他的依赖,所以需要先进行打包
mvn clean package install
从5.7升级到8.x Nacos1.1.4支持Mysql8.0
#####build nacos
mvn -Prelease-nacos -DskipTests clean install -U