You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by pd...@apache.org on 2015/03/05 23:06:22 UTC

svn commit: r1664497 - /felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager-4/guides/whatsnew.mdtext

Author: pderop
Date: Thu Mar  5 22:06:21 2015
New Revision: 1664497

URL: http://svn.apache.org/r1664497
Log:
added a note saying that the Maven DM annotation plugin is not provided anymore

Modified:
    felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager-4/guides/whatsnew.mdtext

Modified: felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager-4/guides/whatsnew.mdtext
URL: http://svn.apache.org/viewvc/felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager-4/guides/whatsnew.mdtext?rev=1664497&r1=1664496&r2=1664497&view=diff
==============================================================================
--- felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager-4/guides/whatsnew.mdtext (original)
+++ felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager-4/guides/whatsnew.mdtext Thu Mar  5 22:06:21 2015
@@ -55,6 +55,34 @@ annotations plugin if you don't need to
 See org.apache.felix.dependencymanager.samples/src/org/apache/felix/dependencymanager/samples/dictionary/annot/DictionaryConfiguration.java for an example.
 You can also check http://www.aqute.biz/Bnd/MetaType for more information about the bnd metatypes annotations.
 
+* Dependency Manager is now fully built using bndtools, and there is no Maven annotation plugin anymore. However, the workaround is simply the 
+use a "_plugin" option in the pom, and to declare a dependency inside the "plugin" configuration.
+For example:
+
+    :::xml
+    <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>