You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/08/25 06:59:34 UTC

[GitHub] [shardingsphere] wsm12138 opened a new pull request #11997: Add the build project document for the novice

wsm12138 opened a new pull request #11997:
URL: https://github.com/apache/shardingsphere/pull/11997


   Add the build project document for the novice.
   
   Changes proposed in this pull request:
   -Add the build project document for the novice
   -Changes the location of the document in the index directoryvice
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] wsm12138 commented on a change in pull request #11997: Add the build project document for the novice

Posted by GitBox <gi...@apache.org>.
wsm12138 commented on a change in pull request #11997:
URL: https://github.com/apache/shardingsphere/pull/11997#discussion_r695470948



##########
File path: docs/community/content/contribute/establish-project.en.md
##########
@@ -0,0 +1,124 @@
++++
+title = "Establish project and environmental guidelines"
+weight = 2
+chapter = true
++++
+
+[TOC]
+
+# Establish the ShardingSphere software environment locally and obtain the latest installation package
+
+## Software environment
+
+
+
+| **Software** | **JDK** | **Maven** | **Idea**     |
+|  :--:  | :--:  |:--:  |  :--:  |
+| **Version** |  >=1.8  |  >=3.6.0  | 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
+
+![image20210818115720737](https://note.youdao.com/yws/public/resource/ae044dae27b19d4d2f191c76e6df0a10/xmlnote/WEBRESOURCE98df8ecd49565fed4be4dfe594d04521/17060)
+
+- Install it directly after downloading
+
+## 2.Maven environment deployment

Review comment:
       @tristaZero  Please help to check whether maven related content needs to be removed from the content




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] tristaZero commented on a change in pull request #11997: Add the build project document for the novice

Posted by GitBox <gi...@apache.org>.
tristaZero commented on a change in pull request #11997:
URL: https://github.com/apache/shardingsphere/pull/11997#discussion_r695560214



