{"id":1242,"date":"2014-09-03T11:21:24","date_gmt":"2014-09-03T09:21:24","guid":{"rendered":"http:\/\/blog.rabahi.net\/?page_id=1242"},"modified":"2014-09-03T11:21:24","modified_gmt":"2014-09-03T09:21:24","slug":"maven-dependency-plugin","status":"publish","type":"page","link":"https:\/\/blog.rabahi.net\/?page_id=1242","title":{"rendered":"maven-dependency-plugin"},"content":{"rendered":"<p>When you create an artifact, you can copy all your artifact dependencies in a directory.<br \/>\nTo do that, you have to add the following plugin in your pom.xml :<\/p>\n<pre lang=\"xml\">\r\n\r\n<build>\r\n  <plugins>\r\n    (...)\r\n    \r\n    <plugin>\r\n      <artifactId>maven-dependency-plugin<\/artifactId>\r\n        <executions>\r\n          <execution>\r\n            <phase>package<\/phase>\r\n            <goals>\r\n              <goal>copy-dependencies<\/goal>\r\n            <\/goals>\r\n            <configuration>\r\n              <outputDirectory>${project.build.directory}\/lib<\/outputDirectory>\r\n            <\/configuration>\r\n          <\/execution>\r\n        <\/executions>\r\n    <\/plugin>\r\n\r\n    (...)\r\n        \r\n  <\/plugins>\r\n<\/build>\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>When you create an artifact, you can copy all your artifact dependencies in a directory. To do that, you have to add the following plugin in your pom.xml : (&#8230;) maven-dependency-plugin package copy-dependencies ${project.build.directory}\/lib (&#8230;)<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":884,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-1242","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/pages\/1242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1242"}],"version-history":[{"count":2,"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/pages\/1242\/revisions"}],"predecessor-version":[{"id":1244,"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/pages\/1242\/revisions\/1244"}],"up":[{"embeddable":true,"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/pages\/884"}],"wp:attachment":[{"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}