{"id":266779,"date":"2020-12-29T15:16:53","date_gmt":"2020-12-29T07:16:53","guid":{"rendered":"http:\/\/4563.org\/?p=266779"},"modified":"2020-12-29T15:16:53","modified_gmt":"2020-12-29T07:16:53","slug":"springboot-%e6%89%93%e5%8c%85%e6%8f%92%e4%bb%b6%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=266779","title":{"rendered":"springboot \u6253\u5305\u63d2\u4ef6\u95ee\u9898"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  springboot \u6253\u5305\u63d2\u4ef6\u95ee\u9898               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : liian2019 <\/span>  <span><i><\/i> 4<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u9ed8\u8ba4 springboot \u6253\u5305\u63d2\u4ef6\u4f1a\u6253\u51fa\u4e00\u4e2a\u53ef\u8fd0\u884c jar \u548c\u4e00\u4e2a\u53ef\u4f9d\u8d56 jar \u3002<br \/>\u73b0\u5728\u60f3\u8981\u53ef\u8fd0\u884c jar \u5305\u542b\u8d44\u6e90\u6587\u4ef6\uff0c\u800c\u53ef\u4f9d\u8d56 jar \u4e0d\u5305\u542b\u8d44\u6e90\u6587\u4ef6\u3002\u8fd9\u6837\u6709\u529e\u6cd5\u5b9e\u73b0\u5417      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>5<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4857217\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : qwerthhusn <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709\u4e2a\u7b28\u65b9\u6cd5\uff0c\u4e0d\u77e5\u53ef\u7528\u4e0d\u53ef\u7528\uff0c\u5f15\u5165 groovy plugin\uff0c\u7136\u540e\u5199 groovy \u811a\u672c\u5904\u7406 original jar \u5305<br \/>jar \u5305\u662f zip \u7684\u6253\u5305\u65b9\u5f0f\uff0c\u76f4\u63a5\u7528 zip \u7684\u65b9\u5f0f\u89e3\u538b\u5f00\uff0c\u53bb\u6389\u4e0d\u8981\u7684\u6587\u4ef6\uff0c\u518d\u538b\u7f29                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4857218\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : liian2019 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @qwerthhusn \u8c22\u8c22\u4f60\uff0c\u8fd9\u6837\u6709\u70b9\u9ebb\u70e6\u4e86\uff0c\u60f3\u770b\u770b\u80fd\u4e0d\u80fd\u76f4\u63a5\u901a\u8fc7 pom \u7684\u914d\u7f6e\u6765\u5b9e\u73b0                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4857219\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wolfie <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             &lt;build&gt; \u6254\u8fdb &lt;profiles&gt; \u91cc\u8bd5\u8bd5<\/p>\n<p>https:\/\/stackoverflow.com\/questions\/48598983\/making-a-maven-plugin-optional                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4857220\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : liian2019 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5df2\u627e\u5230\u89e3\u51b3\u65b9\u6848,\u8d34\u4e0a\u914d\u7f6e\u4f9b\u5927\u5bb6\u53c2\u8003<br \/>&lt;build&gt;<br \/> &lt;resources&gt;<br \/> &lt;resource&gt;<br \/> &lt;directory&gt;src\/main\/resources&lt;\/directory&gt;<br \/> &lt;filtering&gt;true&lt;\/filtering&gt;<br \/> &lt;excludes&gt;<br \/> &lt;exclude&gt;environment\/**&lt;\/exclude&gt;<br \/> &lt;exclude&gt;static\/**&lt;\/exclude&gt;<br \/> &lt;\/excludes&gt;<br \/> &lt;\/resource&gt;<br \/> &lt;resource&gt;<br \/> &lt;directory&gt;src\/main\/resources\/environment\/${environment}&lt;\/directory&gt;<br \/> &lt;filtering&gt;true&lt;\/filtering&gt;<br \/> &lt;\/resource&gt;<br \/> &lt;\/resources&gt;<br \/> &lt;plugins&gt;<br \/> &lt;plugin&gt;<br \/> &lt;artifactId&gt;maven-jar-plugin&lt;\/artifactId&gt;<br \/> &lt;executions&gt;<br \/> &lt;execution&gt;<br \/> &lt;id&gt;lib&lt;\/id&gt;<br \/> &lt;phase&gt;package&lt;\/phase&gt;<br \/> &lt;goals&gt;<br \/> &lt;goal&gt;jar&lt;\/goal&gt;<br \/> &lt;\/goals&gt;<br \/> &lt;configuration&gt;<br \/> &lt;classifier&gt;lib&lt;\/classifier&gt;<br \/> &lt;excludes&gt;<br \/> &lt;exclude&gt;*.yml&lt;\/exclude&gt;<br \/> &lt;exclude&gt;*.xml&lt;\/exclude&gt;<br \/> &lt;\/excludes&gt;<br \/> &lt;\/configuration&gt;<br \/> &lt;\/execution&gt;<br \/> &lt;\/executions&gt;<br \/> &lt;\/plugin&gt;<br \/> &lt;plugin&gt;<br \/> &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;<br \/> &lt;artifactId&gt;spring-boot-maven-plugin&lt;\/artifactId&gt;<br \/> &lt;configuration&gt;<br \/> &lt;excludeGroupIds&gt;org.projectlombok&lt;\/excludeGroupIds&gt;<br \/> &lt;\/configuration&gt;<br \/> &lt;\/plugin&gt;<br \/> &lt;\/plugins&gt;<br \/> &lt;\/build&gt;<\/p>\n<p>\u7b2c\u4e09\u65b9\u9879\u76ee\u4f9d\u8d56\u65f6\u9700\u8981\u52a0\u5165 classifier \u6807\u7b7e<br \/>&lt;dependency&gt;<br \/> &lt;groupId&gt;com.bangdao&lt;\/groupId&gt;<br \/> &lt;artifactId&gt;mkplat-admin&lt;\/artifactId&gt;<br \/> &lt;version&gt;${mkplat.version}&lt;\/version&gt;<br \/> &lt;classifier&gt;lib&lt;\/classifier&gt;<br \/> &lt;\/dependency&gt;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4857221\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : liian2019 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @wolfie \u8c22\u8c22\u4f60\uff0c\u901a\u8fc7 maven-jar-plugin \u89e3\u51b3\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>springboot \u6253\u5305\u63d2\u4ef6\u95ee\u9898&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/266779"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=266779"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/266779\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=266779"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=266779"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=266779"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}