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.