maven使用指南
本文记录一下maven的使用指南:
./mvnw spring-boot:run运行失败
报错Caused by: org.apache.maven.plugin.MojoExecutionException: Process terminated with exit code: 1
在Application.class中添加异常处理:
由
SpringApplication.run(CatalogServiceApplication.class, args);
改为:
try {
SpringApplication.run(CatalogServiceApplication.class, args);
} catch (Exception e) {
e.printStackTrace();
}
参考资料:
./mvnw spring-boot:build-image运行失败
报错Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:3.1.2:build-image failed: Docker API call to 'localhost/v1.24/images/docker.io/paketobuildpacks/builder:base/json' failed with status code 404 "Not Found"
参考资料: