From 015e40e0d66f18504803fbc2f12e5bc9e0eec540 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=BF=B5=E5=90=9B=20Nianjun=20Sun?= Date: Mon, 25 Sep 2023 23:44:24 +0800 Subject: [PATCH] Document : uniform the mvn usage with ./mvnw (#28575) --- docs/community/content/involved/conduct/code.cn.md | 2 +- docs/community/content/involved/conduct/code.en.md | 2 +- docs/community/content/involved/contribute/contributor.cn.md | 2 +- docs/community/content/involved/contribute/contributor.en.md | 2 +- .../user-manual/shardingsphere-proxy/startup/docker.cn.md | 4 ++-- .../user-manual/shardingsphere-proxy/startup/docker.en.md | 4 ++-- examples/README.md | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/community/content/involved/conduct/code.cn.md b/docs/community/content/involved/conduct/code.cn.md index 73820507586b1..d195dbd5cf462 100644 --- a/docs/community/content/involved/conduct/code.cn.md +++ b/docs/community/content/involved/conduct/code.cn.md @@ -22,7 +22,7 @@ chapter = true - 确保构建流程中的各个步骤都成功完成,包括:Apache 协议文件头检查、Checkstyle 检查、编译、单元测试等。构建流程启动命令:`./mvnw clean install -B -T1C -Pcheck`。 - 确保覆盖率不低于 master 分支。 - 应尽量将设计精细化拆分;做到小幅度修改,多次数提交,但应保证提交的完整性。 - - 通过 Spotless 统一代码风格,执行 `mvn spotless:apply -Pcheck` 格式化代码。 + - 通过 Spotless 统一代码风格,执行 `./mvnw spotless:apply -Pcheck` 格式化代码。 - 如果您使用 IDEA,可导入推荐的 `src/resources/code-style-idea.xml`。 ## 编码规范 diff --git a/docs/community/content/involved/conduct/code.en.md b/docs/community/content/involved/conduct/code.en.md index 006bc7987f22f..546cc97c63079 100644 --- a/docs/community/content/involved/conduct/code.en.md +++ b/docs/community/content/involved/conduct/code.en.md @@ -19,7 +19,7 @@ The following code of conduct is based on full compliance with [ASF CODE OF COND - Make sure Maven build process success. Run `./mvnw clean install -B -T1C -Pcheck` command in shell to start Maven build process. - Make sure the test coverage rate is not lower than the master branch. - Careful consideration for each `pull request`; Small and frequent `pull request` with complete unit function is welcomed. - - Through the uniform code style of spotless, execute the `mvn spotless:apply -Pcheck` formatted code. + - Through the uniform code style of spotless, execute the `./mvnw spotless:apply -Pcheck` formatted code. - If using IDEA, you can import the recommended `src/resources/code-style-idea.xml`. ## Contributor Covenant Code of Conduct diff --git a/docs/community/content/involved/contribute/contributor.cn.md b/docs/community/content/involved/contribute/contributor.cn.md index e371cc42815b7..64c279781dce2 100644 --- a/docs/community/content/involved/contribute/contributor.cn.md +++ b/docs/community/content/involved/contribute/contributor.cn.md @@ -40,7 +40,7 @@ git remote -v ```shell cd shardingsphere -mvn clean install -DskipITs -DskipTests -Prelease +./mvnw clean install -DskipITs -DskipTests -Prelease ``` 当你以后从 ShardingSphere 拉取最新代码并新建分支,可能会遇到类似的解析器编译错误,可以重新运行这个命令来解决问题。 diff --git a/docs/community/content/involved/contribute/contributor.en.md b/docs/community/content/involved/contribute/contributor.en.md index 22d5de6528863..7c7cad43082b5 100644 --- a/docs/community/content/involved/contribute/contributor.en.md +++ b/docs/community/content/involved/contribute/contributor.en.md @@ -40,7 +40,7 @@ Build and install all modules, it'll install modules into Maven local repository ```shell cd shardingsphere -mvn clean install -DskipITs -DskipTests -Prelease +./mvnw clean install -DskipITs -DskipTests -Prelease ``` When you pull the latest code from ShardingSphere and create new branch later, you might get similar compile error of parser again, then you could run this command again. diff --git a/docs/document/content/user-manual/shardingsphere-proxy/startup/docker.cn.md b/docs/document/content/user-manual/shardingsphere-proxy/startup/docker.cn.md index 874773b82307d..cef07fb99dfe8 100644 --- a/docs/document/content/user-manual/shardingsphere-proxy/startup/docker.cn.md +++ b/docs/document/content/user-manual/shardingsphere-proxy/startup/docker.cn.md @@ -25,9 +25,9 @@ docker pull apache/shardingsphere-proxy * 方式三:自行构建镜像 ```bash git clone https://github.com/apache/shardingsphere -mvn clean install +./mvnw clean install cd shardingsphere-distribution/shardingsphere-proxy-distribution -mvn clean package -Prelease,docker +./mvnw clean package -Prelease,docker ``` 如果遇到以下问题,请确保 Docker daemon 进程已经运行。 diff --git a/docs/document/content/user-manual/shardingsphere-proxy/startup/docker.en.md b/docs/document/content/user-manual/shardingsphere-proxy/startup/docker.en.md index fa6c061061896..01e3060de0799 100644 --- a/docs/document/content/user-manual/shardingsphere-proxy/startup/docker.en.md +++ b/docs/document/content/user-manual/shardingsphere-proxy/startup/docker.en.md @@ -25,9 +25,9 @@ docker pull apache/shardingsphere-proxy * Method 3: Build your own image ```bash git clone https://github.com/apache/shardingsphere -mvn clean install +./mvnw clean install cd shardingsphere-distribution/shardingsphere-proxy-distribution -mvn clean package -Prelease,docker +./mvnw clean package -Prelease,docker ``` If the following problems emerge, please make sure Docker daemon Process is running. diff --git a/examples/README.md b/examples/README.md index 6ed4bcd8691d3..443ae116e4bd3 100644 --- a/examples/README.md +++ b/examples/README.md @@ -25,7 +25,7 @@ git clone https://github.com/apache/shardingsphere.git ## compile source code cd shardingsphere -mvn clean install -Prelease +./mvnw clean install -Prelease ``` ## Module design