Apache
Home » Documentation » Apache Felix Subproject Documentation » Apache Felix Dependency Manager

Apache Felix Dependency Manager - Migrating from earlier versions

Below is a guide to help you migrate from version 3. Whilst older versions obviously still exist, we don't think people are still actively using them.

Migrating from version 3

DependencyManager 4.0 has some API changes that need to be taken into account when migrating from DependencyManager 3.

For example:

<project ...>
  <dependencies>
    ...
    <dependency>
      <groupId>org.apache.felix</groupId>
      <artifactId>org.apache.felix.dependencymanager.annotation</artifactId>
      <version>4.0.0</version>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      ...    
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <version>2.5.0</version>
        <extensions>true</extensions>
        <configuration>
           <instructions>
           <Bundle-Name>Test</Bundle-Name>
           <Bundle-SymbolicName>test</Bundle-SymbolicName>
           <Import-Package>*</Import-Package>
           <Private-Package>test.dmannotations.withbndplugininvokedfrompom</Private-Package>
           <_plugin>org.apache.felix.dm.annotation.plugin.bnd.AnnotationPlugin;log=debug</_plugin>
           </instructions>
        </configuration>
        <dependencies>
          <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.dependencymanager.annotation</artifactId>
            <version>4.0.0</version>
          </dependency>
        </dependencies>
      </plugin>
    </plugins>
  </build>
</project>
Rev. 1665812 by marrs on Wed, 11 Mar 2015 09:02:04 +0000
Apache Felix, Felix, Apache, the Apache feather logo, and the Apache Felix project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.