| <?xml version="1.0" standalone="no"?> |
| <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> |
| <section id="getting.maven"> |
| <title>Getting Bundlor with Maven</title> |
| <para>Eclipse Virgo Bundlor can be obtained from a Maven repository.</para> |
| <orderedlist> |
| <listitem> |
| <para> |
| Add the Eclipse Virgo build and SpringSource Enterprise Bundle Repository resolvers to the <literal>pom.xml</literal> file |
| </para> |
| <programlisting language="xml"><repository> |
| <id>eclipse.virgo.build.bundles.@release.type@</id> |
| <name>Eclipse Virgo Build</name> |
| <url>http://build.eclipse.org/rt/virgo/maven/bundles/@release.type@</url> |
| </repository> |
| <repository> |
| <id>com.springsource.repository.bundles.external</id> |
| <name>SpringSource Enterprise Bundle Repository - External Bundle Releases</name> |
| <url>http://repository.springsource.com/maven/bundles/external</url> |
| </repository></programlisting> |
| </listitem> |
| <listitem> |
| <para> |
| Add a dependency to the <literal>pom.xml</literal> file |
| </para> |
| <programlisting language="xml"><dependencies> |
| <dependency> |
| <groupId>org.eclipse.virgo.bundlor</groupId> |
| <artifactId>org.eclipse.virgo.bundlor.maven</artifactId> |
| <version>@bundle.version@</version> |
| <scope>compile</scope> |
| </dependency> |
| </dependencies></programlisting> |
| </listitem> |
| </orderedlist> |
| </section> |