{"id":12555,"date":"2020-10-26T12:22:56","date_gmt":"2020-10-26T17:22:56","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=12555"},"modified":"2021-02-19T11:09:16","modified_gmt":"2021-02-19T16:09:16","slug":"use-nexus-as-mirror-for-central-repo","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=12555","title":{"rendered":"Use Nexus as Mirror for Central Repo"},"content":{"rendered":"<p>* See <a href='https:\/\/dzone.com\/refcardz\/getting-started-repository?chapter=6'>Configuring Maven for Nexus<\/a><br \/>\n* Add to ~\/.m2\/settings.xml<\/p>\n<pre lang=\"xml\">\r\n<settings>\r\n <mirrors>\r\n  <mirror>\r\n   <!--This sends everything else to \/public -->\r\n   <id>cental<\/id>\r\n   <mirrorOf>cental<\/mirrorOf>\r\n   <url>http:\/\/localhost:8082\/nexus\/content\/groups\/public<\/url>\r\n  <\/mirror>\r\n <\/mirrors>\r\n<profiles>\r\n <profile>\r\n  <id>nexus<\/id>\r\n  <repositories>\r\n   <repository>\r\n    <id>central<\/id>\r\n     <!--This is bogus url. It's overridden in mirror -->\r\n     <url>http:\/\/central<\/url>\r\n     <releases><enabled>true<\/enabled><\/releases>\r\n     <snapshots><enabled>true<\/enabled><\/snapshots>\r\n    <\/repository>\r\n   <\/repositories>\r\n <pluginRepositories>\r\n  <pluginRepository>\r\n   <id>central<\/id>\r\n     <!--This is bogus url. It's overridden in mirror -->\r\n     <url>http:\/\/central<\/url>\r\n     <releases><enabled>true<\/enabled><\/releases>\r\n     <snapshots><enabled>true<\/enabled><\/snapshots>\r\n    <\/pluginRepository>\r\n   <\/pluginRepositories>\r\n <\/profile>\r\n<\/profiles>\r\n  <activeProfiles>\r\n   <!--make the profile active all the time -->\r\n    <activeProfile>nexus<\/activeProfile>\r\n  <\/activeProfiles>\r\n<\/settings>\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>* See Configuring Maven for Nexus * Add to ~\/.m2\/settings.xml cental cental http:\/\/localhost:8082\/nexus\/content\/groups\/public nexus central http:\/\/central true true central http:\/\/central true true nexus<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[605,836],"class_list":["post-12555","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-maven","tag-nexus"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-3gv","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/12555","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12555"}],"version-history":[{"count":2,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/12555\/revisions"}],"predecessor-version":[{"id":12607,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/12555\/revisions\/12607"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12555"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12555"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}