Summary for maven project

1,If there is no jar files can be found in the specific folders,how to add jar file manually.

mvn install:
install-file -Dfile=D:\KD90ZC\Desktop\A\weitoo\sms\1.0\sms-1.0.jar -DgroupId=com.weitoo -DartifactId=sms -Dversion=1.0 -Dpackaging=jar

mvn install:install-file -Dfile=D:\KD90ZC\Desktop\A\weitoo\barcode4j\1.0\barcode4j-1.0.jar -DgroupId=com.weitoo -DartifactId=jbarcode -Dversion=1.0 -Dpackaging=jar

attention that, strings in the path should be no space left,and they should formed like above.
please refers to the pics below:

这里写图片描述

2,Tomcat install points
这里写图片描述
Here is the jar file created by maven,You have to add it in server.
这里写图片描述
Setting the tomcat deploy path as follows:
这里写图片描述
The pics that have been set as follows

If you deploy tomcat and found that you project does not included in the tomcat container,at this time, you should do following process:
Right click your project>Properties>Project Facets>Dynamic Web Module/JavaScript/Java>WebRoot/WebContent/WebInfor/”src/main/webapp”>Okay,then deploy project again and you will find the project information is included in the tomcat container.

3,Maven jar files conflicts.
windows clean screen:cls
confirm if jar files conflict:
mvn dependency:tree -Dverbose
information as follows will be out put,which means,jar file conflics have been identified,please check then one by one.
[INFO] +- com.google.code.simple-spring-memcached:spymemcached:jar:2.8.4:compile
[INFO] - com.google.guava:guava:jar:18.0:compile
[INFO] ————————————————————————
[INFO] Reactor Summary:
[INFO]
[INFO] server aggregator ……………………………. SUCCESS [ 0.732 s]
[INFO] common ……………………………………… SUCCESS [ 0.142 s]
[INFO] server ……………………………………… SUCCESS [ 0.841 s]
[INFO] ————————————————————————
[INFO] BUILD SUCCESS
[INFO] ————————————————————————
[INFO] Total time: 2.002 s
[INFO] Finished at: 2015-06-15T09:12:01+08:00
[INFO] Final Memory: 18M/222M
[INFO] ————————————————————————
4,Git usage.
Sometims, error information will like this:Error pulling origin: error: “Your local changes to the following files would be overwritten by merge” at this moments,you can check the error and find some clues,that is,untracked working tree files, which is the reason cause the issues.
We have solutions provided below:
please open the commends console and input “git clean -d -fx”
这里写图片描述

This article to be continued.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值