3.3 Apache Maven Quickstart

The Maven plugin allows Bundlor to be run from inside any Maven project.

  1. Add the SpringSource Enterprise Bundle Repository to the pom.xml file

    <pluginRepositories>
      <pluginRepository>
        <id>com.springsource.repository.bundles.release</id>
        <name>SpringSource Enterprise Bundle Repository</name>
        <url>http://repository.springsource.com/maven/bundles/release</url>
      </pluginRepository>
      ...
    </pluginRepositories>
  2. Use the bundlor plugin in the pom.xml file. See Section 4.3, “Apache Maven Usage” for details about the parameters of the plugin.

    <build>
      <plugins>
        <plugin>
          <groupId>com.springsource.bundlor</groupId>
          <artifactId>com.springsource.bundlor.maven</artifactId>
          <version>1.0.0.RELEASE</version>
          <executions>
            <execution>
              <id>bundlor</id>
              <goals>
                <goal>bundlor</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
        ...
      </plugins>
      ...
    </build>