{"action":"created","comment":{"url":"https://api.github.com/repos/apache/servicecomb-toolkit/pulls/comments/317573770","pull_request_review_id":279553092,"id":317573770,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMxNzU3Mzc3MA==","diff_hunk":"@@ -0,0 +1,73 @@\n+### Generate From Code Sample\n+本案例模拟一个多模块项目，包括以下两个服务：\n+* HelloService\n+* GoodbyeService\n+\n+HelloService和GoodbyeService各提供一个接口，本案例将分别将其转换成对应的基于ServiceComb java-chassis的微服务项目\n+\n+### 运行环境\n+1. [JDK 1.8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)\n+2. [Maven 3.x](https://maven.apache.org/install.html)\n+\n+### 步骤1： 配置插件\n+在父pom中配置toolkit-maven-plugin插件\n+```xml\n+<plugin>\n+    <groupId>org.apache.servicecomb.toolkit</groupId>\n+    <artifactId>toolkit-maven-plugin</artifactId>\n+    <version>0.1.0-SNAPSHOT</version>\n+    <configuration>\n+        <!-- 输入源。设置为 code，表示解析当前代码；设置为 contract，表示解析指定目录的契约文件。不设置则默认为 code -->\n+        <sourceType>code</sourceType>\n+        <!-- 生成契约文件、文档的根目录，不设置则默认为运行命令所在目录下的 target 目录，生成的微服务工程在 project 目录，契约文件在 contract 目录，文档在 document 目录 -->\n+        <outputDirectory>./target</outputDirectory>\n+        <!-- 生成的微服务代码工程配置 -->\n+        <service>\n+            <!-- 微服务的类型，可生成 provider/consumer/all，默认值为 all -->\n+            <serviceType>all</serviceType>\n+            <groupId>org.apache.servicecom.toolkit</groupId>\n+            <artifactId>generate-from-code-sample</artifactId>\n+        </service>\n+    </configuration>\n+</plugin>\n+```\n+\n+### 步骤2：执行插件\n+运行插件的generate目标","path":"samples/generate-from-code-sample/README-ZH.md","position":36,"original_position":36,"commit_id":"ce1764585a49c46946bc16f3ac3540337055afe2","original_commit_id":"ce1764585a49c46946bc16f3ac3540337055afe2","user":{"login":"MabinGo","id":10934340,"node_id":"MDQ6VXNlcjEwOTM0MzQw","avatar_url":"https://avatars1.githubusercontent.com/u/10934340?v=4","gravatar_id":"","url":"https://api.github.com/users/MabinGo","html_url":"https://github.com/MabinGo","followers_url":"https://api.github.com/users/MabinGo/followers","following_url":"https://api.github.com/users/MabinGo/following{/other_user}","gists_url":"https://api.github.com/users/MabinGo/gists{/gist_id}","starred_url":"https://api.github.com/users/MabinGo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MabinGo/subscriptions","organizations_url":"https://api.github.com/users/MabinGo/orgs","repos_url":"https://api.github.com/users/MabinGo/repos","events_url":"https://api.github.com/users/MabinGo/events{/privacy}","received_events_url":"https://api.github.com/users/MabinGo/received_events","type":"User","site_admin":false},"body":"在shell中使用maven执行如下命令：","created_at":"2019-08-26T12:10:26Z","updated_at":"2019-08-26T12:10:26Z","html_url":"https://github.com/apache/servicecomb-toolkit/pull/27#discussion_r317573770","pull_request_url":"https://api.github.com/repos/apache/servicecomb-toolkit/pulls/27","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/apache/servicecomb-toolkit/pulls/comments/317573770"},"html":{"href":"https://github.com/apache/servicecomb-toolkit/pull/27#discussion_r317573770"},"pull_request":{"href":"https://api.github.com/repos/apache/servicecomb-toolkit/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/apache/servicecomb-toolkit/pulls/27","id":310884864,"node_id":"MDExOlB1bGxSZXF1ZXN0MzEwODg0ODY0","html_url":"https://github.com/apache/servicecomb-toolkit/pull/27","diff_url":"https://github.com/apache/servicecomb-toolkit/pull/27.diff","patch_url":"https://github.com/apache/servicecomb-toolkit/pull/27.patch","issue_url":"https://api.github.com/repos/apache/servicecomb-toolkit/issues/27","number":27,"state":"open","locked":false,"title":"SCB-1463 optimize samples readme","user":{"login":"kakulisen","id":16425825,"node_id":"MDQ6VXNlcjE2NDI1ODI1","avatar_url":"https://avatars0.githubusercontent.com/u/16425825?v=4","gravatar_id":"","url":"https://api.github.com/users/kakulisen","html_url":"https://github.com/kakulisen","followers_url":"https://api.github.com/users/kakulisen/followers","following_url":"https://api.github.com/users/kakulisen/following{/other_user}","gists_url":"https://api.github.com/users/kakulisen/gists{/gist_id}","starred_url":"https://api.github.com/users/kakulisen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kakulisen/subscriptions","organizations_url":"https://api.github.com/users/kakulisen/orgs","repos_url":"https://api.github.com/users/kakulisen/repos","events_url":"https://api.github.com/users/kakulisen/events{/privacy}","received_events_url":"https://api.github.com/users/kakulisen/received_events","type":"User","site_admin":false},"body":" optimize samples readme\r\n\r\nSigned-off-by: kakulisen <18813972746@163.com>","created_at":"2019-08-26T11:49:23Z","updated_at":"2019-08-26T12:10:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ad5e58ee62453a203b281722806500c5ae1e8c79","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/servicecomb-toolkit/pulls/27/commits","review_comments_url":"https://api.github.com/repos/apache/servicecomb-toolkit/pulls/27/comments","review_comment_url":"https://api.github.com/repos/apache/servicecomb-toolkit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/servicecomb-toolkit/issues/27/comments","statuses_url":"https://api.github.com/repos/apache/servicecomb-toolkit/statuses/ce1764585a49c46946bc16f3ac3540337055afe2","head":{"label":"kakulisen:optimize-samples-readme","ref":"optimize-samples-readme","sha":"ce1764585a49c46946bc16f3ac3540337055afe2","user":{"login":"kakulisen","id":16425825,"node_id":"MDQ6VXNlcjE2NDI1ODI1","avatar_url":"https://avatars0.githubusercontent.com/u/16425825?v=4","gravatar_id":"","url":"https://api.github.com/users/kakulisen","html_url":"https://github.com/kakulisen","followers_url":"https://api.github.com/users/kakulisen/followers","following_url":"https://api.github.com/users/kakulisen/following{/other_user}","gists_url":"https://api.github.com/users/kakulisen/gists{/gist_id}","starred_url":"https://api.github.com/users/kakulisen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kakulisen/subscriptions","organizations_url":"https://api.github.com/users/kakulisen/orgs","repos_url":"https://api.github.com/users/kakulisen/repos","events_url":"https://api.github.com/users/kakulisen/events{/privacy}","received_events_url":"https://api.github.com/users/kakulisen/received_events","type":"User","site_admin":false},"repo":{"id":193053354,"node_id":"MDEwOlJlcG9zaXRvcnkxOTMwNTMzNTQ=","name":"servicecomb-toolkit","full_name":"kakulisen/servicecomb-toolkit","private":false,"owner":{"login":"kakulisen","id":16425825,"node_id":"MDQ6VXNlcjE2NDI1ODI1","avatar_url":"https://avatars0.githubusercontent.com/u/16425825?v=4","gravatar_id":"","url":"https://api.github.com/users/kakulisen","html_url":"https://github.com/kakulisen","followers_url":"https://api.github.com/users/kakulisen/followers","following_url":"https://api.github.com/users/kakulisen/following{/other_user}","gists_url":"https://api.github.com/users/kakulisen/gists{/gist_id}","starred_url":"https://api.github.com/users/kakulisen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kakulisen/subscriptions","organizations_url":"https://api.github.com/users/kakulisen/orgs","repos_url":"https://api.github.com/users/kakulisen/repos","events_url":"https://api.github.com/users/kakulisen/events{/privacy}","received_events_url":"https://api.github.com/users/kakulisen/received_events","type":"User","site_admin":false},"html_url":"https://github.com/kakulisen/servicecomb-toolkit","description":"Apache servicecomb","fork":true,"url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit","forks_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/forks","keys_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/teams","hooks_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/hooks","issue_events_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/issues/events{/number}","events_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/events","assignees_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/assignees{/user}","branches_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/branches{/branch}","tags_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/tags","blobs_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/statuses/{sha}","languages_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/languages","stargazers_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/stargazers","contributors_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/contributors","subscribers_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/subscribers","subscription_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/subscription","commits_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/contents/{+path}","compare_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/merges","archive_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/downloads","issues_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/issues{/number}","pulls_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/pulls{/number}","milestones_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/milestones{/number}","notifications_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/labels{/name}","releases_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/releases{/id}","deployments_url":"https://api.github.com/repos/kakulisen/servicecomb-toolkit/deployments","created_at":"2019-06-21T07:36:00Z","updated_at":"2019-08-23T15:46:00Z","pushed_at":"2019-08-26T11:48:53Z","git_url":"git://github.com/kakulisen/servicecomb-toolkit.git","ssh_url":"git@github.com:kakulisen/servicecomb-toolkit.git","clone_url":"https://github.com/kakulisen/servicecomb-toolkit.git","svn_url":"https://github.com/kakulisen/servicecomb-toolkit","homepage":"https://servicecomb.apache.org/","size":764,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"20ca789b6aceca2759a96b153c3cfc2f220b4e54","user":{"login":"apache","id":47359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5","avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":193047220,"node_id":"MDEwOlJlcG9zaXRvcnkxOTMwNDcyMjA=","name":"servicecomb-toolkit","full_name":"apache/servicecomb-toolkit","private":false,"owner":{"login":"apache","id":47359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5","avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/apache/servicecomb-toolkit","description":"Apache servicecomb","fork":false,"url":"https://api.github.com/repos/apache/servicecomb-toolkit","forks_url":"https://api.github.com/repos/apache/servicecomb-toolkit/forks","keys_url":"https://api.github.com/repos/apache/servicecomb-toolkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/servicecomb-toolkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/servicecomb-toolkit/teams","hooks_url":"https://api.github.com/repos/apache/servicecomb-toolkit/hooks","issue_events_url":"https://api.github.com/repos/apache/servicecomb-toolkit/issues/events{/number}","events_url":"https://api.github.com/repos/apache/servicecomb-toolkit/events","assignees_url":"https://api.github.com/repos/apache/servicecomb-toolkit/assignees{/user}","branches_url":"https://api.github.com/repos/apache/servicecomb-toolkit/branches{/branch}","tags_url":"https://api.github.com/repos/apache/servicecomb-toolkit/tags","blobs_url":"https://api.github.com/repos/apache/servicecomb-toolkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/servicecomb-toolkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/servicecomb-toolkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/servicecomb-toolkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/servicecomb-toolkit/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/servicecomb-toolkit/languages","stargazers_url":"https://api.github.com/repos/apache/servicecomb-toolkit/stargazers","contributors_url":"https://api.github.com/repos/apache/servicecomb-toolkit/contributors","subscribers_url":"https://api.github.com/repos/apache/servicecomb-toolkit/subscribers","subscription_url":"https://api.github.com/repos/apache/servicecomb-toolkit/subscription","commits_url":"https://api.github.com/repos/apache/servicecomb-toolkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/servicecomb-toolkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/servicecomb-toolkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/servicecomb-toolkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/servicecomb-toolkit/contents/{+path}","compare_url":"https://api.github.com/repos/apache/servicecomb-toolkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/servicecomb-toolkit/merges","archive_url":"https://api.github.com/repos/apache/servicecomb-toolkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/servicecomb-toolkit/downloads","issues_url":"https://api.github.com/repos/apache/servicecomb-toolkit/issues{/number}","pulls_url":"https://api.github.com/repos/apache/servicecomb-toolkit/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/servicecomb-toolkit/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/servicecomb-toolkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/servicecomb-toolkit/labels{/name}","releases_url":"https://api.github.com/repos/apache/servicecomb-toolkit/releases{/id}","deployments_url":"https://api.github.com/repos/apache/servicecomb-toolkit/deployments","created_at":"2019-06-21T06:54:48Z","updated_at":"2019-08-26T04:13:37Z","pushed_at":"2019-08-26T11:49:23Z","git_url":"git://github.com/apache/servicecomb-toolkit.git","ssh_url":"git@github.com:apache/servicecomb-toolkit.git","clone_url":"https://github.com/apache/servicecomb-toolkit.git","svn_url":"https://github.com/apache/servicecomb-toolkit","homepage":"https://servicecomb.apache.org/","size":733,"stargazers_count":25,"watchers_count":25,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":13,"open_issues":1,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/servicecomb-toolkit/pulls/27"},"html":{"href":"https://github.com/apache/servicecomb-toolkit/pull/27"},"issue":{"href":"https://api.github.com/repos/apache/servicecomb-toolkit/issues/27"},"comments":{"href":"https://api.github.com/repos/apache/servicecomb-toolkit/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/servicecomb-toolkit/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/servicecomb-toolkit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/servicecomb-toolkit/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/apache/servicecomb-toolkit/statuses/ce1764585a49c46946bc16f3ac3540337055afe2"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"MabinGo"}}