{"id":77469,"date":"2026-02-24T19:08:24","date_gmt":"2026-02-24T11:08:24","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/77469.html"},"modified":"2026-02-24T19:08:24","modified_gmt":"2026-02-24T11:08:24","slug":"%e6%89%8b%e6%8a%8a%e6%89%8b%e6%95%99%e4%bd%a0%e6%90%9e%e5%ae%9amaven%e7%a6%bb%e7%ba%bf%e9%83%a8%e7%bd%b2%ef%bc%9a%e4%bb%8e%e5%85%89%e7%9b%98%e5%88%b0%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e5%ae%8c","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/77469.html","title":{"rendered":"\u624b\u628a\u624b\u6559\u4f60\u641e\u5b9aMaven\u79bb\u7ebf\u90e8\u7f72\uff1a\u4ece\u5149\u76d8\u5230\u670d\u52a1\u5668\u7684\u5b8c\u6574\u6d41\u7a0b"},"content":{"rendered":"<h2>\u4f01\u4e1a\u7ea7Maven\u79bb\u7ebf\u90e8\u7f72\u5b9e\u6218\u6307\u5357&#xff1a;\u4ece\u4f9d\u8d56\u6253\u5305\u5230\u5185\u7f51\u6784\u5efa\u5168\u6d41\u7a0b<\/h2>\n<p>\u5728\u9ad8\u5ea6\u5b89\u5168\u654f\u611f\u7684\u4f01\u4e1a\u5f00\u53d1\u73af\u5883\u4e2d&#xff0c;\u7f51\u7edc\u9694\u79bb\u662f\u5e38\u89c1\u7684\u5b89\u5168\u5408\u89c4\u8981\u6c42\u3002\u91d1\u878d\u3001\u519b\u5de5\u3001\u653f\u52a1\u7b49\u9886\u57df\u7684Java\u9879\u76ee\u90e8\u7f72\u5e38\u9762\u4e34\u65e0\u6cd5\u8bbf\u95ee\u516c\u5171Maven\u4ed3\u5e93\u7684\u6311\u6218\u3002\u672c\u6587\u5c06\u7cfb\u7edf\u8bb2\u89e3\u5982\u4f55\u6784\u5efa\u5b8c\u6574\u7684\u79bb\u7ebfMaven\u5de5\u4f5c\u6d41&#xff0c;\u6db5\u76d6\u4f9d\u8d56\u9884\u4e0b\u8f7d\u3001\u4ecb\u8d28\u4f20\u8f93\u3001\u73af\u5883\u914d\u7f6e\u7b49\u5173\u952e\u73af\u8282&#xff0c;\u5e76\u5206\u4eab\u591a\u4e2a\u5b9e\u6218\u4e2d\u9a8c\u8bc1\u8fc7\u7684\u4f18\u5316\u6280\u5de7\u3002<\/p>\n<h3>1. \u79bb\u7ebf\u4ed3\u5e93\u6784\u5efa\u7b56\u7565<\/h3>\n<h4>1.1 \u4f9d\u8d56\u5168\u91cf\u6355\u83b7\u6280\u672f<\/h4>\n<p>\u5e38\u89c4\u7684dependency:go-offline\u547d\u4ee4\u53ea\u80fd\u4e0b\u8f7d\u76f4\u63a5\u4f9d\u8d56\u548c\u8fd0\u884c\u65f6\u4f9d\u8d56&#xff0c;\u800c\u53ef\u80fd\u9057\u6f0f\u63d2\u4ef6\u4f9d\u8d56\u548c\u52a8\u6001\u52a0\u8f7d\u7684\u4f9d\u8d56\u3002\u66f4\u53ef\u9760\u7684\u505a\u6cd5\u662f\u7ec4\u5408\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4&#xff1a;<\/p>\n<p># \u4e0b\u8f7d\u9879\u76ee\u4e3b\u4f9d\u8d56<br \/>\nmvn dependency:go-offline<\/p>\n<p># \u8865\u5145\u4e0b\u8f7d\u63d2\u4ef6\u4f9d\u8d56<br \/>\nmvn dependency:resolve-plugins<\/p>\n<p># \u6a21\u62df\u5b8c\u6574\u6784\u5efa\u8fc7\u7a0b&#xff08;\u4e0d\u5b9e\u9645\u6267\u884c&#xff09;<br \/>\nmvn clean install -DskipTests -Dmaven.test.skip&#061;true<\/p>\n<p>\u8fd9\u4e09\u4e2a\u547d\u4ee4\u7ec4\u5408\u80fd\u786e\u4fdd\u83b7\u53d6\u6784\u5efa\u6240\u9700\u7684\u5168\u90e8\u8d44\u6e90\u3002\u67d0\u5927\u578b\u94f6\u884c\u5b9e\u8df5\u8868\u660e&#xff0c;\u4ec5\u4f7f\u7528go-offline\u4f1a\u5bfc\u81f4\u7ea623%\u7684\u6784\u5efa\u4f9d\u8d56\u7f3a\u5931\u3002<\/p>\n<h4>1.2 \u4ed3\u5e93\u4f18\u5316\u6280\u5de7<\/h4>\n<p>\u672c\u5730\u4ed3\u5e93\u5f80\u5f80\u5305\u542b\u5927\u91cf\u5386\u53f2\u7248\u672c&#xff0c;\u53ef\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u7cbe\u7b80&#xff1a;<\/p>\n<li>\u7248\u672c\u8fc7\u6ee4&#xff1a;\u4fdd\u7559\u9879\u76ee\u5b9e\u9645\u4f7f\u7528\u7684\u7248\u672c<\/li>\n<li>\u7c7b\u578b\u8fc7\u6ee4&#xff1a;\u53ea\u4fdd\u7559.pom\u3001.jar\u3001.war\u7b49\u5fc5\u8981\u6587\u4ef6<\/li>\n<li>\u5143\u6570\u636e\u6e05\u7406&#xff1a;\u5220\u9664maven-metadata-*.xml\u7b49\u7f51\u7edc\u76f8\u5173\u6587\u4ef6<\/li>\n<p>\u4f18\u5316\u540e\u7684\u4ed3\u5e93\u4f53\u79ef\u901a\u5e38\u53ef\u51cf\u5c1140-60%\u3002\u4e0b\u8868\u5bf9\u6bd4\u4e86\u67d0\u7535\u5546\u9879\u76ee\u4f18\u5316\u524d\u540e\u7684\u4ed3\u5e93\u60c5\u51b5&#xff1a;<\/p>\n<table>\n<tr>\u6307\u6807\u4f18\u5316\u524d\u4f18\u5316\u540e\u7f29\u51cf\u6bd4\u4f8b<\/tr>\n<tbody>\n<tr>\n<td>\u6587\u4ef6\u6570\u91cf<\/td>\n<td>12,458<\/td>\n<td>5,217<\/td>\n<td>58.1%<\/td>\n<\/tr>\n<tr>\n<td>\u603b\u5927\u5c0f<\/td>\n<td>3.2GB<\/td>\n<td>1.4GB<\/td>\n<td>56.3%<\/td>\n<\/tr>\n<tr>\n<td>\u6784\u5efa\u65f6\u95f4<\/td>\n<td>4.5min<\/td>\n<td>2.8min<\/td>\n<td>37.8%<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>2. \u4ecb\u8d28\u5b89\u5168\u4f20\u8f93\u65b9\u6848<\/h3>\n<h4>2.1 \u8de8\u7f51\u7edc\u4f20\u8f93\u65b9\u6848\u9009\u578b<\/h4>\n<p>\u4e0d\u540c\u5b89\u5168\u7b49\u7ea7\u73af\u5883\u9002\u7528\u7684\u4f20\u8f93\u65b9\u5f0f&#xff1a;<\/p>\n<ul>\n<li>\u7269\u7406\u4ecb\u8d28&#xff1a;\u5149\u76d8\/USB&#xff08;\u6700\u9ad8\u5b89\u5168\u6027&#xff09;<\/li>\n<li>\u5185\u90e8Nexus&#xff1a;\u642d\u5efa\u79c1\u6709\u4ed3\u5e93&#xff08;\u4e2d\u7b49\u89c4\u6a21\u56e2\u961f&#xff09;<\/li>\n<li>\u52a0\u5bc6\u4f20\u8f93&#xff1a;SFTP&#043;GPG&#xff08;\u9700\u5ba1\u6279\u901a\u9053&#xff09;<\/li>\n<\/ul>\n<p>\u63d0\u793a&#xff1a;\u519b\u5de5\u7c7b\u9879\u76ee\u5efa\u8bae\u91c7\u7528\u4e00\u6b21\u6027\u523b\u5f55\u5149\u76d8\u5e76\u914d\u5408MD5\u6821\u9a8c<\/p>\n<h4>2.2 \u4f20\u8f93\u5b8c\u6574\u6027\u9a8c\u8bc1<\/h4>\n<p>\u5efa\u7acb\u5b8c\u6574\u7684\u6821\u9a8c\u673a\u5236&#xff1a;<\/p>\n<p># \u751f\u6210\u6821\u9a8c\u6587\u4ef6<br \/>\nfind repository -type f -exec md5sum {} \\\\; &gt; checksum.md5<\/p>\n<p># \u4f20\u8f93\u540e\u9a8c\u8bc1<br \/>\nmd5sum -c checksum.md5<\/p>\n<p>\u67d0\u6b21\u5b9e\u9645\u4f20\u8f93\u4e2d&#xff0c;\u8be5\u673a\u5236\u66fe\u68c0\u6d4b\u52300.03%\u7684\u6587\u4ef6\u635f\u574f&#xff0c;\u907f\u514d\u4e86\u540e\u7eed\u6784\u5efa\u5931\u8d25\u3002<\/p>\n<h3>3. \u79bb\u7ebf\u73af\u5883\u914d\u7f6e\u5de5\u7a0b\u5316<\/h3>\n<h4>3.1 \u6807\u51c6\u5316\u914d\u7f6e\u6a21\u677f<\/h4>\n<p>\u63a8\u8350\u4f7f\u7528\u4ee5\u4e0bsettings.xml\u914d\u7f6e\u6846\u67b6&#xff1a;<\/p>\n<p>&lt;settings&gt;<br \/>\n  &lt;localRepository&gt;\/mnt\/maven\/repository&lt;\/localRepository&gt;<br \/>\n  &lt;offline&gt;true&lt;\/offline&gt;<br \/>\n  &lt;pluginGroups&gt;<br \/>\n    &lt;pluginGroup&gt;org.apache.maven.plugins&lt;\/pluginGroup&gt;<br \/>\n  &lt;\/pluginGroups&gt;<br \/>\n  &lt;profiles&gt;<br \/>\n    &lt;profile&gt;<br \/>\n      &lt;id&gt;offline-build&lt;\/id&gt;<br \/>\n      &lt;activation&gt;<br \/>\n        &lt;activeByDefault&gt;true&lt;\/activeByDefault&gt;<br \/>\n      &lt;\/activation&gt;<br \/>\n    &lt;\/profile&gt;<br \/>\n  &lt;\/profiles&gt;<br \/>\n&lt;\/settings&gt;<\/p>\n<p>\u5173\u952e\u914d\u7f6e\u9879\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>offline\u6807\u7b7e\u5f3a\u5236\u79bb\u7ebf\u6a21\u5f0f<\/li>\n<li>\u56fa\u5b9alocalRepository\u8def\u5f84\u907f\u514d\u73af\u5883\u5dee\u5f02<\/li>\n<li>\u9884\u5b9a\u4e49\u63d2\u4ef6\u7ec4\u63d0\u5347\u6784\u5efa\u7a33\u5b9a\u6027<\/li>\n<\/ul>\n<h4>3.2 \u6784\u5efa\u73af\u5883\u9694\u79bb\u65b9\u6848<\/h4>\n<p>\u63a8\u8350\u76ee\u5f55\u7ed3\u6784&#xff1a;<\/p>\n<p>\/maven-offline\/<br \/>\n\u251c\u2500\u2500 bin\/            # \u5c01\u88c5\u811a\u672c<br \/>\n\u251c\u2500\u2500 conf\/           # \u914d\u7f6e\u4e2d\u5fc3<br \/>\n\u2502   \u2514\u2500\u2500 settings.xml<br \/>\n\u251c\u2500\u2500 repository\/     # \u4f9d\u8d56\u4ed3\u5e93<br \/>\n\u2514\u2500\u2500 projects\/       # \u9879\u76ee\u4ee3\u7801<\/p>\n<p>\u901a\u8fc7Docker\u53ef\u8fdb\u4e00\u6b65\u5b9e\u73b0\u73af\u5883\u6807\u51c6\u5316&#xff1a;<\/p>\n<p>FROM maven:3.8.6-jdk-11<br \/>\nCOPY repository \/maven-offline\/repository<br \/>\nCOPY conf\/settings.xml \/usr\/share\/maven\/conf\/<br \/>\nENV MAVEN_OPTS&#061;&#034;-Dmaven.repo.local&#061;\/maven-offline\/repository&#034;<\/p>\n<h3>4. \u9ad8\u7ea7\u95ee\u9898\u6392\u67e5\u4f53\u7cfb<\/h3>\n<h4>4.1 \u4f9d\u8d56\u6811\u5206\u6790\u6280\u5de7<\/h4>\n<p>\u5f53\u51fa\u73b0ClassNotFound\u65f6&#xff0c;\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b9a\u4f4d\u95ee\u9898&#xff1a;<\/p>\n<p>mvn dependency:tree -Dverbose -Dincludes&#061;\u51b2\u7a81\u5305\u540d<\/p>\n<p>\u5178\u578b\u4f9d\u8d56\u51b2\u7a81\u89e3\u51b3\u6d41\u7a0b&#xff1a;<\/p>\n<li>\u8bc6\u522b\u51b2\u7a81jar\u5305<\/li>\n<li>\u5728pom\u4e2d\u663e\u5f0f\u58f0\u660e\u6b63\u786e\u7248\u672c<\/li>\n<li>\u4f7f\u7528exclusions\u6392\u9664\u4f20\u9012\u4f9d\u8d56<\/li>\n<h4>4.2 \u6784\u5efa\u7f13\u5b58\u7ba1\u7406<\/h4>\n<p>\u79bb\u7ebf\u73af\u5883\u4e0b\u63a8\u8350\u542f\u7528\u589e\u91cf\u6784\u5efa&#xff1a;<\/p>\n<p># .mvn\/maven.config<br \/>\n&#8211;no-transfer-progress<br \/>\n&#8211;fail-fast<br \/>\n&#8211;resume-from<\/p>\n<p>\u8fd9\u4e9b\u53c2\u6570\u53ef\u51cf\u5c1130%\u4ee5\u4e0a\u7684\u91cd\u590d\u6784\u5efa\u65f6\u95f4\u3002\u67d0\u7535\u4fe1\u9879\u76ee\u5b9e\u6d4b\u6570\u636e\u663e\u793a&#xff1a;<\/p>\n<table>\n<tr>\u6784\u5efa\u7c7b\u578b\u9996\u6b21\u8017\u65f6\u589e\u91cf\u8017\u65f6\u63d0\u5347\u6548\u7387<\/tr>\n<tbody>\n<tr>\n<td>\u5b8c\u6574\u6784\u5efa<\/td>\n<td>8m12s<\/td>\n<td>&#8211;<\/td>\n<td>&#8211;<\/td>\n<\/tr>\n<tr>\n<td>\u4ee3\u7801\u53d8\u66f4<\/td>\n<td>&#8211;<\/td>\n<td>1m45s<\/td>\n<td>78.6%<\/td>\n<\/tr>\n<tr>\n<td>\u914d\u7f6e\u53d8\u66f4<\/td>\n<td>&#8211;<\/td>\n<td>3m22s<\/td>\n<td>59.1%<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>5. \u4f01\u4e1a\u7ea7\u6700\u4f73\u5b9e\u8df5<\/h3>\n<p>\u5728\u4e2d\u5927\u578b\u91d1\u878d\u9879\u76ee\u4e2d\u7684\u5b9e\u65bd\u7ecf\u9a8c\u8868\u660e&#xff0c;\u6210\u529f\u7684\u79bb\u7ebf\u90e8\u7f72\u9700\u8981\u5efa\u7acb\u4ee5\u4e0b\u673a\u5236&#xff1a;<\/p>\n<li>\u4f9d\u8d56\u770b\u677f\u7cfb\u7edf&#xff1a;\u5b9a\u671f\u626b\u63cfpom\u6587\u4ef6&#xff0c;\u751f\u6210\u4f9d\u8d56\u77e9\u9635\u62a5\u544a<\/li>\n<li>\u7248\u672c\u51bb\u7ed3\u7b56\u7565&#xff1a;\u5bf9\u6838\u5fc3\u4f9d\u8d56\u9501\u5b9a\u5177\u4f53\u7248\u672c\u53f7<\/li>\n<li>\u4ed3\u5e93\u5065\u5eb7\u68c0\u67e5&#xff1a;\u6bcf\u6708\u9a8c\u8bc1\u4ed3\u5e93\u5b8c\u6574\u6027<\/li>\n<li>\u6784\u5efa\u6c99\u7bb1\u73af\u5883&#xff1a;\u9694\u79bb\u6d4b\u8bd5\u5173\u952e\u7248\u672c\u66f4\u65b0<\/li>\n<p>\u67d0\u7701\u7ea7\u653f\u52a1\u5e73\u53f0\u901a\u8fc7\u8fd9\u5957\u4f53\u7cfb&#xff0c;\u5c06\u6784\u5efa\u6210\u529f\u7387\u4ece82%\u63d0\u5347\u81f399.6%&#xff0c;\u90e8\u7f72\u65f6\u6548\u7f29\u77ed65%\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f01\u4e1a\u7ea7Maven\u79bb\u7ebf\u90e8\u7f72\u5b9e\u6218\u6307\u5357&#xff1a;\u4ece\u4f9d\u8d56\u6253\u5305\u5230\u5185\u7f51\u6784\u5efa\u5168\u6d41\u7a0b<br \/>\n\u5728\u9ad8\u5ea6\u5b89\u5168\u654f\u611f\u7684\u4f01\u4e1a\u5f00\u53d1\u73af\u5883\u4e2d&#xff0c;\u7f51\u7edc\u9694\u79bb\u662f\u5e38\u89c1\u7684\u5b89\u5168\u5408\u89c4\u8981\u6c42\u3002\u91d1\u878d\u3001\u519b\u5de5\u3001\u653f\u52a1\u7b49\u9886\u57df\u7684Java\u9879\u76ee\u90e8\u7f72\u5e38\u9762\u4e34\u65e0\u6cd5\u8bbf\u95ee\u516c\u5171Maven\u4ed3\u5e93\u7684\u6311\u6218\u3002\u672c\u6587\u5c06\u7cfb\u7edf\u8bb2\u89e3\u5982\u4f55\u6784\u5efa\u5b8c\u6574\u7684\u79bb\u7ebfMaven\u5de5\u4f5c\u6d41&#xff0c;\u6db5\u76d6\u4f9d\u8d56\u9884\u4e0b\u8f7d\u3001\u4ecb\u8d28\u4f20\u8f93\u3001\u73af\u5883\u914d\u7f6e\u7b49\u5173\u952e\u73af\u8282&#xff0c;\u5e76\u5206\u4eab\u591a\u4e2a\u5b9e\u6218\u4e2d\u9a8c\u8bc1\u8fc7\u7684\u4f18\u5316\u6280\u5de7\u3002<br \/>\n1. \u79bb\u7ebf\u4ed3\u5e93\u6784\u5efa\u7b56\u7565<br \/>\n1.1 \u4f9d\u8d56\u5168\u91cf\u6355\u83b7\u6280\u672f<br \/>\n\u5e38\u89c4\u7684dependency:go-of<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[8509,8508,393],"topic":[],"class_list":["post-77469","post","type-post","status-publish","format-standard","hentry","category-server","tag-8509","tag-8508","tag-maven"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u624b\u628a\u624b\u6559\u4f60\u641e\u5b9aMaven\u79bb\u7ebf\u90e8\u7f72\uff1a\u4ece\u5149\u76d8\u5230\u670d\u52a1\u5668\u7684\u5b8c\u6574\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/77469.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u624b\u628a\u624b\u6559\u4f60\u641e\u5b9aMaven\u79bb\u7ebf\u90e8\u7f72\uff1a\u4ece\u5149\u76d8\u5230\u670d\u52a1\u5668\u7684\u5b8c\u6574\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4f01\u4e1a\u7ea7Maven\u79bb\u7ebf\u90e8\u7f72\u5b9e\u6218\u6307\u5357&#xff1a;\u4ece\u4f9d\u8d56\u6253\u5305\u5230\u5185\u7f51\u6784\u5efa\u5168\u6d41\u7a0b \u5728\u9ad8\u5ea6\u5b89\u5168\u654f\u611f\u7684\u4f01\u4e1a\u5f00\u53d1\u73af\u5883\u4e2d&#xff0c;\u7f51\u7edc\u9694\u79bb\u662f\u5e38\u89c1\u7684\u5b89\u5168\u5408\u89c4\u8981\u6c42\u3002\u91d1\u878d\u3001\u519b\u5de5\u3001\u653f\u52a1\u7b49\u9886\u57df\u7684Java\u9879\u76ee\u90e8\u7f72\u5e38\u9762\u4e34\u65e0\u6cd5\u8bbf\u95ee\u516c\u5171Maven\u4ed3\u5e93\u7684\u6311\u6218\u3002\u672c\u6587\u5c06\u7cfb\u7edf\u8bb2\u89e3\u5982\u4f55\u6784\u5efa\u5b8c\u6574\u7684\u79bb\u7ebfMaven\u5de5\u4f5c\u6d41&#xff0c;\u6db5\u76d6\u4f9d\u8d56\u9884\u4e0b\u8f7d\u3001\u4ecb\u8d28\u4f20\u8f93\u3001\u73af\u5883\u914d\u7f6e\u7b49\u5173\u952e\u73af\u8282&#xff0c;\u5e76\u5206\u4eab\u591a\u4e2a\u5b9e\u6218\u4e2d\u9a8c\u8bc1\u8fc7\u7684\u4f18\u5316\u6280\u5de7\u3002 1. \u79bb\u7ebf\u4ed3\u5e93\u6784\u5efa\u7b56\u7565 1.1 \u4f9d\u8d56\u5168\u91cf\u6355\u83b7\u6280\u672f \u5e38\u89c4\u7684dependency:go-of\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/77469.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-24T11:08:24+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/77469.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/77469.html\",\"name\":\"\u624b\u628a\u624b\u6559\u4f60\u641e\u5b9aMaven\u79bb\u7ebf\u90e8\u7f72\uff1a\u4ece\u5149\u76d8\u5230\u670d\u52a1\u5668\u7684\u5b8c\u6574\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-24T11:08:24+00:00\",\"dateModified\":\"2026-02-24T11:08:24+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/77469.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/77469.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/77469.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u624b\u628a\u624b\u6559\u4f60\u641e\u5b9aMaven\u79bb\u7ebf\u90e8\u7f72\uff1a\u4ece\u5149\u76d8\u5230\u670d\u52a1\u5668\u7684\u5b8c\u6574\u6d41\u7a0b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u624b\u628a\u624b\u6559\u4f60\u641e\u5b9aMaven\u79bb\u7ebf\u90e8\u7f72\uff1a\u4ece\u5149\u76d8\u5230\u670d\u52a1\u5668\u7684\u5b8c\u6574\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/77469.html","og_locale":"zh_CN","og_type":"article","og_title":"\u624b\u628a\u624b\u6559\u4f60\u641e\u5b9aMaven\u79bb\u7ebf\u90e8\u7f72\uff1a\u4ece\u5149\u76d8\u5230\u670d\u52a1\u5668\u7684\u5b8c\u6574\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4f01\u4e1a\u7ea7Maven\u79bb\u7ebf\u90e8\u7f72\u5b9e\u6218\u6307\u5357&#xff1a;\u4ece\u4f9d\u8d56\u6253\u5305\u5230\u5185\u7f51\u6784\u5efa\u5168\u6d41\u7a0b \u5728\u9ad8\u5ea6\u5b89\u5168\u654f\u611f\u7684\u4f01\u4e1a\u5f00\u53d1\u73af\u5883\u4e2d&#xff0c;\u7f51\u7edc\u9694\u79bb\u662f\u5e38\u89c1\u7684\u5b89\u5168\u5408\u89c4\u8981\u6c42\u3002\u91d1\u878d\u3001\u519b\u5de5\u3001\u653f\u52a1\u7b49\u9886\u57df\u7684Java\u9879\u76ee\u90e8\u7f72\u5e38\u9762\u4e34\u65e0\u6cd5\u8bbf\u95ee\u516c\u5171Maven\u4ed3\u5e93\u7684\u6311\u6218\u3002\u672c\u6587\u5c06\u7cfb\u7edf\u8bb2\u89e3\u5982\u4f55\u6784\u5efa\u5b8c\u6574\u7684\u79bb\u7ebfMaven\u5de5\u4f5c\u6d41&#xff0c;\u6db5\u76d6\u4f9d\u8d56\u9884\u4e0b\u8f7d\u3001\u4ecb\u8d28\u4f20\u8f93\u3001\u73af\u5883\u914d\u7f6e\u7b49\u5173\u952e\u73af\u8282&#xff0c;\u5e76\u5206\u4eab\u591a\u4e2a\u5b9e\u6218\u4e2d\u9a8c\u8bc1\u8fc7\u7684\u4f18\u5316\u6280\u5de7\u3002 1. \u79bb\u7ebf\u4ed3\u5e93\u6784\u5efa\u7b56\u7565 1.1 \u4f9d\u8d56\u5168\u91cf\u6355\u83b7\u6280\u672f \u5e38\u89c4\u7684dependency:go-of","og_url":"https:\/\/www.wsisp.com\/helps\/77469.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-24T11:08:24+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/77469.html","url":"https:\/\/www.wsisp.com\/helps\/77469.html","name":"\u624b\u628a\u624b\u6559\u4f60\u641e\u5b9aMaven\u79bb\u7ebf\u90e8\u7f72\uff1a\u4ece\u5149\u76d8\u5230\u670d\u52a1\u5668\u7684\u5b8c\u6574\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-24T11:08:24+00:00","dateModified":"2026-02-24T11:08:24+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/77469.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/77469.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/77469.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u624b\u628a\u624b\u6559\u4f60\u641e\u5b9aMaven\u79bb\u7ebf\u90e8\u7f72\uff1a\u4ece\u5149\u76d8\u5230\u670d\u52a1\u5668\u7684\u5b8c\u6574\u6d41\u7a0b"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/77469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=77469"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/77469\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=77469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=77469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=77469"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=77469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}