{"action":"created","comment":{"url":"https://api.github.com/repos/windup/nexus-repository-indexer/pulls/comments/61370322","id":61370322,"diff_hunk":"@@ -0,0 +1,71 @@\n+package org.jboss.windup.rules.apps.java.archives;\n+\n+\n+import java.util.List;\n+import org.eclipse.aether.RepositorySystem;\n+import org.eclipse.aether.RepositorySystemSession;\n+import org.eclipse.aether.artifact.Artifact;\n+import org.eclipse.aether.graph.Dependency;\n+import org.eclipse.aether.repository.RemoteRepository;\n+import org.eclipse.aether.resolution.ArtifactDescriptorException;\n+import org.eclipse.aether.resolution.ArtifactDescriptorRequest;\n+import org.eclipse.aether.resolution.ArtifactDescriptorResult;\n+import org.eclipse.aether.resolution.ArtifactRequest;\n+import org.eclipse.aether.resolution.ArtifactResolutionException;\n+import org.eclipse.aether.resolution.ArtifactResult;\n+import org.jboss.windup.rules.apps.java.archives.aether.ManualRepositorySystemFactory;\n+\n+/**\n+ *\n+ *  @author <a href=\"http://ondra.zizka.cz/\">Ondrej Zizka, zizka@seznam.cz</a>\n+ */\n+public class ArtifactDownloader\n+{\n+    private final RepositorySystem system = ManualRepositorySystemFactory.newRepositorySystem( );\n+    private final RepositorySystemSession session = MavenAetherUtils.createSession(system, MavenAetherUtils.getWorkingRepoPath());\n+    private final List<RemoteRepository> repositories = MavenAetherUtils.getRepositories(system, session);\n+\n+\n+    public Artifact downloadArtifact(Artifact artifact_)\n+    {\n+        // Download the artifact\n+        //Artifact artifact = new DefaultArtifact(groupId, artifactId, packaging, version);","path":"indexer/src/main/java/org/jboss/windup/rules/apps/java/archives/ArtifactDownloader.java","position":null,"original_position":32,"commit_id":"c2702afbcb8922576a5d80dabafae96e1e940aac","original_commit_id":"602205274117f30693943dc91588ef2289dc40b7","user":{"login":"OndraZizka","id":644904,"avatar_url":"https://avatars.githubusercontent.com/u/644904?v=3","gravatar_id":"","url":"https://api.github.com/users/OndraZizka","html_url":"https://github.com/OndraZizka","followers_url":"https://api.github.com/users/OndraZizka/followers","following_url":"https://api.github.com/users/OndraZizka/following{/other_user}","gists_url":"https://api.github.com/users/OndraZizka/gists{/gist_id}","starred_url":"https://api.github.com/users/OndraZizka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OndraZizka/subscriptions","organizations_url":"https://api.github.com/users/OndraZizka/orgs","repos_url":"https://api.github.com/users/OndraZizka/repos","events_url":"https://api.github.com/users/OndraZizka/events{/privacy}","received_events_url":"https://api.github.com/users/OndraZizka/received_events","type":"User","site_admin":false},"body":"Removed","created_at":"2016-04-28T03:44:28Z","updated_at":"2016-04-28T03:44:28Z","html_url":"https://github.com/windup/nexus-repository-indexer/pull/5#discussion_r61370322","pull_request_url":"https://api.github.com/repos/windup/nexus-repository-indexer/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/windup/nexus-repository-indexer/pulls/comments/61370322"},"html":{"href":"https://github.com/windup/nexus-repository-indexer/pull/5#discussion_r61370322"},"pull_request":{"href":"https://api.github.com/repos/windup/nexus-repository-indexer/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/windup/nexus-repository-indexer/pulls/5","id":67641509,"html_url":"https://github.com/windup/nexus-repository-indexer/pull/5","diff_url":"https://github.com/windup/nexus-repository-indexer/pull/5.diff","patch_url":"https://github.com/windup/nexus-repository-indexer/pull/5.patch","issue_url":"https://api.github.com/repos/windup/nexus-repository-indexer/issues/5","number":5,"state":"open","locked":false,"title":" WINDUP-984 Create an offline index of packages (or classes) in selected API artifacts","user":{"login":"OndraZizka","id":644904,"avatar_url":"https://avatars.githubusercontent.com/u/644904?v=3","gravatar_id":"","url":"https://api.github.com/users/OndraZizka","html_url":"https://github.com/OndraZizka","followers_url":"https://api.github.com/users/OndraZizka/followers","following_url":"https://api.github.com/users/OndraZizka/following{/other_user}","gists_url":"https://api.github.com/users/OndraZizka/gists{/gist_id}","starred_url":"https://api.github.com/users/OndraZizka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OndraZizka/subscriptions","organizations_url":"https://api.github.com/users/OndraZizka/orgs","repos_url":"https://api.github.com/users/OndraZizka/repos","events_url":"https://api.github.com/users/OndraZizka/events{/privacy}","received_events_url":"https://api.github.com/users/OndraZizka/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-24T16:04:22Z","updated_at":"2016-04-28T03:44:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a646669778574f14cef9caf19f06bcd6655046ee","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/windup/nexus-repository-indexer/pulls/5/commits","review_comments_url":"https://api.github.com/repos/windup/nexus-repository-indexer/pulls/5/comments","review_comment_url":"https://api.github.com/repos/windup/nexus-repository-indexer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/windup/nexus-repository-indexer/issues/5/comments","statuses_url":"https://api.github.com/repos/windup/nexus-repository-indexer/statuses/c2702afbcb8922576a5d80dabafae96e1e940aac","head":{"label":"OndraZizka:packageIndexer-WINDUP-984","ref":"packageIndexer-WINDUP-984","sha":"c2702afbcb8922576a5d80dabafae96e1e940aac","user":{"login":"OndraZizka","id":644904,"avatar_url":"https://avatars.githubusercontent.com/u/644904?v=3","gravatar_id":"","url":"https://api.github.com/users/OndraZizka","html_url":"https://github.com/OndraZizka","followers_url":"https://api.github.com/users/OndraZizka/followers","following_url":"https://api.github.com/users/OndraZizka/following{/other_user}","gists_url":"https://api.github.com/users/OndraZizka/gists{/gist_id}","starred_url":"https://api.github.com/users/OndraZizka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OndraZizka/subscriptions","organizations_url":"https://api.github.com/users/OndraZizka/orgs","repos_url":"https://api.github.com/users/OndraZizka/repos","events_url":"https://api.github.com/users/OndraZizka/events{/privacy}","received_events_url":"https://api.github.com/users/OndraZizka/received_events","type":"User","site_admin":false},"repo":{"id":30601806,"name":"nexus-repository-indexer","full_name":"OndraZizka/nexus-repository-indexer","owner":{"login":"OndraZizka","id":644904,"avatar_url":"https://avatars.githubusercontent.com/u/644904?v=3","gravatar_id":"","url":"https://api.github.com/users/OndraZizka","html_url":"https://github.com/OndraZizka","followers_url":"https://api.github.com/users/OndraZizka/followers","following_url":"https://api.github.com/users/OndraZizka/following{/other_user}","gists_url":"https://api.github.com/users/OndraZizka/gists{/gist_id}","starred_url":"https://api.github.com/users/OndraZizka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OndraZizka/subscriptions","organizations_url":"https://api.github.com/users/OndraZizka/orgs","repos_url":"https://api.github.com/users/OndraZizka/repos","events_url":"https://api.github.com/users/OndraZizka/events{/privacy}","received_events_url":"https://api.github.com/users/OndraZizka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/OndraZizka/nexus-repository-indexer","description":"Utilities for generating index files from Nexus metadata databases","fork":true,"url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer","forks_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/forks","keys_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/teams","hooks_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/hooks","issue_events_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/issues/events{/number}","events_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/events","assignees_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/assignees{/user}","branches_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/branches{/branch}","tags_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/tags","blobs_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/git/refs{/sha}","trees_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/statuses/{sha}","languages_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/languages","stargazers_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/stargazers","contributors_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/contributors","subscribers_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/subscribers","subscription_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/subscription","commits_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/commits{/sha}","git_commits_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/git/commits{/sha}","comments_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/comments{/number}","issue_comment_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/issues/comments{/number}","contents_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/contents/{+path}","compare_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/merges","archive_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/downloads","issues_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/issues{/number}","pulls_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/pulls{/number}","milestones_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/milestones{/number}","notifications_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/labels{/name}","releases_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/releases{/id}","deployments_url":"https://api.github.com/repos/OndraZizka/nexus-repository-indexer/deployments","created_at":"2015-02-10T16:33:34Z","updated_at":"2015-02-12T02:01:36Z","pushed_at":"2016-04-28T03:41:19Z","git_url":"git://github.com/OndraZizka/nexus-repository-indexer.git","ssh_url":"git@github.com:OndraZizka/nexus-repository-indexer.git","clone_url":"https://github.com/OndraZizka/nexus-repository-indexer.git","svn_url":"https://github.com/OndraZizka/nexus-repository-indexer","homepage":null,"size":81,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"windup:master","ref":"master","sha":"6297170ab6c360fe196226f560ce8e3b514e91c4","user":{"login":"windup","id":4266383,"avatar_url":"https://avatars.githubusercontent.com/u/4266383?v=3","gravatar_id":"","url":"https://api.github.com/users/windup","html_url":"https://github.com/windup","followers_url":"https://api.github.com/users/windup/followers","following_url":"https://api.github.com/users/windup/following{/other_user}","gists_url":"https://api.github.com/users/windup/gists{/gist_id}","starred_url":"https://api.github.com/users/windup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/windup/subscriptions","organizations_url":"https://api.github.com/users/windup/orgs","repos_url":"https://api.github.com/users/windup/repos","events_url":"https://api.github.com/users/windup/events{/privacy}","received_events_url":"https://api.github.com/users/windup/received_events","type":"Organization","site_admin":false},"repo":{"id":30382702,"name":"nexus-repository-indexer","full_name":"windup/nexus-repository-indexer","owner":{"login":"windup","id":4266383,"avatar_url":"https://avatars.githubusercontent.com/u/4266383?v=3","gravatar_id":"","url":"https://api.github.com/users/windup","html_url":"https://github.com/windup","followers_url":"https://api.github.com/users/windup/followers","following_url":"https://api.github.com/users/windup/following{/other_user}","gists_url":"https://api.github.com/users/windup/gists{/gist_id}","starred_url":"https://api.github.com/users/windup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/windup/subscriptions","organizations_url":"https://api.github.com/users/windup/orgs","repos_url":"https://api.github.com/users/windup/repos","events_url":"https://api.github.com/users/windup/events{/privacy}","received_events_url":"https://api.github.com/users/windup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/windup/nexus-repository-indexer","description":"Utilities for generating index files from Nexus metadata databases","fork":false,"url":"https://api.github.com/repos/windup/nexus-repository-indexer","forks_url":"https://api.github.com/repos/windup/nexus-repository-indexer/forks","keys_url":"https://api.github.com/repos/windup/nexus-repository-indexer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/windup/nexus-repository-indexer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/windup/nexus-repository-indexer/teams","hooks_url":"https://api.github.com/repos/windup/nexus-repository-indexer/hooks","issue_events_url":"https://api.github.com/repos/windup/nexus-repository-indexer/issues/events{/number}","events_url":"https://api.github.com/repos/windup/nexus-repository-indexer/events","assignees_url":"https://api.github.com/repos/windup/nexus-repository-indexer/assignees{/user}","branches_url":"https://api.github.com/repos/windup/nexus-repository-indexer/branches{/branch}","tags_url":"https://api.github.com/repos/windup/nexus-repository-indexer/tags","blobs_url":"https://api.github.com/repos/windup/nexus-repository-indexer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/windup/nexus-repository-indexer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/windup/nexus-repository-indexer/git/refs{/sha}","trees_url":"https://api.github.com/repos/windup/nexus-repository-indexer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/windup/nexus-repository-indexer/statuses/{sha}","languages_url":"https://api.github.com/repos/windup/nexus-repository-indexer/languages","stargazers_url":"https://api.github.com/repos/windup/nexus-repository-indexer/stargazers","contributors_url":"https://api.github.com/repos/windup/nexus-repository-indexer/contributors","subscribers_url":"https://api.github.com/repos/windup/nexus-repository-indexer/subscribers","subscription_url":"https://api.github.com/repos/windup/nexus-repository-indexer/subscription","commits_url":"https://api.github.com/repos/windup/nexus-repository-indexer/commits{/sha}","git_commits_url":"https://api.github.com/repos/windup/nexus-repository-indexer/git/commits{/sha}","comments_url":"https://api.github.com/repos/windup/nexus-repository-indexer/comments{/number}","issue_comment_url":"https://api.github.com/repos/windup/nexus-repository-indexer/issues/comments{/number}","contents_url":"https://api.github.com/repos/windup/nexus-repository-indexer/contents/{+path}","compare_url":"https://api.github.com/repos/windup/nexus-repository-indexer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/windup/nexus-repository-indexer/merges","archive_url":"https://api.github.com/repos/windup/nexus-repository-indexer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/windup/nexus-repository-indexer/downloads","issues_url":"https://api.github.com/repos/windup/nexus-repository-indexer/issues{/number}","pulls_url":"https://api.github.com/repos/windup/nexus-repository-indexer/pulls{/number}","milestones_url":"https://api.github.com/repos/windup/nexus-repository-indexer/milestones{/number}","notifications_url":"https://api.github.com/repos/windup/nexus-repository-indexer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/windup/nexus-repository-indexer/labels{/name}","releases_url":"https://api.github.com/repos/windup/nexus-repository-indexer/releases{/id}","deployments_url":"https://api.github.com/repos/windup/nexus-repository-indexer/deployments","created_at":"2015-02-05T22:46:15Z","updated_at":"2016-02-08T21:17:22Z","pushed_at":"2016-04-28T03:41:19Z","git_url":"git://github.com/windup/nexus-repository-indexer.git","ssh_url":"git@github.com:windup/nexus-repository-indexer.git","clone_url":"https://github.com/windup/nexus-repository-indexer.git","svn_url":"https://github.com/windup/nexus-repository-indexer","homepage":null,"size":54,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/windup/nexus-repository-indexer/pulls/5"},"html":{"href":"https://github.com/windup/nexus-repository-indexer/pull/5"},"issue":{"href":"https://api.github.com/repos/windup/nexus-repository-indexer/issues/5"},"comments":{"href":"https://api.github.com/repos/windup/nexus-repository-indexer/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/windup/nexus-repository-indexer/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/windup/nexus-repository-indexer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/windup/nexus-repository-indexer/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/windup/nexus-repository-indexer/statuses/c2702afbcb8922576a5d80dabafae96e1e940aac"}}}}