Software Environment

Software JDK Idea
Version >=1.8 The latest version

Installation Procedure (For example, Mac)

1.The JDK installation

  • The following link is to obtain the installation package suitable for your environment (MAC select.dmg format).
  • https://www.oracle.com/java JDK.png
  • Install it directly after downloading

2.Set the environment variable

vim ~/.zprofile
  • Add the environment variable below:
#The following path is the default for the JDK environment installed in.dmg mode
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_301.jdk/Contents/Home
PATH=$JAVA_HOME/bin:$PATH:.
CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:.
export JAVA_HOME
export PATH
export CLASSPATH
source ~/.zprofile

3.Idea Download and install

4.Idea clone code

5.Compile the project

#Suppose the project path is /Users/hanmeimei/IdeaProjects/shardingsphere/
cd /Users/hanmeimei/IdeaProjects/shardingsphere/

Compile environment

./mvnw -Dmaven.javadoc.skip=true -Djacoco.skip=true -DskipITs -DskipTests clean install

Get the latest projects

./mvnw -Dmaven.javadoc.skip=true -Djacoco.skip=true -DskipITs -DskipTests clean install  -Prelease
#Go to the directory below
cd /Users/hanmeimei/shardingsphere/shardingsphere/shardingsphere-distribution/shardingsphere-proxy-distribution/target
#You can see the latest software packaged
apache-shardingsphere-5.0.0-RC1-SNAPSHOT-shardingsphere-proxy-bin.tar.gz

Conclusion

After completing the above operations, you have a ShardingSphere environment and can participate in the community building of ShardingSphere according to the Contributors’ Guidehttps://shardingsphere.apache.org/community/en/contribute/contributor/)