{"id":824,"date":"2013-12-10T15:14:25","date_gmt":"2013-12-10T22:14:25","guid":{"rendered":"http:\/\/10kdev.net\/?p=824"},"modified":"2013-12-10T15:15:07","modified_gmt":"2013-12-10T22:15:07","slug":"eclipse-different-maven-settings-xml","status":"publish","type":"post","link":"http:\/\/10kdev.net\/?p=824","title":{"rendered":"Eclipse: Different Maven settings.xml"},"content":{"rendered":"<p>Well it happened &#8212; a third party project team decided they&#8217;d configure a complicated <a href=\"http:\/\/maven.apache.org\/settings.htmlhttp:\/\/\">settings.xml<\/a> file, which resides in the .m2 folder on your local.\u00a0 But I already have projects that don&#8217;t like what they wrote in that file, so I had to create two:<\/p>\n<ul>\n<li>settings-common.xml for our projects<\/li>\n<li>settings-thirdparty.xml for their projects<\/li>\n<\/ul>\n<p>Now when I open a workspace, I just configure the Maven plugin in Eclipse to point at the correct settings file:<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" alt=\"\" src=\"http:\/\/10kdev.net\/wp-content\/uploads\/2013\/12\/f26ec5aab92b315aae7cb8380e3e2298.png\" width=\"507\" height=\"453\" \/><\/p>\n<p>Of course, to run from the command line you should specify the proper settings file as a parameter:<\/p>\n<pre><code>C:\\&lt;pom directory&gt; mvn install --settings c:\\User\\.m2\\settings-common.xml<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Well it happened &#8212; a third party project team decided they&#8217;d configure a complicated settings.xml file, which resides in the .m2 folder on your local.\u00a0 But I already have projects that don&#8217;t like what they wrote in that file, so I had to create two: settings-common.xml for our projects settings-thirdparty.xml for their projects Now when [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts\/824"}],"collection":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=824"}],"version-history":[{"count":3,"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts\/824\/revisions"}],"predecessor-version":[{"id":827,"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts\/824\/revisions\/827"}],"wp:attachment":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=824"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}