Git project Maven Build process _ Project management and build

Source: Internet
Author: User
Tags git clone
Source code build codes Check out

Check out the latest project source code 1 by following this command:

git clone Https://github.com/alibaba/dubbo Dubbo
Branch

We use master as the backbone version of the development, using the branch as a maintenance version. You can view the labels for all versions by Https://github.com/alibaba/dubbo/tags. Build

Dubbo uses Maven as the build tool.

Requirements Java 1.5 above version Maven 2.2.1 or above version

You need to configure the following maven_opts before building

Export maven_opts=-xmx1024m-xx:maxpermsize=512m

Use the following command to do a build

MVN clean Install

You can skip unit tests by using the following build command

MVN Install-dmaven.test.skip
Building source code Jar packages

Use the following command to build the Dubbo source jar package to facilitate debugging Dubbo source code

MVN Clean Source:jar Install-dmaven.test.skip
IDE Support

Use the following command to build the IDE's engineering IntelliJ idea

MVN Idea:idea
Eclipse
MVN Eclipse:eclipse

Importing in Eclipse

First, you need to configure the Maven repository in Eclipse. The Classpath variable that defines M2_repo is directed to the local Maven repository through Preferences-> Java-> build Path-> Classpath. 2

You can also configure the following MAVEN command:

MVN eclipse:configure-workspace-declipse.workspace=/path/to/the/workspace/
1. You can also browse the source code ↩2 directly on the Https://github.com/alibaba/dubbo. The path under UNIX is ${home}/.m2/repository, and the path under Windows is C:\Documents and Settings\.m2\repository↩

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.