{"id":1149,"date":"2023-07-08T11:56:35","date_gmt":"2023-07-08T03:56:35","guid":{"rendered":"http:\/\/www.max-shu.com\/blog\/?p=1149"},"modified":"2023-07-08T11:56:36","modified_gmt":"2023-07-08T03:56:36","slug":"idea%e4%bf%ae%e6%94%b9settings-xml%e8%ae%a9maven%e5%90%8c%e6%97%b6%e6%94%af%e6%8c%81%e6%9c%ac%e5%9c%b0%e5%92%8c%e8%bf%9c%e7%a8%8b%e5%a4%9a%e4%bb%93%e5%ba%93","status":"publish","type":"post","link":"http:\/\/www.max-shu.com\/blog\/?p=1149","title":{"rendered":"IDEA\u4fee\u6539settings.xml\u8ba9maven\u540c\u65f6\u652f\u6301\u672c\u5730\u548c\u8fdc\u7a0b\u591a\u4ed3\u5e93"},"content":{"rendered":"\n<p>\u4fee\u6539\u7528\u6237\u76ee\u5f55\u7684settings.xml\u6587\u4ef6\uff1a<\/p>\n\n\n\n<p>C:\\Users\\maxsh\\.m2\\settings.xml<\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color\">\u9996\u5148\u53bb\u6389\u6240\u6709\u7684mirror\u914d\u7f6e\uff0c\u5426\u5219\u4f1a\u4f18\u5148mirror\u4e2d\u7684\u4ed3\u5e93\u3002<\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color\">\u7136\u540e\u589e\u52a0profile\u548cactiveProfile\uff1a<\/p>\n\n\n\n<p>\u3002\u3002\u3002<\/p>\n\n\n\n<p>&lt;\/profiles&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &lt;profile&gt;<\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color\">&nbsp; &nbsp; &nbsp; &lt;id&gt;aliyun&lt;\/id&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &lt;repositories&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;repository&gt;<\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;id&gt;central&lt;\/id&gt;&nbsp; &lt;!&#8211; \u5fc5\u987b\u4f7f\u7528central\u540d\u5b57\uff0c\u5426\u5219\u8fd8\u4f1a\u4ece\u9ed8\u8ba4\u7684\u4e2d\u592e\u4ed3\u5e93\u53bb\u4e0b\u8f7d &#8211;&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;name&gt;Aliyun maven mirror.&lt;\/name&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;url&gt;https:\/\/maven.aliyun.com\/repository\/public\/&lt;\/url&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;releases&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;enabled&gt;true&lt;\/enabled&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;\/releases&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;snapshots&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;enabled&gt;true&lt;\/enabled&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;\/snapshots&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;\/repository&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &lt;\/repositories&gt;<\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color\">&nbsp; &nbsp; &nbsp; &lt;pluginRepositories&gt;&nbsp; &lt;!&#8211;&nbsp; \u8fd9\u4e2a\u662f\u5fc5\u8981\u7684\uff0c\u5426\u5219package\u6253\u5305\u65f6\u8fd8\u662f\u4f1a\u4ece\u9ed8\u8ba4\u7684url\u53bb\u4e0b\u8f7djar\u6587\u4ef6\uff0c\u4e0d\u4f1a\u4ecealiyun\u955c\u50cf\u4e0b\u8f7d &#8211;&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;pluginRepository&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;id&gt;central&lt;\/id&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;name&gt;Aliyun maven mirror.&lt;\/name&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;url&gt;https:\/\/maven.aliyun.com\/repository\/public\/&lt;\/url&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;releases&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;enabled&gt;true&lt;\/enabled&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;\/releases&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;snapshots&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;enabled&gt;true&lt;\/enabled&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;\/snapshots&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;\/pluginRepository&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &lt;\/pluginRepositories&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &lt;\/profile&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &lt;profile&gt;<\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color\">&nbsp; &nbsp; &nbsp; &lt;id&gt;yunbu&lt;\/id&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &lt;repositories&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;repository&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;id&gt;yunbu-internal-release&lt;\/id&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;name&gt;Yunbu Internal Release Repository&lt;\/name&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;url&gt;http:\/\/192.168.1.248:8000\/repository\/maven-releases&lt;\/url&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;releases&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;enabled&gt;true&lt;\/enabled&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;\/releases&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;snapshots&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;enabled&gt;false&lt;\/enabled&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;\/snapshots&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;\/repository&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;repository&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;id&gt;yunbu-internal-snapshot&lt;\/id&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;name&gt;Yunbu Internal Snapshot Repository&lt;\/name&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;url&gt;http:\/\/192.168.1.248:8000\/repository\/maven-snapshots&lt;\/url&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;releases&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;enabled&gt;false&lt;\/enabled&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;\/releases&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;snapshots&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;enabled&gt;true&lt;\/enabled&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;\/snapshots&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;\/repository&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &lt;\/repositories&gt;<\/p>\n\n\n\n<p>&nbsp; &nbsp; &lt;\/profile&gt;<\/p>\n\n\n\n<p>&nbsp; &lt;\/profiles&gt;<\/p>\n\n\n\n<p>&nbsp; &lt;activeProfiles&gt;<\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color\">&nbsp; &nbsp; &lt;activeProfile&gt;aliyun&lt;\/activeProfile&gt;<\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color\">&nbsp; &nbsp; &lt;activeProfile&gt;yunbu&lt;\/activeProfile&gt;<\/p>\n\n\n\n<p>&nbsp; &lt;\/activeProfiles&gt;<\/p>\n\n\n\n<p>&lt;\/settings&gt;<\/p>\n\n\n\n<p>\u5982\u679c\u672c\u5730\u4ed3\u5e93\u7528\u7684\u662fhttp\uff0c\u4e0d\u652f\u6301https\u7684\u8bdd\uff0c\u8fd8\u5fc5\u987b\u4fee\u6539maven\u5b89\u88c5\u76ee\u5f55\u4e0b\u7684settings.xml\u6587\u4ef6\uff1a<\/p>\n\n\n\n<p>D:\\ideaIU-2022.3.3\\plugins\\maven\\lib\\maven3\\conf\\settings.xml<\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color\">\u6ce8\u91ca\u6389\u8fd9\u4e2amirror\uff1a<\/p>\n\n\n\n<p>&#8230;<\/p>\n\n\n\n<p>&lt;!&#8211;<\/p>\n\n\n\n<p>&lt;mirror&gt;<\/p>\n\n\n\n<p>&lt;id&gt;maven-default-http-blocker&lt;\/id&gt;<\/p>\n\n\n\n<p>&lt;mirrorOf&gt;external:http:*&lt;\/mirrorOf&gt;<\/p>\n\n\n\n<p>&lt;name&gt;Pseudo repository to mirror external repositories initially using HTTP.&lt;\/name&gt;<\/p>\n\n\n\n<p>&lt;url&gt;http:\/\/0.0.0.0\/&lt;\/url&gt;<\/p>\n\n\n\n<p>&lt;blocked&gt;true&lt;\/blocked&gt;<\/p>\n\n\n\n<p>&lt;\/mirror&gt;<\/p>\n\n\n\n<p>&#8211;&gt;<\/p>\n\n\n\n<p>&#8230;<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>IDEA\u4fee\u6539settings.xml\u8ba9maven\u540c\u65f6\u652f\u6301\u672c\u5730\u548c\u8fdc\u7a0b\u591a\u4ed3\u5e93<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[63],"tags":[879,874,883,881,882],"class_list":["post-1149","post","type-post","status-publish","format-standard","hentry","category-63","tag-idea","tag-maven","tag-settings-xml","tag-881","tag-882"],"views":1002,"_links":{"self":[{"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1149"}],"version-history":[{"count":1,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1149\/revisions"}],"predecessor-version":[{"id":1150,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1149\/revisions\/1150"}],"wp:attachment":[{"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1149"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}