发表于: 2018-02-10 23:16:05
1 709
完成
1.弄自动部署脚本
2.mvn -U clean install -Dmaven.test.skip=true
3./usr/tomcat/apache-tomcat-8.5.27/bin/catalina.sh stop
5.rm -rf /usr/tomcat/apache-tomcat-8.5.27/webapps/*
6.cp /home/svn/repos/ssm_project/src/target/ssm_project-0.0.1-SNAPSHOT.war /usr/tomcat/apache-tomcat-8.5.27/webapps/ROOT.war
7./usr/tomcat/apache-tomcat-8.5.27/bin/catalina.sh start
先不跑脚本,在/home/svn/repos,按上面一步一步来执行
第2步报错:The goal you specified requires a project to execute but there is no POM in this directory (/home/svn/repos). Please verify you invoked Maven from the correct directory
报错:[WARNING] The POM for json-taglib:json-taglib:jar:1.1 is missing, no dependency information available
Failed to execute goal on project ssm_project: Could not resolve dependencies for project com.lin:ssm_project:war:0.0.1-SNAPSHOT: Could not find artifact json-taglib:json-taglib:jar:1.1 in central (https://repo.maven.apache.org/maven2)
Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 1099; nested exception is:
java.net.BindException: Address already in use (Bind failed)
接下来用脚本跑一遍,进到/home/svn/repos/ssm_project,bash.deploy.sh
2.开始任务4
根据需求,明确需要动态页面的是
和
建表student
弄了一个ssm结构
问题
暂时没有
收获
任务3总结
官方脑图
任务名称:Java=Task3
成果链接:
任务耗时:7天,比要求的多了4天
总结
a.任务延期,主要原因是自己对任务的要求理解不深,导致走了很多弯路。
b.官网主要是一些linux的命令,主题为项目部署,我的脑图没有明确主题,只是知识的简单罗列。
c.问题就是没有弄明白任务要求就去做,浪费很多时间,采坑出不来,自己琢磨越陷越深。以后可以先把想法跟师兄说明,看看对不对再去做。
计划
任务4接着做
评论