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:28:47 UTC

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

Author: pderop
Date: Thu Mar  5 22:28:46 2015
New Revision: 1664514

URL: http://svn.apache.org/r1664514
Log:
fixed pom.xml formatting issue (attempt 6)

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=1664514&r1=1664513&r2=1664514&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:28:46 2015
@@ -59,31 +59,68 @@ You can also check http://www.aqute.biz/
 use a "_plugin" option in the pom, and to declare a dependency inside the "plugin" configuration.
 For example:
 
-    <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>
+    :::xml
+    <?xml version="1.0"?>
+    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    	<modelVersion>4.0.0</modelVersion>
+    	<properties>
+    		<osgi.version>4.2.0</osgi.version>
+    	</properties>
+    	<name>Hello World Using Dependency Manager Annotations</name>
+    	<groupId>org.apache.felix</groupId>
+    	<artifactId>org.apache.felix.dependencymanager.samples.annotation.hello</artifactId>
+    	<version>3.0.0-SNAPSHOT</version>
+    	<packaging>bundle</packaging>
+    	<dependencies>
+    		<dependency>
+    			<groupId>${pom.groupId}</groupId>
+    			<artifactId>org.apache.felix.dependencymanager.annotation</artifactId>
+    			<version>3.0.0</version>
+    		</dependency>
+    	</dependencies>
+    	<build>
+    		<plugins>
+    			<plugin>
+    				<groupId>org.apache.maven.plugins</groupId>
+    				<artifactId>maven-compiler-plugin</artifactId>
+    				<configuration>
+    					<source>1.5</source>
+    					<target>1.5</target>
+    				</configuration>
+    			</plugin>
+    			<plugin>
+    				<groupId>org.apache.felix</groupId>
+    				<artifactId>maven-bundle-plugin</artifactId>
+    				<version>2.3.4</version>
+    				<extensions>true</extensions>
+    				<configuration>
+    					<instructions>
+    						<Bundle-Name>Hello World Using Dependency Manager Annotations</Bundle-Name>
+    						<Bundle-SymbolicName>org.apache.felix.dependencymanager.samples.annotation.hello</Bundle-SymbolicName>
+    						<Import-Package>*</Import-Package>
+    						<Private-Package>org.apache.felix.dependencymanager.samples.annotation.hello</Private-Package>
+    					</instructions>
+    				</configuration>
+    			</plugin>
+    			<plugin>
+    				<groupId>org.apache.felix</groupId>
+    				<artifactId>org.apache.felix.dependencymanager.annotation</artifactId>
+    				<version>3.0.0</version>
+    				<executions>
+    					<execution>
+    						<goals>
+    							<goal>scan</goal>
+    						</goals>
+    						<configuration>
+    							<log>info</log>
+    						</configuration>
+    					</execution>
+    				</executions>
+    			</plugin>
+    		</plugins>
+    	</build>
+    </project>
+