{"id":206,"date":"2023-01-27T17:11:16","date_gmt":"2023-01-27T09:11:16","guid":{"rendered":"https:\/\/www.666818.xyz\/?p=206"},"modified":"2023-01-28T17:04:02","modified_gmt":"2023-01-28T09:04:02","slug":"maven-%e9%98%bf%e9%87%8c%e4%ba%91%e4%bb%93%e5%ba%93%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/www.wkv.cc\/index.php\/2023\/01\/27\/maven-%e9%98%bf%e9%87%8c%e4%ba%91%e4%bb%93%e5%ba%93%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6\/","title":{"rendered":"Maven \u963f\u91cc\u4e91\u4ed3\u5e93\u914d\u7f6e\u6587\u4ef6"},"content":{"rendered":"\n<p><strong>\u8be5\u914d\u7f6e\u4e3a&nbsp;<code>apache-maven-3.2.1\\conf<\/code>&nbsp;\u8def\u5f84\u4e0b&nbsp;<code>settings.xml<\/code>&nbsp;\u6587\u4ef6\u5185\u5bb9<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;settings xmlns=\"http:\/\/maven.apache.org\/SETTINGS\/1.0.0\" \n      xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" \n      xsi:schemaLocation=\"http:\/\/maven.apache.org\/SETTINGS\/1.0.0 http:\/\/maven.apache.org\/xsd\/settings-1.0.0.xsd\"&gt;\n&lt;localRepository&gt;E:\\dev_software\\repository&lt;\/localRepository&gt;\n&lt;pluginGroups&gt;\n&lt;pluginGroup&gt;org.mortbay.jetty&lt;\/pluginGroup&gt;\n&lt;\/pluginGroups&gt;\n&lt;proxies&gt;\n&lt;\/proxies&gt;\n&lt;servers&gt;\n &lt;server&gt;\n    &lt;id&gt;releases&lt;\/id&gt;\n    &lt;username&gt;ali&lt;\/username&gt;\n    &lt;password&gt;ali&lt;\/password&gt;\n  &lt;\/server&gt;\n  &lt;server&gt;\n    &lt;id&gt;Snapshots&lt;\/id&gt;\n    &lt;username&gt;ali&lt;\/username&gt;\n    &lt;password&gt;ali&lt;\/password&gt;\n  &lt;\/server&gt;\n&lt;\/servers&gt;\n&lt;mirrors&gt;\n &lt;mirror&gt;\n  &lt;!--This sends everything else to \/public --&gt;\n  &lt;id&gt;nexus&lt;\/id&gt;\n  &lt;mirrorOf&gt;*&lt;\/mirrorOf&gt; \n  &lt;url&gt;http:\/\/maven.aliyun.com\/nexus\/content\/groups\/public\/&lt;\/url&gt;\n &lt;\/mirror&gt;\n &lt;mirror&gt;\n  &lt;!--This is used to direct the public snapshots repo in the \n      profile below over to a different nexus group --&gt;\n  &lt;id&gt;nexus-public-snapshots&lt;\/id&gt;\n  &lt;mirrorOf&gt;public-snapshots&lt;\/mirrorOf&gt; \n  &lt;url&gt;http:\/\/maven.aliyun.com\/nexus\/content\/repositories\/snapshots\/&lt;\/url&gt;\n &lt;\/mirror&gt;\n&lt;\/mirrors&gt;\n&lt;profiles&gt; \n &lt;profile&gt;\n  &lt;id&gt;development&lt;\/id&gt;\n  &lt;repositories&gt;\n    &lt;repository&gt;\n      &lt;id&gt;central&lt;\/id&gt;\n      &lt;url&gt;http:\/\/central&lt;\/url&gt;\n      &lt;releases&gt;&lt;enabled&gt;true&lt;\/enabled&gt;&lt;updatePolicy&gt;always&lt;\/updatePolicy&gt;&lt;\/releases&gt;\n      &lt;snapshots&gt;&lt;enabled&gt;true&lt;\/enabled&gt;&lt;updatePolicy&gt;always&lt;\/updatePolicy&gt;&lt;\/snapshots&gt;\n    &lt;\/repository&gt;\n  &lt;\/repositories&gt;\n &lt;pluginRepositories&gt;\n    &lt;pluginRepository&gt;\n      &lt;id&gt;central&lt;\/id&gt;\n      &lt;url&gt;http:\/\/central&lt;\/url&gt;\n      &lt;releases&gt;&lt;enabled&gt;true&lt;\/enabled&gt;&lt;updatePolicy&gt;always&lt;\/updatePolicy&gt;&lt;\/releases&gt;\n      &lt;snapshots&gt;&lt;enabled&gt;true&lt;\/enabled&gt;&lt;updatePolicy&gt;always&lt;\/updatePolicy&gt;&lt;\/snapshots&gt;\n    &lt;\/pluginRepository&gt;\n  &lt;\/pluginRepositories&gt;\n &lt;\/profile&gt;\n &lt;profile&gt;\n  &lt;!--this profile will allow snapshots to be searched when activated--&gt;\n  &lt;id&gt;public-snapshots&lt;\/id&gt;\n  &lt;repositories&gt;\n    &lt;repository&gt;\n      &lt;id&gt;public-snapshots&lt;\/id&gt;\n      &lt;url&gt;http:\/\/public-snapshots&lt;\/url&gt;\n      &lt;releases&gt;&lt;enabled&gt;false&lt;\/enabled&gt;&lt;\/releases&gt;\n      &lt;snapshots&gt;&lt;enabled&gt;true&lt;\/enabled&gt;&lt;updatePolicy&gt;always&lt;\/updatePolicy&gt;&lt;\/snapshots&gt;\n    &lt;\/repository&gt;\n  &lt;\/repositories&gt;\n  &lt;pluginRepositories&gt;\n    &lt;pluginRepository&gt;\n      &lt;id&gt;public-snapshots&lt;\/id&gt;\n      &lt;url&gt;http:\/\/public-snapshots&lt;\/url&gt;\n      &lt;releases&gt;&lt;enabled&gt;false&lt;\/enabled&gt;&lt;\/releases&gt;\n      &lt;snapshots&gt;&lt;enabled&gt;true&lt;\/enabled&gt;&lt;updatePolicy&gt;always&lt;\/updatePolicy&gt;&lt;\/snapshots&gt;\n    &lt;\/pluginRepository&gt;\n   &lt;\/pluginRepositories&gt;\n  &lt;\/profile&gt;\n &lt;\/profiles&gt; \n &lt;activeProfiles&gt;\n  &lt;activeProfile&gt;development&lt;\/activeProfile&gt;\n  &lt;activeProfile&gt;public-snapshots&lt;\/activeProfile&gt;\n &lt;\/activeProfiles&gt;\n&lt;\/settings&gt;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u8be5\u914d\u7f6e\u4e3a&nbsp;apache-maven-3.2.1\\conf&nbsp;\u8def\u5f84\u4e0b&nbsp;setting [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[22],"class_list":["post-206","post","type-post","status-publish","format-standard","hentry","category-biancheng","tag-maven"],"_links":{"self":[{"href":"https:\/\/www.wkv.cc\/index.php\/wp-json\/wp\/v2\/posts\/206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wkv.cc\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wkv.cc\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wkv.cc\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wkv.cc\/index.php\/wp-json\/wp\/v2\/comments?post=206"}],"version-history":[{"count":2,"href":"https:\/\/www.wkv.cc\/index.php\/wp-json\/wp\/v2\/posts\/206\/revisions"}],"predecessor-version":[{"id":208,"href":"https:\/\/www.wkv.cc\/index.php\/wp-json\/wp\/v2\/posts\/206\/revisions\/208"}],"wp:attachment":[{"href":"https:\/\/www.wkv.cc\/index.php\/wp-json\/wp\/v2\/media?parent=206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wkv.cc\/index.php\/wp-json\/wp\/v2\/categories?post=206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wkv.cc\/index.php\/wp-json\/wp\/v2\/tags?post=206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}