{"id":93,"date":"2026-10-10T13:12:37","date_gmt":"2026-10-10T05:12:37","guid":{"rendered":"http:\/\/189.24.78.16\/?p=93"},"modified":"2026-10-10T13:12:39","modified_gmt":"2026-10-10T05:12:39","slug":"maven%e9%ab%98%e7%ba%a7","status":"publish","type":"post","link":"https:\/\/bkxiaohei123.xyz\/index.php\/2026\/10\/10\/maven%e9%ab%98%e7%ba%a7\/","title":{"rendered":"maven\u9ad8\u7ea7"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">maven\u662f\u4e00\u6b3e\u6784\u5efa\u548c\u7ba1\u7406\u9879\u76ee\u7684\u5de5\u5177\uff0c\u4f46\u662f\u8981\u9762\u5bf9\u4e2d\u5927\u578b\u5f00\u53d1\u9879\u76ee\uff0c\u53ea\u51ed\u57fa\u7840\u529f\u80fd\u5f88\u96be\u5f00\u53d1\uff0c\u8fd9\u65f6\u6211\u4eec\u9700\u5b66\u4e60maven\u7684\u4e00\u4e9b\u9ad8\u7ea7\u529f\u80fd\u7684\u4f7f\u7528\u3002<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>\u5206\u6a21\u5757\u8bbe\u8ba1\u4e0e\u5f00\u53d1<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u968f\u7740\u9879\u76ee\u7684\u5f00\u53d1\uff0c\u9879\u76ee\u7684\u89c4\u683c\u548c\u4e1a\u52a1\u529f\u80fd\u4f1a\u8d8a\u6765\u8d8a\u5927\uff0c\u5982\u679c\u4e0d\u5c06\u9879\u76ee\u5206\u6210\u591a\u4e2a\u6a21\u5757\u5f00\u53d1\uff0c\u7ba1\u7406\u548c\u7ef4\u62a4\u5c06\u975e\u5e38\u56f0\u96be\u3002\u5c06\u4e00\u4e2a\u9879\u76ee\u5206\u6210\u591a\u4e2a\u6a21\u5757\u7531\u4e0d\u540c\u7684\u9879\u76ee\u7ec4\u5f00\u53d1\uff0c\u4f7f\u7528\u5bf9\u5e94\u529f\u80fd\u65f6\u53ea\u9700\u5f15\u7528<strong>\u9879\u76ee\u5750\u6807<\/strong>\uff0c\u65b9\u4fbf\u9879\u76ee\u7684\u7ba1\u7406\u7ef4\u62a4\uff0c\u6269\u5c55\uff0c\u4e5f\u65b9\u4fbf\u6a21\u5757\u4e4b\u95f4\u7684\u8c03\u7528\uff0c\u8d44\u6e90\u5171\u4eab\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Maven \u5206\u6a21\u5757\u8bbe\u8ba1\u4e0d\u4ec5\u662f\u6280\u672f\u7684\u5347\u7ea7\uff0c\u66f4\u662f<strong>\u5de5\u7a0b\u601d\u7ef4\u7684\u8f6c\u53d8<\/strong>\u3002\u5b83\u901a\u8fc7\u5c06\u5e9e\u5927\u590d\u6742\u7684\u7cfb\u7edf\u62c6\u89e3\u4e3a\u9ad8\u5185\u805a\u3001\u4f4e\u8026\u5408\u7684\u72ec\u7acb\u6a21\u5757\uff0c\u89e3\u51b3\u4e86\u56e2\u961f\u534f\u4f5c\u3001\u4ee3\u7801\u590d\u7528\u548c\u540e\u671f\u7ef4\u62a4\u7684\u75db\u70b9\u3002\u638c\u63e1\u5206\u6a21\u5757\u5f00\u53d1\uff0c\u662f\u5199\u51fa\u4f18\u96c5\u3001\u53ef\u7ef4\u62a4\u7684\u4f01\u4e1a\u7ea7\u9879\u76ee\u7684\u57fa\u77f3\u3002<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>\u7ee7\u627f\u4e0e\u805a\u5408<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u57fa\u4e8e\u591a\u6a21\u5757\u7684\u51fa\u73b0\uff0c\u9879\u76ee\u4f1a\u5f15\u6765\u65b0\u7684\u95ee\u9898\uff0cmaven\u7684\u7ee7\u627f\u4e0e\u805a\u5408\u4fbf\u662f\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u7684\u5b58\u5728\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u6211\u4eec\u719f\u77e5\u7684java\u5f53\u4e2d\uff0c\u7c7b\u4e0e\u7c7b\u662f\u53ef\u4ee5\u5b9e\u73b0\u7ee7\u627f\u5173\u7cfb\u7684\uff0c\u800c\u5728maven\u5f53\u4e2d\uff0c<strong>\u5de5\u7a0b\u4e0e\u5de5\u7a0b\u4e4b\u95f4\u4e5f\u662f\u53ef\u4ee5\u5b9e\u73b0\u7ee7\u627f\u7684<\/strong>\u3002\u4f8b\u5982\uff0c\u5728\u4e0d\u540c\u6a21\u5757\u5f00\u53d1\u90fd\u4f1a\u5f15\u5165\u76f8\u540c\u7684\u4f9d\u8d56\uff0c\u8fd9\u4f1a\u663e\u5f97\u81c3\u80bf\uff0c\u4f7f\u7528\u7ee7\u627f\u5c31\u53ef\u4ee5\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u8fd9\u65f6\u6211\u4eec\u4fbf\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a<strong>\u7236\u5de5\u7a0b<\/strong>\u7528\u4e8e\u5f15\u5165\u76f8\u540c\u7684\u4f9d\u8d56\uff0c\u53ea\u8981\u5b50\u5de5\u7a0b\u7ee7\u627f\u4e86<strong>\u7236\u5de5\u7a0b<\/strong>\u4fbf\u80fd\u5f15\u5165\u5171\u540c\u7684\u4f9d\u8d56\uff0c\u8fd9\u6837\u6211\u4eec\u4fbf\u7b80\u5316\u4e86\u4f9d\u8d56\u914d\u7f6e\uff0c\u505a\u5230\u7edf\u4e00\u7ba1\u7406\u914d\u7f6e\u4f9d\u8d56\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u521b\u5efa\u7236\u5de5\u7a0b\u65f6\uff0c\u6253\u5305\u65b9\u5f0f\u5e94\u4e3a<strong>pom<\/strong>(\u9ed8\u8ba4jar) \u4f7f\u7528 &lt;packaging&gt;\u6253\u5305\u65b9\u5f0f&lt;\/packaging&gt; \u914d\u7f6e<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td>jar<\/td><td>        \u666e\u901a\u6a21\u5757\u7684\u6253\u5305\uff0cspringboot\u9879\u76ee\u57fa\u672c\u90fd\u662fjar\u5305      <\/td><\/tr><tr><td>war<\/td><td>        \u666e\u901aweb\u7a0b\u5e8f\u7684\u6253\u5305\uff0c\u9700\u8981\u90e8\u7f72\u5728\u5916\u90e8\u7684tomcat\u670d\u52a1\u5668\u4e2d\u8fd0\u884c<\/td><\/tr><tr><td>pom<\/td><td>        \u7236\u5de5\u7a0b\u6216\u805a\u5408\u5de5\u7a0b\uff0c\u8be5\u6a21\u5757\u4e0d\u5199\u4ee3\u7801\uff0c\u4ec5\u8fdb\u884c\u4f9d\u8d56\u7ba1\u7406<\/td><\/tr><\/tbody><\/table><\/figure>\n<\/div><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ec5\u4ec5\u53ea\u662f\u53bb\u4f9d\u8d56\u7ee7\u627f\u53c8\u4f1a\u51fa\u73b0\u65b0\u7684\u95ee\u9898\uff0c<strong>\u7248\u672c\u51b2\u7a81<\/strong> \uff0c\u5982\u679c\u4e24\u4e2a\u5b50\u5de5\u7a0b\u5f15\u5165\u4e0d\u540c\u7248\u672c\u7684\u76f8\u540c\u4f9d\u8d56\u5c31\u4f1a\u51fa\u73b0\u7248\u672c\u51b2\u7a81\u95ee\u9898\uff0c\u800c\u7236\u5de5\u7a0b\u7684<code>&lt;dependencyManagement&gt;<\/code>\u5b8c\u7f8e\u89e3\u51b3\u4e86\u8fd9\u4e2a\u95ee\u9898\uff0c\u5b83\u80fd\u591f\u7edf\u4e00\u6307\u5b9a\u4f9d\u8d56\u7248\u672c\uff0c\u4fdd\u8bc1\u4f9d\u8d56\u4e4b\u95f4\u4e0d\u4f1a\u7248\u672c\u51b2\u7a81\uff0c\u5b50\u5de5\u7a0b\u5728\u5f15\u5165\u4f9d\u8d56\u65f6\u4e0d\u5fc5\u5b9a\u4e49\u7248\u672c\u3002\u8fd9\u5c31\u53eb<strong>\u7248\u672c\u9501\u5b9a<\/strong>\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u540c\u65f6\u6211\u4eec\u4e5f\u53ef\u4ee5\u4f7f\u7528<strong>\u81ea\u5b9a\u4e49\u5c5e\u6027\/\u5f15\u5165\u5c5e\u6027<\/strong>\u53bb\u7edf\u4e00\u7ba1\u7406\u4f9d\u8d56\u7684\u7248\u672c\uff0c\u4fdd\u8bc1\u7b80\u6d01\u6027\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u9879\u76ee\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u5206\u6a21\u5757\u8bbe\u8ba1\u5b9e\u73b0\u4e86\u9879\u76ee\u7684\u5f00\u53d1\uff0c\u4f46\u662f\u5728\u6253\u5305\u8fc7\u7a0b\u53c8\u4f1a\u4ea7\u751f\u65b0\u7684\u95ee\u9898\uff0c\u4e0d\u540c\u7684\u6a21\u5757\u90fd\u8981\u8fdb\u884c\u6253\u5305\u64cd\u4f5c\uff0c\u82e5\u9879\u76ee\u6a21\u5757\u8fc7\u591a\u6253\u5305\u8d77\u6765\u5c31\u4f1a\u975e\u5e38\u9ebb\u70e6\u3002\u800c<strong>\u805a\u5408<\/strong>\u5c31\u662f\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u7684\u3002\u805a\u5408\u7684\u6838\u5fc3\u601d\u60f3\u662f\uff0c\u521b\u5efa\u4e00\u4e2a<strong>\u603b\u7684maven\u5de5\u7a0b<\/strong>\uff0c\u628a\u591a\u4e2a\u6a21\u5757\u7ec4\u7ec7\u8d77\u6765\uff0c\u5728\u603b\u5de5\u7a0b\u4e2d\u6267\u884c\u547d\u4ee4\u5c31\u53ef\u4ee5\u7edf\u4e00\u6784\u5efa\u6a21\u5757\u3002<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>maven\u7684\u79c1\u670d<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u4eec\u90fd\u662f\u5728\u81ea\u5df1\u7535\u8111\u4e0a\u5f00\u53d1\uff0c\u4f9d\u8d56\u7684 Jar \u5305\u90fd\u4ece<strong>\u4e2d\u592e\u4ed3\u5e93<\/strong>\u4e0b\u8f7d\uff0c\u6216\u5b58\u5728\u672c\u5730\u4ed3\u5e93\uff0c\u4f46\u662f\u5f53\u4e00\u4e2a\u56e2\u961f\u5f00\u53d1\u4e00\u6b3e\u9879\u76ee\u65f6\uff0c\u5018\u82e5\u522b\u4eba\u9700\u8981\u4f7f\u7528\u53e6\u4e00\u4f4d\u540c\u4e8b\u5236\u4f5c\u7684jar\u5305\u5219\u9700\u8981\u6587\u4ef6\u4f20\u9012\u5230\u672c\u5730\u4ed3\u5e93\uff0c\u8fd9\u662f\u975e\u5e38\u4e0d\u4fbf\u5229\u7684\u4e14jar\u5305\u4e0d\u80fd\u591f\u540c\u6b65\u66f4\u65b0\uff0c\u5c31\u9700\u8981\u4e00\u4e2a\u201c<strong>\u516c\u53f8\u5185\u90e8\u7684\u4ed3\u5e93<\/strong>\u201d\u6765\u89e3\u51b3\u8fd9\u4e00\u5207\uff0c\u5b83\u5c31\u662f\uff1a<strong>Maven \u79c1\u670d<\/strong>\u3002\u4e13\u95e8\u5b58\u653e\u516c\u53f8\u5185\u90e8\u7684 Jar \u5305\u3002\u5b83\u4ecb\u4e8e\u201c\u672c\u5730\u4ed3\u5e93\u201d\u548c\u201c\u4e2d\u592e\u4ed3\u5e93\u201d\u4e4b\u95f4\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5e02\u9762\u4e0a\u642d\u5efa Maven \u79c1\u670d\u6700\u6d41\u884c\u7684\u5de5\u5177\u53eb <strong>Nexus<\/strong>\uff08\u7531 Sonatype \u516c\u53f8\u51fa\u54c1\uff09\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5b83\u662f\u4e00\u4e2a Web \u7cfb\u7edf\uff0c\u542f\u52a8\u540e\u53ef\u4ee5\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95ee\u3002<\/li>\n\n\n\n<li>\u5b83\u91cc\u9762\u4f1a\u81ea\u52a8\u5e2e\u4f60\u521b\u5efa\u597d\u51e0\u79cd\u4ed3\u5e93\uff0c\u5e38\u89c1\u7684\u6709\uff1a\n<ul class=\"wp-block-list\">\n<li><code>maven-releases<\/code>\uff1a\u5b58\u653e\u6b63\u5f0f\u7248\u672c\u7684 Jar \u5305\uff08\u4e0d\u4f1a\u9891\u7e41\u6539\u52a8\uff09\u3002<\/li>\n\n\n\n<li><code>maven-snapshots<\/code>\uff1a\u5b58\u653e\u5feb\u7167\u7248\u672c\u7684 Jar \u5305\uff08\u5f00\u53d1\u9636\u6bb5\uff0c\u9891\u7e41\u6539\u52a8\uff09\u3002<\/li>\n\n\n\n<li><code>maven-central<\/code>\uff1a\u4ee3\u7406\u4e2d\u592e\u4ed3\u5e93\u3002<\/li>\n\n\n\n<li><code>maven-public<\/code>\uff1a\u628a\u4e0a\u9762\u51e0\u4e2a\u4ed3\u5e93\u805a\u5408\u5728\u4e00\u8d77\uff0c\u4f9b\u5f00\u53d1\u8005\u7edf\u4e00\u8bbf\u95ee\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>maven\u662f\u4e00\u6b3e\u6784\u5efa\u548c\u7ba1\u7406\u9879\u76ee\u7684\u5de5\u5177\uff0c\u4f46\u662f\u8981\u9762\u5bf9\u4e2d\u5927\u578b\u5f00\u53d1\u9879\u76ee\uff0c\u53ea\u51ed\u57fa\u7840\u529f\u80fd\u5f88\u96be\u5f00\u53d1\uff0c\u8fd9\u65f6\u6211\u4eec\u9700\u5b66\u4e60maven [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":100,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9,16,11],"class_list":["post-93","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-learning","tag-java","tag-maven","tag-springboot"],"_links":{"self":[{"href":"https:\/\/bkxiaohei123.xyz\/index.php\/wp-json\/wp\/v2\/posts\/93","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bkxiaohei123.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bkxiaohei123.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bkxiaohei123.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bkxiaohei123.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=93"}],"version-history":[{"count":6,"href":"https:\/\/bkxiaohei123.xyz\/index.php\/wp-json\/wp\/v2\/posts\/93\/revisions"}],"predecessor-version":[{"id":99,"href":"https:\/\/bkxiaohei123.xyz\/index.php\/wp-json\/wp\/v2\/posts\/93\/revisions\/99"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bkxiaohei123.xyz\/index.php\/wp-json\/wp\/v2\/media\/100"}],"wp:attachment":[{"href":"https:\/\/bkxiaohei123.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=93"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bkxiaohei123.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=93"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bkxiaohei123.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}