| <?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="quickstart.maven"> |
| <title>Apache Maven Quickstart</title> |
| <para>The Maven plugin allows Bundlor to be run from inside any Maven project.</para> |
| <orderedlist> |
| <listitem> |
| <para>Add the Eclipse Virgo build and SpringSource Enterprise Bundle Repository to the <filename>pom.xml</filename> file</para> |
| <programlisting language="xml"><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></programlisting> |
| </listitem> |
| <listitem> |
| <para> |
| Use the <literal>bundlor</literal> plugin in the <filename>pom.xml</filename> file. See |
| <xref linkend="usage.maven"/> for details about the parameters of the plugin. |
| </para> |
| <programlisting language="xml"><build> |
| <plugins> |
| <plugin> |
| <groupId>org.eclipse.virgo.bundlor</groupId> |
| <artifactId>org.eclipse.virgo.bundlor.maven</artifactId> |
| <version>@bundle.version@</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></programlisting> |
| </listitem> |
| </orderedlist> |
| </section> |