{"id":4703,"date":"2021-12-20T21:55:36","date_gmt":"2021-12-20T13:55:36","guid":{"rendered":"http:\/\/123.57.164.21\/?p=4703"},"modified":"2021-12-20T22:11:23","modified_gmt":"2021-12-20T14:11:23","slug":"spring-boot-maven-%e6%89%93%e5%8c%85%e5%8f%af%e6%89%a7%e8%a1%8cjar%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/92it.top\/?p=4703","title":{"rendered":"Spring Boot Maven \u6253\u5305\u53ef\u6267\u884cJar\u6587\u4ef6"},"content":{"rendered":"\n<ul><li>Maven pom.xml \u5fc5\u987b\u5305\u542b<\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;packaging>jar&lt;\/packaging><\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">    &lt;build>\n\t\t&lt;plugins>\n\t\t\t&lt;plugin>\n\t\t\t\t&lt;groupId>org.springframework.boot&lt;\/groupId>\n\t\t\t\t&lt;artifactId>spring-boot-maven-plugin&lt;\/artifactId>\n\t\t\t\t&lt;configuration>\n\t\t\t\t\t&lt;fork>true&lt;\/fork>\n\t\t\t\t&lt;\/configuration>\n\t\t\t&lt;\/plugin>\n\t\t&lt;\/plugins>\n\t&lt;\/build>\n=<\/pre>\n\n\n\n<ul><li>\u5b8c\u6574pox.xml<\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;project xmlns=\"http:\/\/maven.apache.org\/POM\/4.0.0\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"\n\txsi:schemaLocation=\"http:\/\/maven.apache.org\/POM\/4.0.0 http:\/\/maven.apache.org\/xsd\/maven-4.0.0.xsd\">\n\t&lt;modelVersion>4.0.0&lt;\/modelVersion>\n\t\n\t&lt;groupId>com.feedback&lt;\/groupId>\n\t&lt;artifactId>feedback-service&lt;\/artifactId>\n\t&lt;version>0.1.0&lt;\/version>\n\t&lt;packaging>jar&lt;\/packaging>\n \n\t&lt;properties>\n        &lt;java.version>1.8&lt;\/java.version>\n    &lt;\/properties>\n    \n\t&lt;parent>\n        &lt;groupId>org.springframework.boot&lt;\/groupId>\n        &lt;artifactId>spring-boot-starter-parent&lt;\/artifactId>\n        &lt;version>1.3.0.RELEASE&lt;\/version>\n    &lt;\/parent>\n    \n    &lt;dependencies>\n    \t&lt;!-- spring boot -->\n        &lt;dependency>\n            &lt;groupId>org.springframework.boot&lt;\/groupId>\n            &lt;artifactId>spring-boot-starter-web&lt;\/artifactId>\n        &lt;\/dependency>\n        &lt;dependency>\n\t\t\t&lt;groupId>org.springframework.boot&lt;\/groupId>\n\t\t\t&lt;artifactId>spring-boot-starter-data-jpa&lt;\/artifactId>\n\t\t&lt;\/dependency>\n\t\t\n\t\t&lt;!-- mysql\u6570\u636e\u5e93 -->\n\t\t&lt;dependency>\n\t\t\t&lt;groupId>mysql&lt;\/groupId>\n\t\t\t&lt;artifactId>mysql-connector-java&lt;\/artifactId>\n\t\t&lt;\/dependency>\n\t\t\n\t\t&lt;!-- commons-lang -->\n\t\t&lt;dependency>\n\t\t    &lt;groupId>commons-lang&lt;\/groupId>\n\t\t    &lt;artifactId>commons-lang&lt;\/artifactId>\n\t\t    &lt;version>2.6&lt;\/version>\n\t\t&lt;\/dependency>\n    &lt;\/dependencies>\n    \n    &lt;!-- jar -->\n    &lt;build>\n\t\t&lt;plugins>\n\t\t\t&lt;plugin>\n\t\t\t\t&lt;groupId>org.springframework.boot&lt;\/groupId>\n\t\t\t\t&lt;artifactId>spring-boot-maven-plugin&lt;\/artifactId>\n\t\t\t\t&lt;configuration>\n\t\t\t\t\t&lt;fork>true&lt;\/fork>\n\t\t\t\t&lt;\/configuration>\n\t\t\t&lt;\/plugin>\n\t\t&lt;\/plugins>\n\t&lt;\/build>\n&lt;\/project>\n<\/pre>\n\n\n\n<ul><li>\u8fdb\u5165\u5230\u9879\u76ee\u76ee\u5f55\u4e0b\u8fd0\u884c\uff1a<strong>mvn clean package<\/strong><\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2021\/12\/image-244.png\" alt=\"\" class=\"wp-image-4704\" width=\"569\" height=\"75\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2021\/12\/image-244.png 788w, https:\/\/92it.top\/wp-content\/uploads\/2021\/12\/image-244-300x40.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2021\/12\/image-244-768x101.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2021\/12\/image-244-230x30.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2021\/12\/image-244-350x46.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2021\/12\/image-244-480x63.png 480w\" sizes=\"(max-width: 569px) 100vw, 569px\" \/><\/figure><\/div>\n\n\n\n<ul><li>\u4f1a\u5728\u9879\u76ee\u76ee\u5f55\u4e0btarget\u6587\u4ef6\u5939\u4e2d\u751f\u6210jar\uff0c\u5982\u4e0a\u751f\u6210\u7684jar\u6587\u4ef6\u5728\uff1aD:\\programmer\\eclipse\\feedback-service\\target &nbsp;\u6587\u4ef6\u5939\u4e2d<\/li><\/ul>\n\n\n\n<ul><li>java -jar \u8fd0\u884cjar\u5305 \u5373\u53ef<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Maven pom.xml \u5fc5\u987b\u5305\u542b \u5b8c\u6574pox.xml \u8fdb\u5165\u5230\u9879\u76ee\u76ee\u5f55\u4e0b\u8fd0\u884c\uff1amvn clean packa [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"_links":{"self":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/4703"}],"collection":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4703"}],"version-history":[{"count":2,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/4703\/revisions"}],"predecessor-version":[{"id":4706,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/4703\/revisions\/4706"}],"wp:attachment":[{"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}