Eclipse compiles project Jar,git management code

Source: Internet
Author: User

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

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.