Environment version:
Jdk:jdk1.7.0_80
eclipse:4.5.1
maven:3.3.9
apache-tomcat-7.0.52
Complete maven and corresponding Eclipse plug-ins and detailed steps to build the document download address:
http://download.csdn.net/download/mike_caoyong/9886666
The repository does not automatically download jar solutions when the MAVEN project is created
http://download.csdn.net/download/mike_caoyong/9930423
tortoisegit Installation and configuration Maen install is not responding http://download.csdn.net/download/mike_caoyong/10181805
Troubleshoot Tomcat run error
Java.lang.unsatisfiedlinkerror:apache-tomcat-7\bin\tcnative-1.dll:can Load AMD 64
Workaround: http://www.apache.org/dist/tomcat/tomcat-connectors/native/
To the address download a Tomcat-native-1.2.2-win32-bin compressed package, after decompression select a 64-bit tcnative-1.dll inside the Tomcat bin directory to overwrite the Tcnative-1.dll file, Running again will not be an error.
Eclipse Maven Install doesn't respond
Window--java--Install menu, edit JRE
In the Edit JRE popup interface, default VM Arguments: Enter the following:
-dmaven.multimoduleprojectdirectory= $M 2_home
You can save it after saving.
※the $m2_home here refers to the MAVEN environment variable you are configuring, the value of this environment variable is the installation path of MAVEN on your computer, for example, the value of my environment variable m2_home is D:\software\Maven\ apache-maven-3.5.0 (fill in according to the actual situation)
Okay, now you can run the MAVEN command in Eclipse.
When compiling and packaging with the MVN package, MAVEN executes the junit test cases in Src/test/java,
Sometimes in order to skip the test, the parameters-dskiptests and-dmaven.test.skip=true are used,
The main differences between the two parameters are:
-dskiptests, do not execute the test case, but compile the test case class to generate the corresponding class file to target/test-classes.
-dmaven.test.skip=true, do not execute test cases, and do not compile test case classes.
Search in Csdn for "Setting.xml in maven" to find detailed configuration instructions.