{"action":"created","comment":{"url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/pulls/comments/33129957","id":33129957,"diff_hunk":"@@ -0,0 +1,79 @@\n+package org.openmrs.maven.plugins;\n+\n+import org.apache.maven.plugin.AbstractMojo;\n+import org.apache.maven.plugin.MojoExecutionException;\n+import org.apache.maven.plugin.MojoFailureException;\n+import org.codehaus.plexus.components.interactivity.Prompter;\n+import org.openmrs.maven.plugins.utility.AttributeHelper;\n+\n+import java.io.BufferedReader;\n+import java.io.File;\n+import java.io.InputStreamReader;\n+\n+/**\n+ * @goal run\n+ * @requiresProject false\n+ */\n+public class Run extends AbstractMojo {\n+\n+    private static final String NO_SERVER_TEXT = \"There no server with given serverId. Please create it using omrs:setup first\";\n+\n+    /**\n+     * @parameter expression=\"${serverId}\"\n+     */\n+    private String serverId;\n+\n+    /**\n+     * @component\n+     */\n+    private Prompter prompter;\n+\n+    public void execute() throws MojoExecutionException, MojoFailureException {\n+        AttributeHelper helper = new AttributeHelper(prompter);\n+        ModuleInstall installer = new ModuleInstall(prompter);\n+        File serverPath = installer.getServerPath(helper, serverId, NO_SERVER_TEXT);\n+        try {\n+            ProcessBuilder pb = new ProcessBuilder(\"mvn\", \"clean\", \"install\");","path":"src/main/java/org/openmrs/maven/plugins/Run.java","position":36,"original_position":36,"commit_id":"3bb310170ed016b9d683da671af5c3b69d198d7f","original_commit_id":"3bb310170ed016b9d683da671af5c3b69d198d7f","user":{"login":"rkorytkowski","id":1163157,"avatar_url":"https://avatars.githubusercontent.com/u/1163157?v=3","gravatar_id":"","url":"https://api.github.com/users/rkorytkowski","html_url":"https://github.com/rkorytkowski","followers_url":"https://api.github.com/users/rkorytkowski/followers","following_url":"https://api.github.com/users/rkorytkowski/following{/other_user}","gists_url":"https://api.github.com/users/rkorytkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/rkorytkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkorytkowski/subscriptions","organizations_url":"https://api.github.com/users/rkorytkowski/orgs","repos_url":"https://api.github.com/users/rkorytkowski/repos","events_url":"https://api.github.com/users/rkorytkowski/events{/privacy}","received_events_url":"https://api.github.com/users/rkorytkowski/received_events","type":"User","site_admin":false},"body":"Okay, great!","created_at":"2015-06-24T09:11:00Z","updated_at":"2015-06-24T09:11:00Z","html_url":"https://github.com/openmrs/openmrs-contrib-sdk-maven-plugin/pull/4#discussion_r33129957","pull_request_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/pulls/comments/33129957"},"html":{"href":"https://github.com/openmrs/openmrs-contrib-sdk-maven-plugin/pull/4#discussion_r33129957"},"pull_request":{"href":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/pulls/4","id":37988407,"html_url":"https://github.com/openmrs/openmrs-contrib-sdk-maven-plugin/pull/4","diff_url":"https://github.com/openmrs/openmrs-contrib-sdk-maven-plugin/pull/4.diff","patch_url":"https://github.com/openmrs/openmrs-contrib-sdk-maven-plugin/pull/4.patch","issue_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/issues/4","number":4,"state":"open","locked":false,"title":"Implemented SDK-39, SDK-40","user":{"login":"diospark","id":11295080,"avatar_url":"https://avatars.githubusercontent.com/u/11295080?v=3","gravatar_id":"","url":"https://api.github.com/users/diospark","html_url":"https://github.com/diospark","followers_url":"https://api.github.com/users/diospark/followers","following_url":"https://api.github.com/users/diospark/following{/other_user}","gists_url":"https://api.github.com/users/diospark/gists{/gist_id}","starred_url":"https://api.github.com/users/diospark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diospark/subscriptions","organizations_url":"https://api.github.com/users/diospark/orgs","repos_url":"https://api.github.com/users/diospark/repos","events_url":"https://api.github.com/users/diospark/events{/privacy}","received_events_url":"https://api.github.com/users/diospark/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-18T09:45:08Z","updated_at":"2015-06-24T09:11:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6a979236d3fd4d0cf79fe7793c95be3eceaf03e5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/pulls/4/commits","review_comments_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/pulls/4/comments","review_comment_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/issues/4/comments","statuses_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/statuses/3bb310170ed016b9d683da671af5c3b69d198d7f","head":{"label":"diospark:master","ref":"master","sha":"3bb310170ed016b9d683da671af5c3b69d198d7f","user":{"login":"diospark","id":11295080,"avatar_url":"https://avatars.githubusercontent.com/u/11295080?v=3","gravatar_id":"","url":"https://api.github.com/users/diospark","html_url":"https://github.com/diospark","followers_url":"https://api.github.com/users/diospark/followers","following_url":"https://api.github.com/users/diospark/following{/other_user}","gists_url":"https://api.github.com/users/diospark/gists{/gist_id}","starred_url":"https://api.github.com/users/diospark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diospark/subscriptions","organizations_url":"https://api.github.com/users/diospark/orgs","repos_url":"https://api.github.com/users/diospark/repos","events_url":"https://api.github.com/users/diospark/events{/privacy}","received_events_url":"https://api.github.com/users/diospark/received_events","type":"User","site_admin":false},"repo":{"id":36399623,"name":"openmrs-contrib-sdk-maven-plugin","full_name":"diospark/openmrs-contrib-sdk-maven-plugin","owner":{"login":"diospark","id":11295080,"avatar_url":"https://avatars.githubusercontent.com/u/11295080?v=3","gravatar_id":"","url":"https://api.github.com/users/diospark","html_url":"https://github.com/diospark","followers_url":"https://api.github.com/users/diospark/followers","following_url":"https://api.github.com/users/diospark/following{/other_user}","gists_url":"https://api.github.com/users/diospark/gists{/gist_id}","starred_url":"https://api.github.com/users/diospark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diospark/subscriptions","organizations_url":"https://api.github.com/users/diospark/orgs","repos_url":"https://api.github.com/users/diospark/repos","events_url":"https://api.github.com/users/diospark/events{/privacy}","received_events_url":"https://api.github.com/users/diospark/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/diospark/openmrs-contrib-sdk-maven-plugin","description":"A maven plugin for the OpenMRS SDK","fork":true,"url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin","forks_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/forks","keys_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/teams","hooks_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/hooks","issue_events_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/events","assignees_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/tags","blobs_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/languages","stargazers_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/stargazers","contributors_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/contributors","subscribers_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/subscribers","subscription_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/subscription","commits_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/merges","archive_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/downloads","issues_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/labels{/name}","releases_url":"https://api.github.com/repos/diospark/openmrs-contrib-sdk-maven-plugin/releases{/id}","created_at":"2015-05-27T22:27:56Z","updated_at":"2015-05-27T22:30:07Z","pushed_at":"2015-06-20T22:04:56Z","git_url":"git://github.com/diospark/openmrs-contrib-sdk-maven-plugin.git","ssh_url":"git@github.com:diospark/openmrs-contrib-sdk-maven-plugin.git","clone_url":"https://github.com/diospark/openmrs-contrib-sdk-maven-plugin.git","svn_url":"https://github.com/diospark/openmrs-contrib-sdk-maven-plugin","homepage":null,"size":225,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openmrs:master","ref":"master","sha":"43c983929164fb5b81f6160f82e5662e9b24e5c7","user":{"login":"openmrs","id":860776,"avatar_url":"https://avatars.githubusercontent.com/u/860776?v=3","gravatar_id":"","url":"https://api.github.com/users/openmrs","html_url":"https://github.com/openmrs","followers_url":"https://api.github.com/users/openmrs/followers","following_url":"https://api.github.com/users/openmrs/following{/other_user}","gists_url":"https://api.github.com/users/openmrs/gists{/gist_id}","starred_url":"https://api.github.com/users/openmrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmrs/subscriptions","organizations_url":"https://api.github.com/users/openmrs/orgs","repos_url":"https://api.github.com/users/openmrs/repos","events_url":"https://api.github.com/users/openmrs/events{/privacy}","received_events_url":"https://api.github.com/users/openmrs/received_events","type":"Organization","site_admin":false},"repo":{"id":36256115,"name":"openmrs-contrib-sdk-maven-plugin","full_name":"openmrs/openmrs-contrib-sdk-maven-plugin","owner":{"login":"openmrs","id":860776,"avatar_url":"https://avatars.githubusercontent.com/u/860776?v=3","gravatar_id":"","url":"https://api.github.com/users/openmrs","html_url":"https://github.com/openmrs","followers_url":"https://api.github.com/users/openmrs/followers","following_url":"https://api.github.com/users/openmrs/following{/other_user}","gists_url":"https://api.github.com/users/openmrs/gists{/gist_id}","starred_url":"https://api.github.com/users/openmrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmrs/subscriptions","organizations_url":"https://api.github.com/users/openmrs/orgs","repos_url":"https://api.github.com/users/openmrs/repos","events_url":"https://api.github.com/users/openmrs/events{/privacy}","received_events_url":"https://api.github.com/users/openmrs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openmrs/openmrs-contrib-sdk-maven-plugin","description":"A maven plugin for the OpenMRS SDK","fork":false,"url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin","forks_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/forks","keys_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/teams","hooks_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/hooks","issue_events_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/events","assignees_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/tags","blobs_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/languages","stargazers_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/stargazers","contributors_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/contributors","subscribers_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/subscribers","subscription_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/subscription","commits_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/merges","archive_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/downloads","issues_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/labels{/name}","releases_url":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/releases{/id}","created_at":"2015-05-25T21:43:19Z","updated_at":"2015-06-02T08:33:25Z","pushed_at":"2015-06-20T22:04:56Z","git_url":"git://github.com/openmrs/openmrs-contrib-sdk-maven-plugin.git","ssh_url":"git@github.com:openmrs/openmrs-contrib-sdk-maven-plugin.git","clone_url":"https://github.com/openmrs/openmrs-contrib-sdk-maven-plugin.git","svn_url":"https://github.com/openmrs/openmrs-contrib-sdk-maven-plugin","homepage":null,"size":352,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/pulls/4"},"html":{"href":"https://github.com/openmrs/openmrs-contrib-sdk-maven-plugin/pull/4"},"issue":{"href":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/issues/4"},"comments":{"href":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/openmrs/openmrs-contrib-sdk-maven-plugin/statuses/3bb310170ed016b9d683da671af5c3b69d198d7f"}}}}