Maven+eclipse environment Construction Detailed steps and Tortoisegit installation and configuration

Source: Internet
Author: User
Tags tomcat

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.