<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Werx Limited &#187; development enviroment</title> <atom:link href="http://werxltd.com/wp/tag/development-enviroment/feed/" rel="self" type="application/rss+xml" /><link>http://werxltd.com/wp</link> <description>We make IT work.</description> <lastBuildDate>Mon, 23 Jan 2012 23:03:59 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Getting Maven and Eclipse to play together</title><link>http://werxltd.com/wp/2009/12/24/getting-maven-and-eclipse-to-play-together/</link> <comments>http://werxltd.com/wp/2009/12/24/getting-maven-and-eclipse-to-play-together/#comments</comments> <pubDate>Thu, 24 Dec 2009 12:00:35 +0000</pubDate> <dc:creator>wes</dc:creator> <category><![CDATA[java]]></category> <category><![CDATA[software development]]></category> <category><![CDATA[development enviroment]]></category> <category><![CDATA[eclipse]]></category> <category><![CDATA[maven]]></category> <category><![CDATA[project management]]></category><guid
isPermaLink="false">http://werxltd.com/wp/?p=307</guid> <description><![CDATA[I love using Maven for dependency management and code portability, and I love Eclipse as an enviroment to develop in. However, for the longest time I had trouble getting the two to play well together until I discovered the following commands that made combining the two much easier. To add Maven repositories to your Eclipse [...]]]></description> <content:encoded><![CDATA[<p>I love using <a
href="http://maven.apache.org/">Maven</a> for dependency management and code portability, and I love <a
href="http://www.eclipse.org/">Eclipse</a> as an enviroment to develop in. However, for the longest time I had trouble getting the two to play well together until I discovered the following commands that made combining the two much easier.</p><p>To add Maven repositories to your Eclipse workspace (for code completion and syntax verification) run the following command:</p><pre class="brush:bash">mvn -Declipse.workspace=/path/to/workspace eclipse:add-maven-repo</pre><p>To add an Eclipse .project file to your project run the following command:</p><pre class="brush:bash">mvn eclipse:eclipse</pre><p>That&#8217;s it! You should now be able to import the project into Eclispe. I haven&#8217;t figured out how to build Maven projects in Eclipse yet<sup><a
href="http://werxltd.com/wp/2009/12/24/getting-maven-and-eclipse-to-play-together/#footnote_0_307" id="identifier_0_307" class="footnote-link footnote-identifier-link" title="I&amp;#8217;ve seen the plugins but haven&amp;#8217;t gotten any to work well enough to rely on.">1</a></sup> so building and testing your code still requires you to use Maven via the command line.</p><p>You&#8217;ll also need to re-create the Eclipse project file if you add any dependencies in order for them to be picked up properly in Eclipse.</p><p>Need more? <a
href="http://m2eclipse.sonatype.org/">Check out this site</a> for more on Maven integration in Eclipse</p><div
class="betterrelated none"><p>No related content found.</p></div><ol
class="footnotes"><li
id="footnote_0_307" class="footnote">I&#8217;ve seen the plugins but haven&#8217;t gotten any to work well enough to rely on.</li></ol><p><!--[if IE]><iframe
frameborder="0" allowTransparency="true" class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwerxltd.com%2Fwp%2F2009%2F12%2F24%2Fgetting-maven-and-eclipse-to-play-together%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20&amp;ref=addtoany" scrolling="no" style="border:none;overflow:hidden;width:90px;height:21px"></iframe><![endif]--><!--[if !IE]><!--><iframe
class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwerxltd.com%2Fwp%2F2009%2F12%2F24%2Fgetting-maven-and-eclipse-to-play-together%2F&amp;layout=button_count&amp;show_faces=false&amp;width=75&amp;action=like&amp;colorscheme=light&amp;height=20&amp;ref=addtoany" scrolling="no" style="border:none;overflow:hidden;width:90px;height:21px"></iframe><!--<![endif]--><!--[if IE]><iframe
frameborder="0" allowTransparency="true" class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fwerxltd.com%2Fwp%2F2009%2F12%2F24%2Fgetting-maven-and-eclipse-to-play-together%2F&amp;counturl=http%3A%2F%2Fwerxltd.com%2Fwp%2F2009%2F12%2F24%2Fgetting-maven-and-eclipse-to-play-together%2F&amp;count=none&amp;text=Getting%20Maven%20and%20Eclipse%20to%20play%20together" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe
class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fwerxltd.com%2Fwp%2F2009%2F12%2F24%2Fgetting-maven-and-eclipse-to-play-together%2F&amp;counturl=http%3A%2F%2Fwerxltd.com%2Fwp%2F2009%2F12%2F24%2Fgetting-maven-and-eclipse-to-play-together%2F&amp;count=none&amp;text=Getting%20Maven%20and%20Eclipse%20to%20play%20together" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><!--<![endif]--><!--[if IE]><iframe
frameborder="0" allowTransparency="true" class="addtoany_special_service google_plusone" src="https://plusone.google.com/u/0/_/%2B1/fastbutton?url=http%3A%2F%2Fwerxltd.com%2Fwp%2F2009%2F12%2F24%2Fgetting-maven-and-eclipse-to-play-together%2F&amp;size=medium&amp;count=false" scrolling="no" style="border:none;overflow:hidden;width:32px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe
class="addtoany_special_service google_plusone" src="https://plusone.google.com/u/0/_/%2B1/fastbutton?url=http%3A%2F%2Fwerxltd.com%2Fwp%2F2009%2F12%2F24%2Fgetting-maven-and-eclipse-to-play-together%2F&amp;size=medium&amp;count=false" scrolling="no" style="border:none;overflow:hidden;width:32px;height:20px"></iframe><!--<![endif]--><a
class="a2a_button_linkedin" href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fwerxltd.com%2Fwp%2F2009%2F12%2F24%2Fgetting-maven-and-eclipse-to-play-together%2F&amp;linkname=Getting%20Maven%20and%20Eclipse%20to%20play%20together" title="LinkedIn" rel="nofollow" target="_blank"><img
src="http://werxltd.com/wp/wp-content/plugins/add-to-any/icons/linkedin.png?9d7bd4" width="16" height="16" alt="LinkedIn"/></a><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwerxltd.com%2Fwp%2F2009%2F12%2F24%2Fgetting-maven-and-eclipse-to-play-together%2F&amp;title=Getting%20Maven%20and%20Eclipse%20to%20play%20together" id="wpa2a_2">Share/Save</a></p>]]></content:encoded> <wfw:commentRss>http://werxltd.com/wp/2009/12/24/getting-maven-and-eclipse-to-play-together/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using apc
Database Caching 1/19 queries in 0.204 seconds using apc
Object Caching 330/372 objects using apc

Served from: werxltd.com @ 2012-02-08 14:58:48 -->
