{"id":1638,"date":"2011-04-15T05:29:47","date_gmt":"2011-04-15T05:29:47","guid":{"rendered":"http:\/\/www.msinterdev.org\/wp\/2011\/04\/15\/maven%eb%a5%bc-%ed%99%9c%ec%9a%a9%ed%95%98%ec%97%ac-%ec%9d%98-%ec%8b%a4%ed%96%89%ea%b0%80%eb%8a%a5%ed%95%9c-jar-executable-jar%eb%a7%8c%eb%93%a4%ea%b8%b0\/"},"modified":"2011-04-15T05:29:47","modified_gmt":"2011-04-15T05:29:47","slug":"maven%eb%a5%bc-%ed%99%9c%ec%9a%a9%ed%95%98%ec%97%ac-%ec%9d%98-%ec%8b%a4%ed%96%89%ea%b0%80%eb%8a%a5%ed%95%9c-jar-executable-jar%eb%a7%8c%eb%93%a4%ea%b8%b0","status":"publish","type":"post","link":"http:\/\/www.msinterdev.org\/wp\/2011\/04\/15\/maven%eb%a5%bc-%ed%99%9c%ec%9a%a9%ed%95%98%ec%97%ac-%ec%9d%98-%ec%8b%a4%ed%96%89%ea%b0%80%eb%8a%a5%ed%95%9c-jar-executable-jar%eb%a7%8c%eb%93%a4%ea%b8%b0\/","title":{"rendered":"maven\ub97c \ud65c\uc6a9\ud558\uc5ec \uc758 \uc2e4\ud589\uac00\ub2a5\ud55c jar (executable jar)\ub9cc\ub4e4\uae30"},"content":{"rendered":"<p>\uc544\ub798\ub294 \uc81c\ubaa9\uacfc \uac19\uc740 \uc77c\uc744 \ud558\uae30 \uc704\ud574 \uac80\uc0c9\ud558\ub358 \uc911 \ubc1c\uacac\ud55c \ube14\ub85c\uadf8\uc758 \uae00 \uc785\ub2c8\ub2e4. <\/p>\n<p><strong>[<\/strong><a style=\"font-weight: bold;\" href=\"http:\/\/blog.naver.com\/qola\" target=\"_blank\" rel=\"noopener\">http:\/\/blog.naver.com\/qola<\/a><strong>]<\/strong><\/p>\n<p>\uc704\uc758 \ube14\ub85c\uadf8\uc5d0\uc11c \ucc38\uc870 \ud558\uc600\uc2b5\ub2c8\ub2e4. <\/p>\n<p>============================================================================================================<\/p>\n<p>maven-shade-plugin \uc744 \uc0ac\uc6a9\ud558\uba74 \ud504\ub85c\uc81d\ud2b8\uc5d0 \ud3ec\ud568\ub41c \ubaa8\ub4e0 dependency \ub97c \ud3ec\ud568\ud574\uc11c <\/p>\n<p>\ub2e8 \ud558\ub098\uc758 jar \ud30c\uc77c\ub85c \ud328\ud0a4\uc9c0 \ud574\uc8fc\ub294\ub370 spring \uad00\ub828 dependency\uac00 \uc5ec\ub7ec\uac1c \uc788\uc744 \uacbd\uc6b0\uc5d4 <\/p>\n<p>META-INF \uc548\uc758 spring.handlers \ub791 spring.shcemas \ud30c\uc77c\uc744 \ub36e\uc5b4 \uc368\ubc84\ub9b0\ub2e4. -_-;;<\/p>\n<p><\/p>\n<p>springFramework \uc758 applicationContext.xml \uc5d0\uc11c springBatch \uad00\ub828 xml \uc744 import \ud55c\ub2e4\uac70\ub098 \ud560\ub54c<\/p>\n<p>namespace \ub4f1\uc744 \ucc3e\uc9c0 \ubabb\ud574 xml \ud30c\uc2f1 \uc5d0\ub7ec\uac00 \ub09c\ub2e4\ub294 &#8230; <\/p>\n<p><\/p>\n<p>maven-shade-plugin \uc744 \uc4f8\ub54c\ub294 \ubc18\ub4dc\uc2dc \uc544\ub798\uc640 \uac19\uc774 AppendingTranseform\uc744 \uc9c0\uc815\ud574 \uc8fc\uc790.<\/p>\n<p><\/p>\n<p><span class=\"code-tag\">&lt;plugin&gt;<\/span><br \/>&nbsp; &nbsp; <span class=\"code-tag\">&lt;groupId&gt;<\/span>org.apache.maven.plugins<span class=\"code-tag\">&lt;\/groupId&gt;<\/span><br \/>&nbsp; &nbsp; <span class=\"code-tag\">&lt;artifactId&gt;<\/span>maven-shade-plugin<span class=\"code-tag\">&lt;\/artifactId&gt;<\/span><br \/>&nbsp; &nbsp; <span class=\"code-tag\">&lt;executions&gt;<\/span><br \/>&nbsp; &nbsp; &nbsp; &nbsp; <span class=\"code-tag\">&lt;execution&gt;<\/span><br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class=\"code-tag\">&lt;phase&gt;<\/span>package<span class=\"code-tag\">&lt;\/phase&gt;<\/span><br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class=\"code-tag\">&lt;goals&gt;<\/span><br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class=\"code-tag\">&lt;goal&gt;<\/span>shade<span class=\"code-tag\">&lt;\/goal&gt;<\/span><br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class=\"code-tag\">&lt;\/goals&gt;<\/span><br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class=\"code-tag\">&lt;configuration&gt;<\/span><br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class=\"code-tag\">&lt;transformers&gt;<\/span><br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class=\"code-tag\">&lt;transformer implementation=<span class=\"code-quote\">&#8220;org.apache.maven.plugins.shade.resource.AppendingTransformer&#8221;<\/span>&gt;<\/span><br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <strong><font color=\"#ff0000\"><span class=\"code-tag\">&lt;resource&gt;<\/span>META-INF\/spring.handlers<span class=\"code-tag\">&lt;\/resource&gt;<\/span><br \/><\/font><\/strong>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class=\"code-tag\">&lt;\/transformer&gt;<\/span><br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class=\"code-tag\">&lt;transformer implementation=<span class=\"code-quote\">&#8220;org.apache.maven.plugins.shade.resource.AppendingTransformer&#8221;<\/span>&gt;<\/span><br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <strong><font color=\"#ff0000\"><span class=\"code-tag\">&lt;resource&gt;<\/span>META-INF\/spring.schemas<span class=\"code-tag\">&lt;\/resource&gt;<\/span><br \/><\/font><\/strong>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class=\"code-tag\">&lt;\/transformer&gt;<\/span><br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class=\"code-tag\">&lt;\/transformers&gt;<\/span><br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class=\"code-tag\">&lt;\/configuration&gt;<\/span><br \/>&nbsp; &nbsp; &nbsp; &nbsp; <span class=\"code-tag\">&lt;\/execution&gt;<\/span><br \/>&nbsp; &nbsp; <span class=\"code-tag\">&lt;\/executions&gt;<\/span><br \/><span class=\"code-tag\">&lt;\/plugin&gt;<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc544\ub798\ub294 \uc81c\ubaa9\uacfc \uac19\uc740 \uc77c\uc744 \ud558\uae30 \uc704\ud574 \uac80\uc0c9\ud558\ub358 \uc911 \ubc1c\uacac\ud55c \ube14\ub85c\uadf8\uc758 \uae00 \uc785\ub2c8\ub2e4. [http:\/\/blog.naver.com\/qola] \uc704\uc758 \ube14\ub85c\uadf8\uc5d0\uc11c \ucc38\uc870 \ud558\uc600\uc2b5\ub2c8\ub2e4. ============================================================================================================ maven-shade-plugin \uc744 \uc0ac\uc6a9\ud558\uba74 \ud504\ub85c\uc81d\ud2b8\uc5d0 \ud3ec\ud568\ub41c \ubaa8\ub4e0 dependency \ub97c \ud3ec\ud568\ud574\uc11c \ub2e8 \ud558\ub098\uc758 jar \ud30c\uc77c\ub85c \ud328\ud0a4\uc9c0 \ud574\uc8fc\ub294\ub370 spring \uad00\ub828 dependency\uac00 \uc5ec\ub7ec\uac1c \uc788\uc744 \uacbd\uc6b0\uc5d4 META-INF \uc548\uc758 spring.handlers \ub791 spring.shcemas \ud30c\uc77c\uc744 \ub36e\uc5b4 \uc368\ubc84\ub9b0\ub2e4. -_-;; springFramework \uc758 applicationContext.xml \uc5d0\uc11c springBatch \uad00\ub828 xml [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2931,649,995,2932,2933,2934],"class_list":["post-1638","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-executable-jar","tag-jar","tag-maven","tag-maven-package","tag-2933","tag---jar"],"_links":{"self":[{"href":"http:\/\/www.msinterdev.org\/wp\/wp-json\/wp\/v2\/posts\/1638","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.msinterdev.org\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.msinterdev.org\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.msinterdev.org\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.msinterdev.org\/wp\/wp-json\/wp\/v2\/comments?post=1638"}],"version-history":[{"count":0,"href":"http:\/\/www.msinterdev.org\/wp\/wp-json\/wp\/v2\/posts\/1638\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.msinterdev.org\/wp\/wp-json\/wp\/v2\/media?parent=1638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.msinterdev.org\/wp\/wp-json\/wp\/v2\/categories?post=1638"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.msinterdev.org\/wp\/wp-json\/wp\/v2\/tags?post=1638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}