自动化发布脚本失败
来源:13-9 服务端项目自动化发布、验证、故障排查与解决
慕用4457325
2022-01-20
[root@izuf60nts0tevkdgd1ecr8z developer]# ./deploy.sh
=进入git项目happymmall目录===
git切换分之到mmall-v1.0=====
M .DS_Store
M .gitignore
M .idea/compiler.xml
M .idea/dictionaries/apple.xml
M .idea/encodings.xml
M .idea/git.iml
M .idea/inspectionProfiles/Project_Default.xml
M .idea/misc.xml
M .idea/modules.xml
M .idea/vcs.xml
M .idea/workspace.xml
M LICENSE
M README.md
M mmall.iml
M mysql-connector-java-5.1.47.jar
M pom.xml
M src/.DS_Store
M src/main/.DS_Store
M src/main/java/.DS_Store
M src/main/java/com/.DS_Store
M src/main/java/com/allpay/demo/trade/DemoHbRunner.java
M src/main/java/com/allpay/demo/trade/Main.java
M src/main/java/com/mmall/.DS_Store
M src/main/java/com/mmall/common/Const.java
M src/main/java/com/mmall/common/ResponseCode.java
M src/main/java/com/mmall/common/ServerResponse.java
M src/main/java/com/mmall/common/TokenCache.java
M src/main/java/com/mmall/controller/backend/CategoryManageController.java
M src/main/java/com/mmall/controller/backend/OrderManageController.java
M src/main/java/com/mmall/controller/backend/ProductManageController.java
M src/main/java/com/mmall/controller/backend/UserManageController.java
M src/main/java/com/mmall/controller/portal/CartController.java
M src/main/java/com/mmall/controller/portal/OrderController.java
M src/main/java/com/mmall/controller/portal/ProductController.java
M src/main/java/com/mmall/controller/portal/ShippingController.java
M src/main/java/com/mmall/controller/portal/UserController.java
M src/main/java/com/mmall/dao/.DS_Store
M src/main/java/com/mmall/dao/CartMapper.java
M src/main/java/com/mmall/dao/CategoryMapper.java
M src/main/java/com/mmall/dao/OrderItemMapper.java
M src/main/java/com/mmall/dao/OrderMapper.java
M src/main/java/com/mmall/dao/PayInfoMapper.java
M src/main/java/com/mmall/dao/ProductMapper.java
M src/main/java/com/mmall/dao/ShippingMapper.java
M src/main/java/com/mmall/dao/UserMapper.java
M src/main/java/com/mmall/pojo/.DS_Store
M src/main/java/com/mmall/pojo/Cart.java
M src/main/java/com/mmall/pojo/Category.java
M src/main/java/com/mmall/pojo/Order.java
M src/main/java/com/mmall/pojo/OrderItem.java
M src/main/java/com/mmall/pojo/PayInfo.java
M src/main/java/com/mmall/pojo/Product.java
M src/main/java/com/mmall/pojo/Shipping.java
M src/main/java/com/mmall/pojo/User.java
M src/main/java/com/mmall/service/ICartService.java
M src/main/java/com/mmall/service/ICategoryService.java
M src/main/java/com/mmall/service/IFileService.java
M src/main/java/com/mmall/service/IOrderService.java
M src/main/java/com/mmall/service/IProductService.java
M src/main/java/com/mmall/service/IShippingService.java
M src/main/java/com/mmall/service/IUserService.java
M src/main/java/com/mmall/service/impl/CartServiceImpl.java
M src/main/java/com/mmall/service/impl/CategoryServiceImpl.java
M src/main/java/com/mmall/service/impl/FileServiceImpl.java
M src/main/java/com/mmall/service/impl/OrderServiceImpl.java
M src/main/java/com/mmall/service/impl/ProductServiceImpl.java
M src/main/java/com/mmall/service/impl/ShippingServiceImpl.java
M src/main/java/com/mmall/service/impl/UserServiceImpl.java
M src/main/java/com/mmall/util/BigDecimalUtil.java
M src/main/java/com/mmall/util/DateTimeUtil.java
M src/main/java/com/mmall/util/FTPUtil.java
M src/main/java/com/mmall/util/MD5Util.java
M src/main/java/com/mmall/util/PropertiesUtil.java
M src/main/java/com/mmall/vo/CartProductVo.java
M src/main/java/com/mmall/vo/CartVo.java
M src/main/java/com/mmall/vo/OrderItemVo.java
M src/main/java/com/mmall/vo/OrderProductVo.java
M src/main/java/com/mmall/vo/OrderVo.java
M src/main/java/com/mmall/vo/ProductDetailVo.java
M src/main/java/com/mmall/vo/ProductListVo.java
M src/main/java/com/mmall/vo/ShippingVo.java
M src/main/resources/applicationContext-datasource.xml
M src/main/resources/applicationContext.xml
M src/main/resources/datasource.properties
M src/main/resources/generatorConfig.xml
M src/main/resources/logback.xml
M src/main/resources/logs/mmail.log
M src/main/resources/mappers/CartMapper.xml
M src/main/resources/mappers/CategoryMapper.xml
M src/main/resources/mappers/OrderItemMapper.xml
M src/main/resources/mappers/OrderMapper.xml
M src/main/resources/mappers/PayInfoMapper.xml
M src/main/resources/mappers/ProductMapper.xml
M src/main/resources/mappers/ShippingMapper.xml
M src/main/resources/mappers/UserMapper.xml
M src/main/resources/mmall.properties
M src/main/resources/zfbinfo.properties
M src/main/test/com/mmall/test/BigDecimalTest.java
M src/main/webapp/WEB-INF/dispatcher-servlet.xml
M src/main/webapp/WEB-INF/lib/alipay-sdk-java-3.3.0-source.jar
M src/main/webapp/WEB-INF/lib/alipay-sdk-java-3.3.0.jar
M src/main/webapp/WEB-INF/lib/alipay-trade-sdk-20161215-source.jar
M src/main/webapp/WEB-INF/lib/alipay-trade-sdk-20161215.jar
M src/main/webapp/WEB-INF/web.xml
M src/main/webapp/index.jsp
Already on 'v1.0’
git fetch====
git pull====
Already up-to-date.
=编译并跳过单元测试==========
[INFO] Scanning for projects…
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com:mmall:war:1.0-SNAPSHOT
[WARNING] ‘build.plugins.plugin.version’ for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 269, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building mmall Maven Webapp 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.763s
[INFO] Finished at: Thu Jan 20 00:45:10 CST 2022
[INFO] Final Memory: 6M/100M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.4.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.4.1 from/to central (http://repo.maven.apache.org/maven2): Failed to transfer file: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom. Return code is: 501 , ReasonPhrase:HTTPS Required. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
删除旧的ROOT.war=======
rm: cannot remove ‘/developer/apache-tomcat-7.0.73/webapps/ROOT.war’: No such file or directory
拷贝编译出来的war包到tomcat下-ROOT.war=
cp: cannot stat ‘/developer/git-repository/mmall_learning/target/mmall.war’: No such file or directory
删除tomcat下旧的ROOT文件夹=
关闭tomcat=
Using CATALINA_BASE: /developer/apache-tomcat-7.0.73
Using CATALINA_HOME: /developer/apache-tomcat-7.0.73
Using CATALINA_TMPDIR: /developer/apache-tomcat-7.0.73/temp
Using JRE_HOME: /usr/java/jdk1.7.0_80
Using CLASSPATH: /developer/apache-tomcat-7.0.73/bin/bootstrap.jar:/developer/apache-tomcat-7.0.73/bin/tomcat-juli.jar
sleep 10s=========
1s
2s
3s
4s
5s
6s
7s
8s
9s
10s
启动tomcat=
Using CATALINA_BASE: /developer/apache-tomcat-7.0.73
Using CATALINA_HOME: /developer/apache-tomcat-7.0.73
Using CATALINA_TMPDIR: /developer/apache-tomcat-7.0.73/temp
Using JRE_HOME: /usr/java/jdk1.7.0_80
Using CLASSPATH: /developer/apache-tomcat-7.0.73/bin/bootstrap.jar:/developer/apache-tomcat-7.0.73/bin/tomcat-juli.jar
Tomcat started.
[root@izuf60nts0tevkdgd1ecr8z developer]#
1回答
-
geelylucky
2022-01-20
Return code is: 501 , ReasonPhrase:HTTPS Required. -> [Help 1]
同学可以了解下相关解决方案
00
相似问题