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↩