Example 1

A simple example with two Bundle-Resources

<?xml version="1.0" encoding="UTF-8"?>
<project>

  ...
  
  <packaging>deployment-package</packaging>
  
  ...
  
  <build>
    <plugins>
      <plugin>
        <groupId>net.sourceforge.mvn-dp-plugin</groupId>
        <artifactId>osgi-deployment-maven-plugin</artifactId>
        <version>PLUGIN_VERSION</version>
        <extensions>true</extensions>       
        <configuration>
          <deploymentPackage>
            <resources>
              <bundleResource>
                <groupId>de.hu_berlin.metrik.osgi.wireadmin.producer</groupId>
                <artifactId>gpspositionproducer</artifactId>
                <version>1.0.0-SNAPSHOT</version>
              </bundleResource>
              <bundleResource>
                <groupId>de.hu_berlin.metrik.osgi.wireadmin.producer</groupId>
                <artifactId>fixedgpspositionproducer</artifactId>
                <version>1.0.0-SNAPSHOT</version>
              </bundleResource>                                            
            </resources>
          </deploymentPackage>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
  • TODO The resulting Deployment-Package * TODO The resulting Manifest