Example 2

A extended example with

  • customizer
  • Localization-Resources
  • Processed-Resources
  • Bundle-Resources
  • overriden Headers
  • overriden target paths
    <?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>
                <copyright>Siamak Haschemi (c) 2008</copyright>
                <contactAddress>mailto:haschemi@informatik.hu-berlin.de</contactAddress>
                <docURL>http://www.hu-berlin.de</docURL>
                <vendor>%vendor</vendor>
                <bundleLocalization>OSGI-INF/l10n/dp</bundleLocalization>
                <symbolicName>FooBar</symbolicName>
                <resources>
                  <bundleResource>
                    <groupId>de.hu_berlin.metrik.osgi.deployment</groupId>
                    <artifactId>gps_deployment_package_customizer</artifactId>
                    <version>0.0.1-SNAPSHOT</version>
                    <customizer>true</customizer>
                    <targetPath>customizer</targetPath>
                  </bundleResource>
                  <bundleResource>
                    <groupId>de.hu_berlin.metrik.osgi.wireadmin.producer</groupId>
                    <artifactId>gpspositionproducer</artifactId>
                    <version>1.0.0-SNAPSHOT</version>
                    <targetPath>interfaces</targetPath>
                  </bundleResource>
                  <bundleResource>
                    <groupId>de.hu_berlin.metrik.osgi.wireadmin.producer</groupId>
                    <artifactId>fixedgpspositionproducer</artifactId>
                    <version>1.0.0-SNAPSHOT</version>
                    <targetPath>implementations</targetPath>
                  </bundleResource>
                  <bundleResource>
                    <groupId>de.hu_berlin.metrik.osgi.wireadmin.producer</groupId>
                    <artifactId>networkgpspositionproducer</artifactId>
                    <version>1.0.0-SNAPSHOT</version>
                    <targetPath>implementations</targetPath>
                  </bundleResource>
                  <bundleResource>
                    <groupId>de.hu_berlin.metrik.osgi.wireadmin.consumer</groupId>
                    <artifactId>gpspositionconsumer</artifactId>
                    <version>1.0.0-SNAPSHOT</version>
                    <targetPath>interfaces</targetPath>
                  </bundleResource>
                  <bundleResource>
                    <groupId>de.hu_berlin.metrik.osgi.wireadmin.consumer</groupId>
                    <artifactId>sysoutgpspositionconsumer</artifactId>
                    <version>1.0.0-SNAPSHOT</version>
                    <targetPath>implementations</targetPath>
                  </bundleResource>
                  <processedResource>
                    <filePath>wires.wire</filePath>
                    <processor>de.hu_berlin.osgi.resourceprocessor.wireadmin</processor>
                    <targetPath>OSGI-INF/wire</targetPath>
                  </processedResource>
                  <processedResource>
                    <filePath>l10n/dp.properties</filePath>
                    <processor>de.hu_berlin.osgi.resourceprocessor.localization</processor>
                    <targetPath>OSGI-INF</targetPath>
                  </processedResource>                                              
                </resources>
              </deploymentPackage>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </project>
    
  • TODO The resulting Deployment-Package * TODO The resulting Manifest