{"id":235,"date":"2020-09-26T20:09:40","date_gmt":"2020-09-26T12:09:40","guid":{"rendered":"https:\/\/blog.xbgit.cn\/?p=235"},"modified":"2020-09-26T20:09:40","modified_gmt":"2020-09-26T12:09:40","slug":"maven%e6%89%93%e5%8c%85jar%e8%ae%be%e7%bd%ae%e4%b8%bb%e7%a8%8b%e5%ba%8f%e5%85%a5%e5%8f%a3","status":"publish","type":"post","link":"https:\/\/blog.xbgit.cn\/index.php\/2020\/09\/26\/maven%e6%89%93%e5%8c%85jar%e8%ae%be%e7%bd%ae%e4%b8%bb%e7%a8%8b%e5%ba%8f%e5%85%a5%e5%8f%a3\/","title":{"rendered":"maven\u6253\u5305jar\u8bbe\u7f6e\u4e3b\u7a0b\u5e8f\u5165\u53e3"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u6700\u8fd1\u8c03\u8bd5\u7a0b\u5e8f\u51fa\u73b0\u4ee5\u4e0b\u9519\u8bef<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"86\" src=\"https:\/\/blog.xbgit.cn\/wp-content\/uploads\/2020\/09\/image.png\" alt=\"\" class=\"wp-image-238\" srcset=\"https:\/\/blog.xbgit.cn\/wp-content\/uploads\/2020\/09\/image.png 940w, https:\/\/blog.xbgit.cn\/wp-content\/uploads\/2020\/09\/image-300x27.png 300w, https:\/\/blog.xbgit.cn\/wp-content\/uploads\/2020\/09\/image-768x70.png 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u89e3\u51b3\u65b9\u6cd5:pom\u4e2d\u6307\u5b9a\u5982\u4e0b\u5165\u53e3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"xml\" class=\"language-xml\">                 &lt;plugin>\n                    &lt;groupId>org.apache.maven.plugins&lt;\/groupId>\n                    &lt;artifactId>maven-jar-plugin&lt;\/artifactId>\n                    &lt;version>3.0.2&lt;\/version>\n                    &lt;configuration>\n                        &lt;archive>\n                            &lt;manifest>\n                                &lt;addClasspath>true&lt;\/addClasspath>\n                                &lt;mainClass>com.test.App&lt;\/mainClass> &lt;!-- \u6b64\u5904\u4e3a\u4e3b\u5165\u53e3-->\n                            &lt;\/manifest>\n                        &lt;\/archive>\n                    &lt;\/configuration>\n                &lt;\/plugin><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u8c03\u8bd5\u7a0b\u5e8f\u51fa\u73b0\u4ee5\u4e0b\u9519\u8bef \u89e3\u51b3\u65b9&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,16],"tags":[31,33],"class_list":["post-235","post","type-post","status-publish","format-standard","hentry","category-java","category--java","tag-jar","tag-maven"],"_links":{"self":[{"href":"https:\/\/blog.xbgit.cn\/index.php\/wp-json\/wp\/v2\/posts\/235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.xbgit.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.xbgit.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.xbgit.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.xbgit.cn\/index.php\/wp-json\/wp\/v2\/comments?post=235"}],"version-history":[{"count":0,"href":"https:\/\/blog.xbgit.cn\/index.php\/wp-json\/wp\/v2\/posts\/235\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.xbgit.cn\/index.php\/wp-json\/wp\/v2\/media?parent=235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.xbgit.cn\/index.php\/wp-json\/wp\/v2\/categories?post=235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.xbgit.cn\/index.php\/wp-json\/wp\/v2\/tags?post=235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}