2015-3-10 settings.xml File:
<localRepository>C:\Users\xxx\.m2\repository</localRepository>
--c:\users\xxx\.m2\settings.xml--
--d:\apache-maven-3.2.3\conf\settings.xml--
Set Environment variables:
maven_home=d:\apache-maven-3.2.3
Path=%maven_home%\bin;
Eclipse settings: Preferences->maven->installations Preferences->maven->user Settings
Global Settings:d:\apache-maven-3.2.3\conf\settings.xml
User Settings:c:\users\xxx\.m2\settings.xml
Local repository:c:\users\xxx\.m2\repository
First step: Configure the MAVEN address.
The second step: Git branch multiple Jar project, the separate placement in a workspace, if there is the same branch and the local branch is different, at the time of the operation of the other non-development does not run the branch is closed first. Avoid inter-project string code
Step three: Servers configuration of the Tomcat publishing directory, do not manually go to the Deploy directory to delete files, but through eclipse to clean, after publish to republish
Fourth step: Maven--Update project, re-do MAVEN compilation project as Jar
The above resolves a problem where the MAVEN project packages the jar to publish the project unsuccessfully.
Eclipse compiles project Jar,git management code