Recently, the project has been completed, there is a lot of time, ready to review the previous knowledge, so that it can be used better in the future, start with maven, then build the following SSH+mybaTIs framework, and finish the Hadoop distribution related things. .
Configure the relevant environment variables of the computer before installation.
First, configure the maven environmentDownload address: (window download (Binary zip))
Unzip maven and configure environment variables to open: Computer ------System Properties ------Advanced System Settings ------ Environment Variables
System variable new M2_HOME
Variable value E:\apache-maven-3.2.5 (maven decompression location)
Added in path
;%M2_HOME%\bin ----Add after the path;
Start cmd, enter mvm -v to view the version
The default local repository location for maven is in the current user directory /.m2/repository, which we can configure to other disks.
This is configured under E:/m2/repository.
Then open cmd and run a simple maven command: mvn help:system Download the relevant maven information.
Third, configure Eclipse's maven plugin1. Open Eclipse and select help----Install New Software------add
Name : m2e
locaTIon:
Choose to install all, as if the link site above is closed. Then use the following method:
Download the plugin zip package from my Baidu network disk: download
After downloading, unzip it: Copy the contents of the features and plugins folder to the corresponding features and plugins of Eclipse, and restart.
2, configure the user scope setTIng.xml
%M2_HOME%/conf/setTIng.xml is a global setting, all users on this computer will be affected, so copy %M2_HOME%/conf/setting.xml to the above configuration repository location like my F: Under the /m2 folder.
3, set the MAVEN_OPTS environment variable
When the project is too large, the OutOfMemoryError exception is easy to occur, so we need to modify the running content. There are two ways:
1) Add set MAVEN_OPTS= -Xms125m -Xmx512m to maven's bin/mvn.bat
2) Add the MAVEN_OPTS variable value to the environment variable -Xms125m -Xmx512m
In Window - Preferences - Maven
Installations tick off the default maven, add installed maven directory
Medical Pressure Gauge,Mini-Sized Gauge Medical Device,Oxygen Cylinder Gauge,Oxygen Tank Gauge
ZHOUSHAN JIAERLING METER CO.,LTD , https://www.zsjrlmeter.com