| <html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Apache Maven Quickstart</title><meta content="DocBook XSL Stylesheets V1.76.0" name="generator"><link rel="home" href="index.html" title="Bundlor User Guide"><link rel="up" href="ch03.html" title="Chapter 3. Quickstart"><link rel="prev" href="ch03s02.html" title="Apache ANT Quickstart"><link rel="next" href="ch04.html" title="Chapter 4. Usage"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table summary="Navigation header" width="100%"><tr><td align="left" width="20%"><a accesskey="p" href="ch03s02.html">Prev</a> </td><th align="center" width="60%"> </th><td align="right" width="20%"> <a accesskey="n" href="ch04.html">Next</a></td></tr></table><hr></div><div class="section" title="Apache Maven Quickstart"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="quickstart.maven"></a>Apache Maven Quickstart</h2></div></div></div><p>The Maven plugin allows Bundlor to be run from inside any Maven project.</p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>Add the Eclipse Virgo build and SpringSource Enterprise Bundle Repository to the <code class="filename">pom.xml</code> file</p><pre class="programlisting"><pluginRepositories> |
| <pluginRepository> |
| <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> |
| </pluginRepository> |
| <pluginRepository> |
| <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> |
| </pluginRepository> |
| ... |
| </pluginRepositories></pre></li><li class="listitem"><p> |
| Use the <code class="literal">bundlor</code> plugin in the <code class="filename">pom.xml</code> file. See |
| <a class="xref" href="ch04s03.html" title="Apache Maven Usage">Apache Maven Usage</a> for details about the parameters of the plugin. |
| </p><pre class="programlisting"><build> |
| <plugins> |
| <plugin> |
| <groupId>org.eclipse.virgo.bundlor</groupId> |
| <artifactId>org.eclipse.virgo.bundlor.maven</artifactId> |
| <version>3.5.0</version> |
| <executions> |
| <execution> |
| <id>bundlor</id> |
| <goals> |
| <goal>bundlor</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <version>2.4</version> |
| <configuration> |
| <archive> |
| <manifestFile> |
| target/classes/META-INF/MANIFEST.MF |
| </manifestFile> |
| </archive> |
| </configuration> |
| </plugin> |
| ... |
| </plugins> |
| ... |
| </build></pre></li></ol></div></div><div class="navfooter"><hr><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="ch03s02.html">Prev</a> </td><td align="center" width="20%"><a accesskey="u" href="ch03.html">Up</a></td><td align="right" width="40%"> <a accesskey="n" href="ch04.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%"> </td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%"> </td></tr></table></div></body></html> |