| <html><head> |
| <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
| <title>2.3 Getting Bundlor with Maven</title><link rel="stylesheet" href="css/stylesheet.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.74.0"><link rel="home" href="index.html" title="Bundlor User Guide"><link rel="up" href="ch02.html" title="2. Getting Bundlor"><link rel="prev" href="ch02s02.html" title="2.2 Getting Bundlor with Ivy"><link rel="next" href="ch03.html" title="3. Quickstart"><!--Begin Google Analytics code--><script type="text/javascript"> |
| var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); |
| document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); |
| </script><script type="text/javascript"> |
| var pageTracker = _gat._getTracker("UA-2728886-3"); |
| pageTracker._setDomainName("none"); |
| pageTracker._setAllowLinker(true); |
| pageTracker._trackPageview(); |
| </script><!--End Google Analytics code--></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">2.3 Getting Bundlor with Maven</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch02s02.html">Prev</a> </td><th width="60%" align="center">2. Getting Bundlor</th><td width="20%" align="right"> <a accesskey="n" href="ch03.html">Next</a></td></tr></table><hr></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="getting.maven"></a>2.3 Getting Bundlor with Maven</h2></div></div></div><p>Eclipse Virgo Bundlor can be obtained from a Maven repository.</p><div class="orderedlist"><ol type="1"><li><p> |
| Add the Eclipse Virgo build and SpringSource Enterprise Bundle Repository resolvers to the <code class="literal">pom.xml</code> file |
| </p><pre class="programlisting"><<span class="hl-tag">repository</span>> |
| <<span class="hl-tag">id</span>>eclipse.virgo.build.bundles.release<<span class="hl-tag">/id</span>> |
| <<span class="hl-tag">name</span>>Eclipse Virgo Build<<span class="hl-tag">/name</span>> |
| <<span class="hl-tag">url</span>>http://build.eclipse.org/rt/virgo/maven/bundles/release<<span class="hl-tag">/url</span>> |
| <<span class="hl-tag">/repository</span>> |
| <<span class="hl-tag">repository</span>> |
| <<span class="hl-tag">id</span>>com.springsource.repository.bundles.external<<span class="hl-tag">/id</span>> |
| <<span class="hl-tag">name</span>>SpringSource Enterprise Bundle Repository - External Bundle Releases<<span class="hl-tag">/name</span>> |
| <<span class="hl-tag">url</span>>http://repository.springsource.com/maven/bundles/external<<span class="hl-tag">/url</span>> |
| <<span class="hl-tag">/repository</span>></pre></li><li><p> |
| Add a dependency to the <code class="literal">pom.xml</code> file |
| </p><pre class="programlisting"><<span class="hl-tag">dependencies</span>> |
| <<span class="hl-tag">dependency</span>> |
| <<span class="hl-tag">groupId</span>>org.eclipse.virgo.bundlor<<span class="hl-tag">/groupId</span>> |
| <<span class="hl-tag">artifactId</span>>org.eclipse.virgo.bundlor.maven<<span class="hl-tag">/artifactId</span>> |
| <<span class="hl-tag">version</span>>1.1.1.RELEASE<<span class="hl-tag">/version</span>> |
| <<span class="hl-tag">scope</span>>compile<<span class="hl-tag">/scope</span>> |
| <<span class="hl-tag">/dependency</span>> |
| <<span class="hl-tag">/dependencies</span>></pre></li></ol></div></div><!--Begin LoopFuse code--><script src="http://loopfuse.net/webrecorder/js/listen.js" type="text/javascript"></script><script type="text/javascript"> |
| _lf_cid = "LF_48be82fa"; |
| _lf_remora(); |
| </script><!--End LoopFuse code--><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch02s02.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch02.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch03.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">2.2 Getting Bundlor with Ivy </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 3. Quickstart</td></tr></table></div></body></html> |