##########
File path: docs/community/content/contribute/establish-project.cn.md
##########
@@ -0,0 +1,141 @@
++++
+title = "搭建项目及环境指南"
+weight = 2
+chapter = true
++++
+
+
+# 本地构建 ShardingSphere 软件环境及获取最新安装包
+
+
+
+## 软件环境
+
+
+
+| **软件** | **JDK** | **Maven** |   **Idea**   |
+|  :--:  | :--:  |:--:  |  :--:  |
+| **版本** |  >=1.8  |  >=3.6.0  | 最新版本即可 |
+
+
+
+## 安装步骤( Mac 为例)
+
+
+
+## 1.JDK 安装
+
+
+
+- 下方链接获取适合自己环境的安装包( mac 选取 .dmg 格式)
+
+	https://www.oracle.com/java
+	
+	![image-20210818115720737](https://note.youdao.com/yws/public/resource/ae044dae27b19d4d2f191c76e6df0a10/xmlnote/WEBRESOURCE98df8ecd49565fed4be4dfe594d04521/17060)
+	
+- 下载完成后直接安装即可
+## 2.Maven 环境部署
+
+
+
+- 下方链接获取适合自己环境的安装包(本文选 tar 包)
+
+	https://maven.apache.org/download.cgi
+	
+	![image-20210818125507693](https://note.youdao.com/yws/public/resource/24e39e9af756ec4c7b16505a47565f33/xmlnote/WEBRESOURCE5130867b0314f76067395cd77fb74b72/17040)
+
+- 下载后解压即可
+## 3.设置环境变量
+
+
+
+```shell
+vim ~/.zprofile
+```
+
+
+
+- 在下方添加环境变量:
+
+```shell
+#jdk环境通过 .dmg 方式安装后默认为下方路径
+JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_301.jdk/Contents/Home
+#假设解压路径为/Users/hanmeimei/apache-maven-3.8.1 
+MAVEN_HOME=/Users/hanmeimei/apache-maven-3.8.1
+
+
+PATH=$JAVA_HOME/bin:$PATH:.
+PATH=$MAVEN_HOME/bin:$PATH:.
+
+CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:.
+
+export JAVA_HOME
+export MAVEN_HOME
+export PATH
+export CLASSPATH
+```
+
+
+
+```shell
+source ~/.zprofile
+```
+
+## 4.Idea 下载安装
+
+
+
+- 下方链接获取适合自己环境的安装包
+
+	https://www.jetbrains.com/idea/download/#section=mac
+- 下载后直接安装
+
+## 5.Idea clone 代码
+
+
+
+- 进入 Idea
+- 工具栏-->Git-->Clone-->Url(https://github.com/apache/shardingsphere.git)
+	
+	![image-20210818110310185](https://note.youdao.com/yws/public/resource/d2c90a133be6216fadf355a5693af603/xmlnote/WEBRESOURCE714e7e0a63d84257f20230dbcc92fbbe/17045)
+- 等待结束就有刚刚克隆的最新的代码了
+
+## 6.项目编译
+
+
+
+```shell
+#假设项目路径为 /Users/hanmeimei/IdeaProjects/shardingsphere/
+
+cd /Users/hanmeimei/IdeaProjects/shardingsphere/
+```
+
+
+
+### 编译环境
+
+```shell
+mvn -Dmaven.javadoc.skip=true -Djacoco.skip=true -DskipITs -DskipTests clean install 
+```
+
+
+
+### 获取最新的项目
+
+```shell
+mvn -Dmaven.javadoc.skip=true -Djacoco.skip=true -DskipITs -DskipTests clean install  -Prelease
+
+#进入下方目录位置
+cd /Users/hanmeimei/shardingsphere/shardingsphere/shardingsphere-distribution/shardingsphere-proxy-distribution/target
+
+#即可看到打包好最新的软件  
+apache-shardingsphere-5.0.0-RC1-SNAPSHOT-shardingsphere-proxy-bin.tar.gz
+```
+
+
+
+## 结语
+
+完成以上操作后,您已经有了 ShardingSphere 的软件环境,可以根据下方《贡献者指南》 参与到 ShardingSphere 的社区建设
+
+https://shardingsphere.apache.org/community/cn/contribute/contributor/

Review comment:
       It is supposed to be a md link, i.e, [《贡献者指南》](https://shardingsphere.apache.org/community/cn/contribute/contributor/)




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] TeslaCN commented on a change in pull request #11997: Add the build project document for the novice

Posted by GitBox <gi...@apache.org>.
TeslaCN commented on a change in pull request #11997:
URL: https://github.com/apache/shardingsphere/pull/11997#discussion_r695460511



##########
File path: docs/community/content/contribute/establish-project.en.md
##########
@@ -0,0 +1,124 @@
++++
+title = "Establish project and environmental guidelines"
+weight = 2
+chapter = true
++++
+
+[TOC]
+
+# Establish the ShardingSphere software environment locally and obtain the latest installation package
+
+## Software environment
+
+
+
+| **Software** | **JDK** | **Maven** | **Idea**     |
+|  :--:  | :--:  |:--:  |  :--:  |
+| **Version** |  >=1.8  |  >=3.6.0  | 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
+
+![image20210818115720737](https://note.youdao.com/yws/public/resource/ae044dae27b19d4d2f191c76e6df0a10/xmlnote/WEBRESOURCE98df8ecd49565fed4be4dfe594d04521/17060)
+
+- Install it directly after downloading
+
+## 2.Maven environment deployment

Review comment:
       Using Maven Wrapper in our project is more convenient.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] tristaZero merged pull request #11997: Add the build project document for the novice

Posted by GitBox <gi...@apache.org>.
tristaZero merged pull request #11997:
URL: https://github.com/apache/shardingsphere/pull/11997


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] codecov-commenter commented on pull request #11997: Add the build project document for the novice

Posted by GitBox <gi...@apache.org>.
codecov-commenter commented on pull request #11997:
URL: https://github.com/apache/shardingsphere/pull/11997#issuecomment-905295538


   # [Codecov](https://codecov.io/gh/apache/shardingsphere/pull/11997?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
   > Merging [#11997](https://codecov.io/gh/apache/shardingsphere/pull/11997?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (dee5357) into [master](https://codecov.io/gh/apache/shardingsphere/commit/291dcd46bb25dc3ef5757e480a4f7d68b15bdb5f?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (291dcd4) will **decrease** coverage by `0.41%`.
   > The diff coverage is `43.97%`.
   
   [![Impacted file tree graph](https://codecov.io/gh/apache/shardingsphere/pull/11997/graphs/tree.svg?width=650&height=150&src=pr&token=ZvlXpWa7so&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)](https://codecov.io/gh/apache/shardingsphere/pull/11997?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
   
   ```diff
   @@             Coverage Diff              @@
   ##             master   #11997      +/-   ##
   ============================================
   - Coverage     63.70%   63.29%   -0.42%     
   - Complexity     1196     1231      +35     
   ============================================
     Files          2306     2294      -12     
     Lines         34894    34884      -10     
     Branches       6051     6068      +17     
   ============================================
   - Hits          22230    22079     -151     
   - Misses        10889    11023     +134     
   - Partials       1775     1782       +7     
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/shardingsphere/pull/11997?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
   |---|---|---|
   | [...ngsphere/agent/metrics/api/constant/MetricIds.java](https://codecov.io/gh/apache/shardingsphere/pull/11997/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2hhcmRpbmdzcGhlcmUtYWdlbnQvc2hhcmRpbmdzcGhlcmUtYWdlbnQtcGx1Z2lucy9zaGFyZGluZ3NwaGVyZS1hZ2VudC1wbHVnaW4tbWV0cmljcy9zaGFyZGluZ3NwaGVyZS1hZ2VudC1tZXRyaWNzLWFwaS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2hhcmRpbmdzcGhlcmUvYWdlbnQvbWV0cmljcy9hcGkvY29uc3RhbnQvTWV0cmljSWRzLmphdmE=) | `0.00% <ø> (ø)` | |
   | [...stsql/parser/api/DistSQLStatementParserEngine.java](https://codecov.io/gh/apache/shardingsphere/pull/11997/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2hhcmRpbmdzcGhlcmUtZGlzdHNxbC1wYXJzZXIvc2hhcmRpbmdzcGhlcmUtZGlzdHNxbC1wYXJzZXItZW5naW5lL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9zaGFyZGluZ3NwaGVyZS9kaXN0c3FsL3BhcnNlci9hcGkvRGlzdFNRTFN0YXRlbWVudFBhcnNlckVuZ2luZS5qYXZh) | `0.00% <0.00%> (ø)` | |
   | [...ql/parser/core/advanced/AdvancedDistSQLParser.java](https://codecov.io/gh/apache/shardingsphere/pull/11997/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2hhcmRpbmdzcGhlcmUtZGlzdHNxbC1wYXJzZXIvc2hhcmRpbmdzcGhlcmUtZGlzdHNxbC1wYXJzZXItZW5naW5lL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9zaGFyZGluZ3NwaGVyZS9kaXN0c3FsL3BhcnNlci9jb3JlL2FkdmFuY2VkL0FkdmFuY2VkRGlzdFNRTFBhcnNlci5qYXZh) | `0.00% <0.00%> (ø)` | |
   | [...advanced/AdvancedDistSQLStatementParserEngine.java](https://codecov.io/gh/apache/shardingsphere/pull/11997/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2hhcmRpbmdzcGhlcmUtZGlzdHNxbC1wYXJzZXIvc2hhcmRpbmdzcGhlcmUtZGlzdHNxbC1wYXJzZXItZW5naW5lL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9zaGFyZGluZ3NwaGVyZS9kaXN0c3FsL3BhcnNlci9jb3JlL2FkdmFuY2VkL0FkdmFuY2VkRGlzdFNRTFN0YXRlbWVudFBhcnNlckVuZ2luZS5qYXZh) | `0.00% <0.00%> (ø)` | |
   | [...core/advanced/AdvancedDistSQLStatementVisitor.java](https://codecov.io/gh/apache/shardingsphere/pull/11997/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2hhcmRpbmdzcGhlcmUtZGlzdHNxbC1wYXJzZXIvc2hhcmRpbmdzcGhlcmUtZGlzdHNxbC1wYXJzZXItZW5naW5lL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9zaGFyZGluZ3NwaGVyZS9kaXN0c3FsL3BhcnNlci9jb3JlL2FkdmFuY2VkL0FkdmFuY2VkRGlzdFNRTFN0YXRlbWVudFZpc2l0b3IuamF2YQ==) | `0.00% <0.00%> (ø)` | |
   | [.../metadata/schema/builder/TableMetaDataBuilder.java](https://codecov.io/gh/apache/shardingsphere/pull/11997/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2hhcmRpbmdzcGhlcmUtaW5mcmEvc2hhcmRpbmdzcGhlcmUtaW5mcmEtY29tbW9uL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9zaGFyZGluZ3NwaGVyZS9pbmZyYS9tZXRhZGF0YS9zY2hlbWEvYnVpbGRlci9UYWJsZU1ldGFEYXRhQnVpbGRlci5qYXZh) | `86.36% <ø> (-4.12%)` | :arrow_down: |
   | [...ingsphere/infra/executor/check/SQLCheckEngine.java](https://codecov.io/gh/apache/shardingsphere/pull/11997/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2hhcmRpbmdzcGhlcmUtaW5mcmEvc2hhcmRpbmdzcGhlcmUtaW5mcmEtZXhlY3V0b3Ivc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NoYXJkaW5nc3BoZXJlL2luZnJhL2V4ZWN1dG9yL2NoZWNrL1NRTENoZWNrRW5naW5lLmphdmE=) | `0.00% <0.00%> (ø)` | |
   | [...or/sql/prepare/AbstractExecutionPrepareEngine.java](https://codecov.io/gh/apache/shardingsphere/pull/11997/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2hhcmRpbmdzcGhlcmUtaW5mcmEvc2hhcmRpbmdzcGhlcmUtaW5mcmEtZXhlY3V0b3Ivc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NoYXJkaW5nc3BoZXJlL2luZnJhL2V4ZWN1dG9yL3NxbC9wcmVwYXJlL0Fic3RyYWN0RXhlY3V0aW9uUHJlcGFyZUVuZ2luZS5qYXZh) | `0.00% <0.00%> (ø)` | |
   | [...end/text/distsql/ral/RALBackendHandlerFactory.java](https://codecov.io/gh/apache/shardingsphere/pull/11997/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2hhcmRpbmdzcGhlcmUtcHJveHkvc2hhcmRpbmdzcGhlcmUtcHJveHktYmFja2VuZC9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2hhcmRpbmdzcGhlcmUvcHJveHkvYmFja2VuZC90ZXh0L2Rpc3RzcWwvcmFsL1JBTEJhY2tlbmRIYW5kbGVyRmFjdG9yeS5qYXZh) | `11.11% <0.00%> (+11.11%)` | :arrow_up: |
   | [...advanced/AdvancedDistSQLBackendHandlerFactory.java](https://codecov.io/gh/apache/shardingsphere/pull/11997/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2hhcmRpbmdzcGhlcmUtcHJveHkvc2hhcmRpbmdzcGhlcmUtcHJveHktYmFja2VuZC9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2hhcmRpbmdzcGhlcmUvcHJveHkvYmFja2VuZC90ZXh0L2Rpc3RzcWwvcmFsL2FkdmFuY2VkL0FkdmFuY2VkRGlzdFNRTEJhY2tlbmRIYW5kbGVyRmFjdG9yeS5qYXZh) | `0.00% <0.00%> (ø)` | |
   | ... and [417 more](https://codecov.io/gh/apache/shardingsphere/pull/11997/diff?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | |
   
   ------
   
   [Continue to review full report at Codecov](https://codecov.io/gh/apache/shardingsphere/pull/11997?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation).
   > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
   > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
   > Powered by [Codecov](https://codecov.io/gh/apache/shardingsphere/pull/11997?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation). Last update [4195596...dee5357](https://codecov.io/gh/apache/shardingsphere/pull/11997?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org