{"action":"created","comment":{"url":"https://api.github.com/repos/sonatype/nexus-oss/pulls/comments/29607820","id":29607820,"diff_hunk":"@@ -110,16 +118,33 @@ else if (str.endsWith(\".\" + HashType.MD5.getExt())) {\n           snapshotBuildNumber\n               .append(str.substring(vSnapshotStart + version.length(), vSnapshotStart + version.length() + 8));\n \n+          try {\n+            final SimpleDateFormat df = new SimpleDateFormat(\"yyyyMMdd.HHmmss-\"); // TODO: trailing \"-\"","path":"plugins/basic/nexus-repository-maven/src/main/java/org/sonatype/nexus/repository/maven/internal/maven2/Maven2MavenPathParser.java","position":48,"original_position":48,"commit_id":"157677b0133a54ba769c4498f7238a5adf4fae78","original_commit_id":"157677b0133a54ba769c4498f7238a5adf4fae78","user":{"login":"kellyrob99","id":76356,"avatar_url":"https://avatars.githubusercontent.com/u/76356?v=3","gravatar_id":"","url":"https://api.github.com/users/kellyrob99","html_url":"https://github.com/kellyrob99","followers_url":"https://api.github.com/users/kellyrob99/followers","following_url":"https://api.github.com/users/kellyrob99/following{/other_user}","gists_url":"https://api.github.com/users/kellyrob99/gists{/gist_id}","starred_url":"https://api.github.com/users/kellyrob99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kellyrob99/subscriptions","organizations_url":"https://api.github.com/users/kellyrob99/orgs","repos_url":"https://api.github.com/users/kellyrob99/repos","events_url":"https://api.github.com/users/kellyrob99/events{/privacy}","received_events_url":"https://api.github.com/users/kellyrob99/received_events","type":"User","site_admin":false},"body":"What is that trailing '-' for? It does not appear to match the previously existing pattern(i.e. https://github.com/sonatype/nexus-oss/blob/NEXUS-8305-maven2-md-rebuild/components/nexus-core/src/main/java/org/sonatype/nexus/proxy/maven/DefaultMetadataManager.java#L324-324)\r\nAlso, we should probably be specifying a Locale to go along with this?","created_at":"2015-05-04T18:09:55Z","updated_at":"2015-05-04T18:09:55Z","html_url":"https://github.com/sonatype/nexus-oss/pull/1257#discussion_r29607820","pull_request_url":"https://api.github.com/repos/sonatype/nexus-oss/pulls/1257","_links":{"self":{"href":"https://api.github.com/repos/sonatype/nexus-oss/pulls/comments/29607820"},"html":{"href":"https://github.com/sonatype/nexus-oss/pull/1257#discussion_r29607820"},"pull_request":{"href":"https://api.github.com/repos/sonatype/nexus-oss/pulls/1257"}}},"pull_request":{"url":"https://api.github.com/repos/sonatype/nexus-oss/pulls/1257","id":34393567,"html_url":"https://github.com/sonatype/nexus-oss/pull/1257","diff_url":"https://github.com/sonatype/nexus-oss/pull/1257.diff","patch_url":"https://github.com/sonatype/nexus-oss/pull/1257.patch","issue_url":"https://api.github.com/repos/sonatype/nexus-oss/issues/1257","number":1257,"state":"open","locked":false,"title":"NEXUS-8305: Rebuild Maven2 repository metadata","user":{"login":"cstamas","id":45165,"avatar_url":"https://avatars.githubusercontent.com/u/45165?v=3","gravatar_id":"","url":"https://api.github.com/users/cstamas","html_url":"https://github.com/cstamas","followers_url":"https://api.github.com/users/cstamas/followers","following_url":"https://api.github.com/users/cstamas/following{/other_user}","gists_url":"https://api.github.com/users/cstamas/gists{/gist_id}","starred_url":"https://api.github.com/users/cstamas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cstamas/subscriptions","organizations_url":"https://api.github.com/users/cstamas/orgs","repos_url":"https://api.github.com/users/cstamas/repos","events_url":"https://api.github.com/users/cstamas/events{/privacy}","received_events_url":"https://api.github.com/users/cstamas/received_events","type":"User","site_admin":false},"body":"Rebuild maven metadata, replaces\r\nhttps://github.com/sonatype/nexus-oss/pull/1237\r\n\r\nChanges:\r\n- rebuild Maven2 metadata related classes (3) + tests + IT\r\n- API bits moved out of `internal` package\r\n- introduced `MavenHostedFacet` (that exposes `rebuildMetadata()` single method for now)\r\n- `MavenPath` improvements: for timestamped snapshot paths it extracts the timestamp and buildNumber too + locate method + bugfix\r\n- `MavenFacet` stores baseVersion always along with other format specific attributes\r\n\r\n\r\nNote: IT currently fails due to missing blobs, unsure about this approach at all (to pre-populate hosted repo).\r\n\r\nIssue\r\nhttps://issues.sonatype.org/browse/NEXUS-8305\r\n\r\nCI\r\nhttp://bamboo.s/browse/NX3-OSSF246","created_at":"2015-04-29T18:48:17Z","updated_at":"2015-05-04T18:09:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"305e6374f2ee5f656e2a63cd94be5e74bc92968a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sonatype/nexus-oss/pulls/1257/commits","review_comments_url":"https://api.github.com/repos/sonatype/nexus-oss/pulls/1257/comments","review_comment_url":"https://api.github.com/repos/sonatype/nexus-oss/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sonatype/nexus-oss/issues/1257/comments","statuses_url":"https://api.github.com/repos/sonatype/nexus-oss/statuses/157677b0133a54ba769c4498f7238a5adf4fae78","head":{"label":"sonatype:NEXUS-8305-maven2-md-rebuild","ref":"NEXUS-8305-maven2-md-rebuild","sha":"157677b0133a54ba769c4498f7238a5adf4fae78","user":{"login":"sonatype","id":44938,"avatar_url":"https://avatars.githubusercontent.com/u/44938?v=3","gravatar_id":"","url":"https://api.github.com/users/sonatype","html_url":"https://github.com/sonatype","followers_url":"https://api.github.com/users/sonatype/followers","following_url":"https://api.github.com/users/sonatype/following{/other_user}","gists_url":"https://api.github.com/users/sonatype/gists{/gist_id}","starred_url":"https://api.github.com/users/sonatype/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonatype/subscriptions","organizations_url":"https://api.github.com/users/sonatype/orgs","repos_url":"https://api.github.com/users/sonatype/repos","events_url":"https://api.github.com/users/sonatype/events{/privacy}","received_events_url":"https://api.github.com/users/sonatype/received_events","type":"Organization","site_admin":false},"repo":{"id":10146961,"name":"nexus-oss","full_name":"sonatype/nexus-oss","owner":{"login":"sonatype","id":44938,"avatar_url":"https://avatars.githubusercontent.com/u/44938?v=3","gravatar_id":"","url":"https://api.github.com/users/sonatype","html_url":"https://github.com/sonatype","followers_url":"https://api.github.com/users/sonatype/followers","following_url":"https://api.github.com/users/sonatype/following{/other_user}","gists_url":"https://api.github.com/users/sonatype/gists{/gist_id}","starred_url":"https://api.github.com/users/sonatype/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonatype/subscriptions","organizations_url":"https://api.github.com/users/sonatype/orgs","repos_url":"https://api.github.com/users/sonatype/repos","events_url":"https://api.github.com/users/sonatype/events{/privacy}","received_events_url":"https://api.github.com/users/sonatype/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sonatype/nexus-oss","description":"Sonatype Nexus OSS","fork":false,"url":"https://api.github.com/repos/sonatype/nexus-oss","forks_url":"https://api.github.com/repos/sonatype/nexus-oss/forks","keys_url":"https://api.github.com/repos/sonatype/nexus-oss/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sonatype/nexus-oss/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sonatype/nexus-oss/teams","hooks_url":"https://api.github.com/repos/sonatype/nexus-oss/hooks","issue_events_url":"https://api.github.com/repos/sonatype/nexus-oss/issues/events{/number}","events_url":"https://api.github.com/repos/sonatype/nexus-oss/events","assignees_url":"https://api.github.com/repos/sonatype/nexus-oss/assignees{/user}","branches_url":"https://api.github.com/repos/sonatype/nexus-oss/branches{/branch}","tags_url":"https://api.github.com/repos/sonatype/nexus-oss/tags","blobs_url":"https://api.github.com/repos/sonatype/nexus-oss/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sonatype/nexus-oss/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sonatype/nexus-oss/git/refs{/sha}","trees_url":"https://api.github.com/repos/sonatype/nexus-oss/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sonatype/nexus-oss/statuses/{sha}","languages_url":"https://api.github.com/repos/sonatype/nexus-oss/languages","stargazers_url":"https://api.github.com/repos/sonatype/nexus-oss/stargazers","contributors_url":"https://api.github.com/repos/sonatype/nexus-oss/contributors","subscribers_url":"https://api.github.com/repos/sonatype/nexus-oss/subscribers","subscription_url":"https://api.github.com/repos/sonatype/nexus-oss/subscription","commits_url":"https://api.github.com/repos/sonatype/nexus-oss/commits{/sha}","git_commits_url":"https://api.github.com/repos/sonatype/nexus-oss/git/commits{/sha}","comments_url":"https://api.github.com/repos/sonatype/nexus-oss/comments{/number}","issue_comment_url":"https://api.github.com/repos/sonatype/nexus-oss/issues/comments{/number}","contents_url":"https://api.github.com/repos/sonatype/nexus-oss/contents/{+path}","compare_url":"https://api.github.com/repos/sonatype/nexus-oss/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sonatype/nexus-oss/merges","archive_url":"https://api.github.com/repos/sonatype/nexus-oss/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sonatype/nexus-oss/downloads","issues_url":"https://api.github.com/repos/sonatype/nexus-oss/issues{/number}","pulls_url":"https://api.github.com/repos/sonatype/nexus-oss/pulls{/number}","milestones_url":"https://api.github.com/repos/sonatype/nexus-oss/milestones{/number}","notifications_url":"https://api.github.com/repos/sonatype/nexus-oss/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sonatype/nexus-oss/labels{/name}","releases_url":"https://api.github.com/repos/sonatype/nexus-oss/releases{/id}","created_at":"2013-05-18T20:48:57Z","updated_at":"2015-05-04T08:15:34Z","pushed_at":"2015-05-04T17:20:38Z","git_url":"git://github.com/sonatype/nexus-oss.git","ssh_url":"git@github.com:sonatype/nexus-oss.git","clone_url":"https://github.com/sonatype/nexus-oss.git","svn_url":"https://github.com/sonatype/nexus-oss","homepage":"http://links.sonatype.com/products/nexus/oss/home","size":889734,"stargazers_count":149,"watchers_count":149,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":92,"mirror_url":null,"open_issues_count":15,"forks":92,"open_issues":15,"watchers":149,"default_branch":"master"}},"base":{"label":"sonatype:master","ref":"master","sha":"e742d9629dbad65b0530557d0bce3f02f9cac756","user":{"login":"sonatype","id":44938,"avatar_url":"https://avatars.githubusercontent.com/u/44938?v=3","gravatar_id":"","url":"https://api.github.com/users/sonatype","html_url":"https://github.com/sonatype","followers_url":"https://api.github.com/users/sonatype/followers","following_url":"https://api.github.com/users/sonatype/following{/other_user}","gists_url":"https://api.github.com/users/sonatype/gists{/gist_id}","starred_url":"https://api.github.com/users/sonatype/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonatype/subscriptions","organizations_url":"https://api.github.com/users/sonatype/orgs","repos_url":"https://api.github.com/users/sonatype/repos","events_url":"https://api.github.com/users/sonatype/events{/privacy}","received_events_url":"https://api.github.com/users/sonatype/received_events","type":"Organization","site_admin":false},"repo":{"id":10146961,"name":"nexus-oss","full_name":"sonatype/nexus-oss","owner":{"login":"sonatype","id":44938,"avatar_url":"https://avatars.githubusercontent.com/u/44938?v=3","gravatar_id":"","url":"https://api.github.com/users/sonatype","html_url":"https://github.com/sonatype","followers_url":"https://api.github.com/users/sonatype/followers","following_url":"https://api.github.com/users/sonatype/following{/other_user}","gists_url":"https://api.github.com/users/sonatype/gists{/gist_id}","starred_url":"https://api.github.com/users/sonatype/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonatype/subscriptions","organizations_url":"https://api.github.com/users/sonatype/orgs","repos_url":"https://api.github.com/users/sonatype/repos","events_url":"https://api.github.com/users/sonatype/events{/privacy}","received_events_url":"https://api.github.com/users/sonatype/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sonatype/nexus-oss","description":"Sonatype Nexus OSS","fork":false,"url":"https://api.github.com/repos/sonatype/nexus-oss","forks_url":"https://api.github.com/repos/sonatype/nexus-oss/forks","keys_url":"https://api.github.com/repos/sonatype/nexus-oss/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sonatype/nexus-oss/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sonatype/nexus-oss/teams","hooks_url":"https://api.github.com/repos/sonatype/nexus-oss/hooks","issue_events_url":"https://api.github.com/repos/sonatype/nexus-oss/issues/events{/number}","events_url":"https://api.github.com/repos/sonatype/nexus-oss/events","assignees_url":"https://api.github.com/repos/sonatype/nexus-oss/assignees{/user}","branches_url":"https://api.github.com/repos/sonatype/nexus-oss/branches{/branch}","tags_url":"https://api.github.com/repos/sonatype/nexus-oss/tags","blobs_url":"https://api.github.com/repos/sonatype/nexus-oss/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sonatype/nexus-oss/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sonatype/nexus-oss/git/refs{/sha}","trees_url":"https://api.github.com/repos/sonatype/nexus-oss/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sonatype/nexus-oss/statuses/{sha}","languages_url":"https://api.github.com/repos/sonatype/nexus-oss/languages","stargazers_url":"https://api.github.com/repos/sonatype/nexus-oss/stargazers","contributors_url":"https://api.github.com/repos/sonatype/nexus-oss/contributors","subscribers_url":"https://api.github.com/repos/sonatype/nexus-oss/subscribers","subscription_url":"https://api.github.com/repos/sonatype/nexus-oss/subscription","commits_url":"https://api.github.com/repos/sonatype/nexus-oss/commits{/sha}","git_commits_url":"https://api.github.com/repos/sonatype/nexus-oss/git/commits{/sha}","comments_url":"https://api.github.com/repos/sonatype/nexus-oss/comments{/number}","issue_comment_url":"https://api.github.com/repos/sonatype/nexus-oss/issues/comments{/number}","contents_url":"https://api.github.com/repos/sonatype/nexus-oss/contents/{+path}","compare_url":"https://api.github.com/repos/sonatype/nexus-oss/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sonatype/nexus-oss/merges","archive_url":"https://api.github.com/repos/sonatype/nexus-oss/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sonatype/nexus-oss/downloads","issues_url":"https://api.github.com/repos/sonatype/nexus-oss/issues{/number}","pulls_url":"https://api.github.com/repos/sonatype/nexus-oss/pulls{/number}","milestones_url":"https://api.github.com/repos/sonatype/nexus-oss/milestones{/number}","notifications_url":"https://api.github.com/repos/sonatype/nexus-oss/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sonatype/nexus-oss/labels{/name}","releases_url":"https://api.github.com/repos/sonatype/nexus-oss/releases{/id}","created_at":"2013-05-18T20:48:57Z","updated_at":"2015-05-04T08:15:34Z","pushed_at":"2015-05-04T17:20:38Z","git_url":"git://github.com/sonatype/nexus-oss.git","ssh_url":"git@github.com:sonatype/nexus-oss.git","clone_url":"https://github.com/sonatype/nexus-oss.git","svn_url":"https://github.com/sonatype/nexus-oss","homepage":"http://links.sonatype.com/products/nexus/oss/home","size":889734,"stargazers_count":149,"watchers_count":149,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":92,"mirror_url":null,"open_issues_count":15,"forks":92,"open_issues":15,"watchers":149,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sonatype/nexus-oss/pulls/1257"},"html":{"href":"https://github.com/sonatype/nexus-oss/pull/1257"},"issue":{"href":"https://api.github.com/repos/sonatype/nexus-oss/issues/1257"},"comments":{"href":"https://api.github.com/repos/sonatype/nexus-oss/issues/1257/comments"},"review_comments":{"href":"https://api.github.com/repos/sonatype/nexus-oss/pulls/1257/comments"},"review_comment":{"href":"https://api.github.com/repos/sonatype/nexus-oss/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sonatype/nexus-oss/pulls/1257/commits"},"statuses":{"href":"https://api.github.com/repos/sonatype/nexus-oss/statuses/157677b0133a54ba769c4498f7238a5adf4fae78"}}}}