{"id":652,"date":"2026-10-01T15:00:24","date_gmt":"2026-10-01T15:00:24","guid":{"rendered":"https:\/\/www.wzh994.cn\/?p=652"},"modified":"2026-10-01T15:00:24","modified_gmt":"2026-10-01T15:00:24","slug":"maven-%e4%be%9d%e8%b5%96%e4%b8%8a%e4%bc%a0%e5%88%b0-nexus-%e7%a7%81%e6%9c%8d%e5%90%8e%e6%9c%ac%e5%9c%b0%e4%bb%8d%e6%8a%a5-was-not-found","status":"publish","type":"post","link":"https:\/\/www.wzh994.cn\/?p=652","title":{"rendered":"Maven \u4f9d\u8d56\u4e0a\u4f20\u5230 Nexus \u79c1\u670d\u540e\u672c\u5730\u4ecd\u62a5 &#8220;was not found&#8221;"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u4e00\u3001\u95ee\u9898\u73b0\u8c61<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u628a\u4e00\u4e2a\u7b2c\u4e09\u65b9 jar \u4e0a\u4f20\u5230\u516c\u53f8 Nexus \u79c1\u670d\u540e\uff0c\u672c\u5730\u7f16\u8bd1\u4e00\u76f4\u62a5\u9519\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;ERROR] The following artifacts could not be resolved:\ncom.yonyou.iuap:iuap-ip-openapi-sdk:jar:8.2.100-RELEASE (present, but unavailable):\nCould not find artifact com.yonyou.iuap:iuap-ip-openapi-sdk:jar:8.2.100-RELEASE\nin nexus-public (http:\/\/maven.puyiyun.com\/repository\/maven-public\/)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8be1\u5f02\u7684\u5730\u65b9\u5728\u4e8e\uff1a<strong>\u6d4f\u89c8\u5668\u91cc\u80fd\u6b63\u5e38\u4e0b\u8f7d\u8fd9\u4e2a jar<\/strong>\uff0c\u94fe\u63a5\u662f\u901a\u7684\uff0c\u4fe1\u606f\u4e5f\u5b8c\u5168\u4e00\u81f4\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#47;&#47;maven.puyiyun.com\/repository\/maven-releases\/com\/yonyou\/iuap\/iuap-ip-openapi-sdk\/8.2.100-RELEASE\/iuap-ip-openapi-sdk-8.2.100-RELEASE-RELEASE.jar<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"924\" height=\"412\" src=\"https:\/\/www.wzh994.cn\/wp-content\/uploads\/2026\/09\/wechat_2026-09-29_143507_248.png\" alt=\"\" class=\"wp-image-654\" srcset=\"https:\/\/www.wzh994.cn\/wp-content\/uploads\/2026\/09\/wechat_2026-09-29_143507_248.png 924w, https:\/\/www.wzh994.cn\/wp-content\/uploads\/2026\/09\/wechat_2026-09-29_143507_248-300x134.png 300w, https:\/\/www.wzh994.cn\/wp-content\/uploads\/2026\/09\/wechat_2026-09-29_143507_248-767x342.png 767w\" sizes=\"auto, (max-width: 924px) 100vw, 924px\" \/><figcaption class=\"wp-element-caption\">\u56fe 1\uff1a\u4ed3\u5e93\u4e2d\u771f\u5b9e\u6587\u4ef6\u540d\u672b\u5c3e\u591a\u51fa\u4e86\u4e00\u6bb5 -RELEASE<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e8c\u3001\u5148\u6392\u9664\u6389\u7684\u90a3\u4e9b&#8221;\u5e38\u89c1\u5acc\u7591&#8221;<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u6309\u5e38\u89c4\u601d\u8def\u6392\u67e5\u4e86\u4e00\u5708\uff0c\u5168\u90e8\u6392\u9664\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u6392\u67e5\u9879<\/th><th>\u7ed3\u8bba<\/th><\/tr><\/thead><tbody><tr><td>Nexus \u4e0a\u6587\u4ef6\u662f\u5426\u5b58\u5728<\/td><td>\u5b58\u5728\uff0c<code>curl -I<\/code> \u8fd4\u56de 200<\/td><\/tr><tr><td><code>settings.xml<\/code> \u7684 mirror \/ profile \/ server \u8ba4\u8bc1<\/td><td>\u6b63\u786e\uff0c<strong>\u540c\u4ed3\u5e93\u5176\u4ed6\u4f9d\u8d56\u90fd\u80fd\u6b63\u5e38\u62c9\u53d6<\/strong><\/td><\/tr><tr><td>\u672c\u5730\u7f13\u5b58 <code>.lastUpdated<\/code> \/ <code>_remote.repositories<\/code><\/td><td>\u5df2\u5220\u9664\u5bf9\u5e94\u76ee\u5f55\u5e76 <code>-U<\/code> \u5f3a\u5236\u66f4\u65b0\uff0c\u65e0\u6548<\/td><\/tr><tr><td>release \/ snapshot \u7c7b\u578b\u4e0d\u5339\u914d<\/td><td>\u662f RELEASE\uff0c\u65e0\u95ee\u9898<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u5230\u8fd9\u91cc\u57fa\u672c\u53ef\u4ee5\u786e\u5b9a\uff1a<strong>\u4e0d\u662f\u6743\u9650\u3001\u4e0d\u662f\u7f51\u7edc\u3001\u4e0d\u662f\u7f13\u5b58\u3001\u4e0d\u662f\u914d\u7f6e\uff0c\u800c\u662f&#8221;\u5750\u6807&#8221;\u548c&#8221;\u6587\u4ef6\u540d&#8221;\u5bf9\u4e0d\u4e0a\u3002<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e09\u3001\u6839\u56e0\uff1ajar \u6587\u4ef6\u540d\u591a\u4e86\u4e00\u4e2a classifier<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u628a Maven \u8981\u627e\u7684\u6587\u4ef6\u548c\u4ed3\u5e93\u91cc\u5b9e\u9645\u5b58\u5728\u7684\u6587\u4ef6\u5e76\u6392\u770b\uff0c\u4e00\u76ee\u4e86\u7136\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><\/th><th>\u6587\u4ef6\u540d<\/th><\/tr><\/thead><tbody><tr><td>Maven \u6309\u5750\u6807 <code>8.2.100-RELEASE<\/code> \u8981\u627e\u7684<\/td><td><code>iuap-ip-openapi-sdk-8.2.100-RELEASE.jar<\/code><\/td><\/tr><tr><td>Nexus \u4e0a\u771f\u5b9e\u5b58\u5728\u7684<\/td><td><code>iuap-ip-openapi-sdk-8.2.100-RELEASE-<strong>RELEASE<\/strong>.jar<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6309 Maven \u7684\u547d\u540d\u89c4\u8303\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{artifactId}-{version}&#91;-{classifier}].{extension}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">version \u662f <code>8.2.100-RELEASE<\/code>\uff0c\u90a3\u4e48\u672b\u5c3e\u591a\u51fa\u6765\u7684\u90a3\u6bb5 <code>RELEASE<\/code> \u5c31\u88ab\u89e3\u6790\u6210\u4e86\u4e00\u4e2a <strong>classifier<\/strong>\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u4ed3\u5e93\u91cc\u53ea\u6709&#8221;\u5e26 classifier \u7684 jar&#8221;\uff0c<strong>\u6ca1\u6709\u4e3b jar<\/strong>\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u4e5f\u89e3\u91ca\u4e86\u62a5\u9519\u91cc\u90a3\u53e5\u5f88\u7279\u522b\u7684\u63aa\u8f9e \u2014\u2014 <strong><code>present, but unavailable<\/code><\/strong>\uff1aMaven \u5728\u4ed3\u5e93\u91cc\u627e\u5230\u4e86\u8be5 artifact \u7684\u76ee\u5f55\u548c pom\uff08\u6240\u4ee5\u662f present\uff09\uff0c\u4f46\u6309\u65e0 classifier \u7684\u5750\u6807\u8bf7\u6c42\u4e3b jar \u65f6\u627e\u4e0d\u5230\u6587\u4ef6\uff08\u6240\u4ee5 unavailable\uff09\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u5c0f\u7ed3\uff1a<code>Could not find artifact<\/code> + <code>present, but unavailable<\/code> \u8fd9\u4e2a\u7ec4\u5408\uff0c\u516b\u6210\u662f<strong>\u5750\u6807\u4e0e\u6587\u4ef6\u540d\u4e0d\u5339\u914d<\/strong>\uff0c\u800c\u4e0d\u662f\u4ed3\u5e93\u771f\u6ca1\u6709\u3002<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">\u56db\u3001\u89e3\u51b3\u65b9\u6848<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u65b9\u6848 A\uff08\u5e94\u6025\uff09\uff1a\u5728 pom \u91cc\u8865\u4e0a classifier<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u53ea\u662f\u60f3\u5148\u628a\u7f16\u8bd1\u8dd1\u901a\u3001\u6682\u65f6\u4e0d\u65b9\u4fbf\u52a8\u4ed3\u5e93\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;dependency&gt;\n    &lt;groupId&gt;com.yonyou.iuap&lt;\/groupId&gt;\n    &lt;artifactId&gt;iuap-ip-openapi-sdk&lt;\/artifactId&gt;\n    &lt;version&gt;8.2.100-RELEASE&lt;\/version&gt;\n    &lt;classifier&gt;RELEASE&lt;\/classifier&gt;\n&lt;\/dependency&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u7f3a\u70b9\u5f88\u660e\u663e\uff1a\u8fd9\u662f&#8221;\u8fc1\u5c31\u9519\u8bef\u547d\u540d&#8221;\uff0c\u56e2\u961f\u91cc\u5176\u4ed6\u4eba\u62c9\u53d6\u65f6\u4e5f\u5f97\u8ddf\u7740\u52a0 classifier\uff0c\u800c\u4e14\u4f20\u9012\u4f9d\u8d56\u53ef\u80fd\u4ecd\u89e3\u6790\u4e0d\u5230\u3002<strong>\u53ea\u9002\u5408\u6551\u706b\u3002<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u65b9\u6848 B\uff08\u6cbb\u672c\uff0c\u6211\u6700\u7ec8\u91c7\u7528\u7684\uff09\uff1a\u91cd\u547d\u540d\u540e\u91cd\u65b0\u4e0a\u4f20<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5173\u952e\u52a8\u4f5c\u53ea\u6709\u4e00\u4e2a\u2014\u2014<strong>\u628a\u672c\u5730\u6587\u4ef6\u540d\u6539\u6210\u548c\u5750\u6807\u5b8c\u5168\u4e00\u81f4<\/strong>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>iuap-ip-openapi-sdk-8.2.100-RELEASE.jar\niuap-ip-openapi-sdk-8.2.100-RELEASE.pom<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5373\u53bb\u6389\u672b\u5c3e\u591a\u51fa\u6765\u7684\u90a3\u4e2a <code>-RELEASE<\/code>\uff0c\u7136\u540e\u91cd\u65b0\u4e0a\u4f20\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Repository \u9009 <code>maven-releases<\/code><\/li>\n\n\n\n<li>Group \/ Artifact \/ Version \u586b <code>com.yonyou.iuap<\/code> \/ <code>iuap-ip-openapi-sdk<\/code> \/ <code>8.2.100-RELEASE<\/code><\/li>\n\n\n\n<li><strong>Classifier \u7559\u7a7a<\/strong>\uff0cExtension \u5206\u522b\u662f <code>jar<\/code> \u548c <code>pom<\/code><\/li>\n\n\n\n<li><strong>\u4e0d\u8981\u52fe\u9009 &#8220;Generate a POM file with these coordinates&#8221;<\/strong>\uff08\u5df2\u6709\u771f\u5b9e pom\uff0c\u52fe\u4e86\u4f1a\u88ab\u7a7a pom \u8986\u76d6\uff0c\u4f20\u9012\u4f9d\u8d56\u5168\u4e22\uff09<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"883\" height=\"510\" src=\"https:\/\/www.wzh994.cn\/wp-content\/uploads\/2026\/09\/c56f6c55-3e3f-421f-bae5-e4d8779b70b1.png\" alt=\"\" class=\"wp-image-657\" style=\"width:1200px;height:auto\" srcset=\"https:\/\/www.wzh994.cn\/wp-content\/uploads\/2026\/09\/c56f6c55-3e3f-421f-bae5-e4d8779b70b1.png 883w, https:\/\/www.wzh994.cn\/wp-content\/uploads\/2026\/09\/c56f6c55-3e3f-421f-bae5-e4d8779b70b1-300x173.png 300w, https:\/\/www.wzh994.cn\/wp-content\/uploads\/2026\/09\/c56f6c55-3e3f-421f-bae5-e4d8779b70b1-767x443.png 767w\" sizes=\"auto, (max-width: 883px) 100vw, 883px\" \/><figcaption class=\"wp-element-caption\">\u56fe 2\uff1aUpload component \u8868\u5355\uff0cClassifier \u7559\u7a7a\u3001Extension \u586b jar \/ pom<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0a\u4f20\u540e\u6e05\u6389\u672c\u5730\u8be5\u7248\u672c\u76ee\u5f55\uff0c\u5f3a\u5236\u62c9\u53d6\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rm -rf ~\/.m2\/repository\/com\/yonyou\/iuap\/iuap-ip-openapi-sdk\/8.2.100-RELEASE\nmvn clean compile -U<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u7f16\u8bd1\u901a\u8fc7\uff0c\u95ee\u9898\u89e3\u51b3\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e94\u3001\u4e00\u4e2a\u610f\u5916\u53d1\u73b0\uff1apom \u7528 .xml \u8fd8\u662f .pom\uff0c\u6548\u679c\u4e0d\u4e00\u6837<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u91cd\u65b0\u4e0a\u4f20\u8fc7\u7a0b\u4e2d\u53d1\u73b0\u4e00\u4e2a\u5f88\u6709\u610f\u601d\u7684\u73b0\u8c61\uff1a<strong>\u5185\u5bb9\u5b8c\u5168\u76f8\u540c\u7684 pom \u6587\u4ef6<\/strong>\uff0c\u4ec5\u540e\u7f00\u4e0d\u540c\uff0c\u7ed3\u679c\u5c31\u4e0d\u540c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>pom \u6587\u4ef6\u540d<\/th><th>Extension \u586b <code>pom<\/code>\u3001Classifier \u7559\u7a7a\u65f6\u7684\u7ed3\u679c<\/th><\/tr><\/thead><tbody><tr><td><code>xxx.xml<\/code><\/td><td>jar \u843d\u76d8\u4e3a <code>...-8.2.100-RELEASE-RELEASE.jar<\/code>\uff08\u53cc RELEASE\uff09<\/td><\/tr><tr><td><code>xxx.pom<\/code><\/td><td>jar \u843d\u76d8\u4e3a <code>...-8.2.100-RELEASE.jar<\/code>\uff08\u6b63\u786e\uff09<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u539f\u56e0\u63a8\u6d4b\u5728\u4e8e Nexus \u4e0a\u4f20 maven2 \u7ec4\u4ef6\u65f6\u7684\u5750\u6807\u6765\u6e90\u4f18\u5148\u7ea7\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>pom \u91cc\u89e3\u6790\u51fa\u7684 GAV &gt; \u8868\u5355\u624b\u586b\u7684 GAV<\/strong><\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Components REST API \u6587\u6863\u91cc\uff0c<code>maven2.groupId<\/code> \/ <code>artifactId<\/code> \/ <code>version<\/code> \u90fd\u6807\u6ce8\u4e3a &#8220;Yes, <strong>unless a POM asset is included in the upload<\/strong>&#8221; \u2014\u2014 \u53ea\u8981\u4e0a\u4f20\u91cc\u5e26\u4e86<strong>\u53ef\u8bc6\u522b\u7684 pom<\/strong>\uff0cNexus \u5c31\u4ee5 pom \u5185\u5bb9\u4e3a\u51c6\uff0c\u5e76\u6309\u89c4\u8303\u91cd\u547d\u540d\u6574\u4e2a\u7ec4\u4ef6\u7684\u8d44\u4ea7\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u547d\u540d\u4e3a <code>.pom<\/code> \u65f6\uff1a\u88ab\u8bc6\u522b\u4e3a pom \u8d44\u4ea7 \u2192 \u89e3\u6790\u51fa\u6743\u5a01\u5750\u6807 \u2192 \u6309 <code>{artifactId}-{version}.jar<\/code> \u89c4\u8303\u5316\u91cd\u547d\u540d \u2192 \u6b63\u786e<\/li>\n\n\n\n<li>\u547d\u540d\u4e3a <code>.xml<\/code> \u65f6\uff1a\u5f88\u53ef\u80fd\u672a\u88ab\u8bc6\u522b\u4e3a pom \u8d44\u4ea7\uff08\u5224\u5b9a\u4f9d\u636e\u504f\u5411\u6587\u4ef6\u540d\u540e\u7f00\uff0c\u800c\u975e Extension \u8f93\u5165\u6846\u91cc\u624b\u586b\u7684\u5b57\u7b26\u4e32\uff09\u2192 \u7f3a\u5c11\u6743\u5a01\u5750\u6807 \u2192 \u53ea\u80fd\u7167\u6284\u672c\u5730\u6587\u4ef6\u540d \u2192 \u53cc RELEASE \u88ab\u539f\u6837\u5e26\u8fdb\u4ed3\u5e93<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u987a\u5e26\u89e3\u91ca\u4e86\u4e4b\u524d\u53e6\u4e00\u4e2a\u602a\u73b0\u8c61\uff1a\u4e0a\u4f20\u65f6 <strong>Classifier \u4f1a\u88ab\u81ea\u52a8\u586b\u6210 <code>RELEASE<\/code><\/strong>\u3002\u540c\u6837\u662f\u8fd9\u5957\u903b\u8f91\u2014\u2014Nexus \u62ff\u7b2c\u4e00\u4e2a\u6587\u4ef6\u7684\u6587\u4ef6\u540d\u53bb\u731c <code>artifactId-version-classifier.ext<\/code>\uff0c\u770b\u5230 <code>...-8.2.100-RELEASE-RELEASE.jar<\/code> \u5c31\u628a\u672b\u5c3e\u90a3\u6bb5\u5f53\u6210 classifier \u586b\u8fdb\u53bb\u4e86\u3002\u624b\u52a8\u6e05\u7a7a\u53ea\u662f\u63a9\u76d6\u75c7\u72b6\uff0c\u6839\u5b50\u4ecd\u662f<strong>\u6e90\u6587\u4ef6\u540d\u4e0d\u5408\u89c4<\/strong>\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u26a0\ufe0f \u8fd9\u4e2a&#8221;\u9760\u6587\u4ef6\u540d\u540e\u7f00\u8bc6\u522b pom&#8221;\u7684\u7ec6\u8282\u5728\u4e0d\u540c 3.x \u5c0f\u7248\u672c\u5b9e\u73b0\u4e0a\u6709\u5dee\u5f02\uff0c<strong>\u4e0d\u8981\u5f53\u6210\u7a33\u5b9a\u5951\u7ea6\u4f9d\u8d56<\/strong>\uff0c\u53ea\u4f5c\u4e3a&#8221;\u4e3a\u4ec0\u4e48\u4f1a\u51fa\u73b0\u4e0d\u4e00\u81f4&#8221;\u7684\u89e3\u91ca\u3002<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">\u516d\u3001\u7ecf\u9a8c\u6c89\u6dc0\uff08Checklist\uff09<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u540e\u5f80 Nexus \u4f20\u7b2c\u4e09\u65b9 jar\uff0c\u6309\u8fd9\u4e2a\u987a\u5e8f\u8d70\u57fa\u672c\u4e0d\u4f1a\u7ffb\u8f66\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u5148\u89c4\u8303\u6587\u4ef6\u540d<\/strong>\uff1a<code>{artifactId}-{version}.jar<\/code> \/ <code>{artifactId}-{version}.pom<\/code>\uff0cpom \u4e00\u5f8b\u7528 <code>.pom<\/code> \u540e\u7f00\uff0c\u4e0d\u8981\u7528 <code>.xml<\/code><\/li>\n\n\n\n<li><strong>\u6838\u5bf9 pom \u5185\u90e8\u5750\u6807<\/strong>\u4e0e\u8868\u5355\u586b\u5199\u4e00\u81f4\uff0c\u5426\u5219 metadata \u4f1a\u4e0d\u5339\u914d<\/li>\n\n\n\n<li><strong>\u4e0d\u8981\u52fe Generate POM<\/strong>\uff08\u9664\u975e\u4f60\u786e\u5b9e\u6ca1\u6709 pom\uff09<\/li>\n\n\n\n<li><strong>\u4e0a\u4f20\u540e\u7acb\u523b\u7528 curl \u6821\u9a8c<\/strong>\uff0c\u4e24\u4e2a\u90fd 200 \u624d\u7b97\u53ef\u7528\uff1a<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -I \"...\/8.2.100-RELEASE\/iuap-ip-openapi-sdk-8.2.100-RELEASE.jar\"\ncurl -I \"...\/8.2.100-RELEASE\/iuap-ip-openapi-sdk-8.2.100-RELEASE.pom\"<\/code><\/pre>\n\n\n\n<ol start=\"5\" class=\"wp-block-list\">\n<li><strong>\u5220\u6389\u4ed3\u5e93\u91cc\u9057\u7559\u7684\u9519\u8bef\u547d\u540d asset<\/strong>\uff0c\u907f\u514d\u540e\u4eba\u8e29\u540c\u4e00\u4e2a\u5751<\/li>\n\n\n\n<li><strong>\u672c\u5730\u6e05\u7f13\u5b58 + <code>-U<\/code><\/strong> \u9a8c\u8bc1<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e03\u3001\u66f4\u63a8\u8350\u7684\u505a\u6cd5\uff1a\u7528\u547d\u4ee4\u884c\u4e0a\u4f20<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u7f51\u9875\u4e0a\u4f20\u7684\u5751\u5728\u4e8e<strong>\u6587\u4ef6\u540d\u4f1a\u5f71\u54cd\u7ed3\u679c<\/strong>\u3002<code>mvn deploy:deploy-file<\/code> \u5219\u5b8c\u5168\u4e0d\u770b\u4f60\u672c\u5730\u6587\u4ef6\u53eb\u4ec0\u4e48\uff0c\u4e00\u5f8b\u6309 GAV \u751f\u6210\u8def\u5f84\u548c\u6587\u4ef6\u540d\uff0c\u8fd8\u80fd\u6279\u91cf\u5904\u7406\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mvn deploy:deploy-file \\\n  -DgroupId=com.yonyou.iuap \\\n  -DartifactId=iuap-ip-openapi-sdk \\\n  -Dversion=8.2.100-RELEASE \\\n  -Dpackaging=jar \\\n  -Dfile=iuap-ip-openapi-sdk-8.2.100-RELEASE.jar \\\n  -DpomFile=iuap-ip-openapi-sdk-8.2.100-RELEASE.pom \\\n  -DrepositoryId=nexus-releases \\\n  -Durl=http:\/\/maven.puyiyun.com\/repository\/maven-releases\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u82e5\u786e\u5b9e\u6ca1\u6709 pom\uff0c\u53ef\u7528 <code>-DgeneratePom=true<\/code> \u8ba9 Maven \u751f\u6210\uff0c\u4f46\u751f\u6210\u7684 pom \u4e0d\u542b\u4f9d\u8d56\u58f0\u660e\uff0c\u4f20\u9012\u4f9d\u8d56\u4f1a\u4e22\u5931\uff0c<strong>\u80fd\u62ff\u5230\u539f\u59cb pom \u5c31\u5c3d\u91cf\u7528 <code>-DpomFile<\/code><\/strong>\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u516b\u3001\u4e00\u53e5\u8bdd\u603b\u7ed3<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4e0d\u662f\u4ed3\u5e93\u6ca1\u6709\u3001\u4e5f\u4e0d\u662f\u914d\u7f6e\u95ee\u9898\uff0c\u800c\u662f\u4e0a\u4f20\u65f6\u6587\u4ef6\u540d\u591a\u5e26\u4e86\u4e00\u6bb5 <code>RELEASE<\/code>\uff0c\u88ab Maven \u89e3\u6790\u6210\u4e86 classifier\uff0c\u5bfc\u81f4\u4e3b jar \u7f3a\u5931\u3002<\/strong> \u628a\u672c\u5730 jar\/pom \u91cd\u547d\u540d\u4e3a\u4e0e\u5750\u6807\u5b8c\u5168\u4e00\u81f4\u540e\u91cd\u65b0\u4e0a\u4f20\u5373\u53ef\uff1bpom \u6587\u4ef6\u540e\u7f00\u7528 <code>.pom<\/code> \u800c\u4e0d\u662f <code>.xml<\/code>\uff0c\u6216\u76f4\u63a5\u6539\u7528 <code>mvn deploy:deploy-file<\/code>\uff0c\u80fd\u4ece\u6839\u672c\u4e0a\u907f\u514d\u8fd9\u7c7b&#8221;\u6587\u4ef6\u540d\u51b3\u5b9a\u547d\u8fd0&#8221;\u7684\u5751\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u95ee\u9898\u73b0\u8c61 \u628a\u4e00\u4e2a\u7b2c\u4e09\u65b9 jar \u4e0a\u4f20\u5230\u516c\u53f8 Nexus \u79c1\u670d\u540e\uff0c\u672c\u5730\u7f16\u8bd1\u4e00\u76f4\u62a5\u9519\uff1a \u8be1\u5f02\u7684\u5730\u65b9\u5728\u4e8e\uff1a\u6d4f\u89c8\u5668 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[15],"tags":[97,98,99],"class_list":["post-652","post","type-post","status-publish","format-standard","hentry","category-15","tag-maven","tag-nexus","tag-present-but-unavailable"],"_links":{"self":[{"href":"https:\/\/www.wzh994.cn\/index.php?rest_route=\/wp\/v2\/posts\/652","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wzh994.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wzh994.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wzh994.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wzh994.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=652"}],"version-history":[{"count":7,"href":"https:\/\/www.wzh994.cn\/index.php?rest_route=\/wp\/v2\/posts\/652\/revisions"}],"predecessor-version":[{"id":663,"href":"https:\/\/www.wzh994.cn\/index.php?rest_route=\/wp\/v2\/posts\/652\/revisions\/663"}],"wp:attachment":[{"href":"https:\/\/www.wzh994.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wzh994.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wzh994.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}