You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by dj...@apache.org on 2012/01/08 10:17:23 UTC
svn commit: r1228813 - in /karaf/trunk: assemblies/apache-karaf/pom.xml
manual/pom.xml pom.xml scr/command/pom.xml
scr/command/src/main/resources/OSGI-INF/bundle.info scr/examples/pom.xml
scr/feature/pom.xml scr/management/pom.xml scr/pom.xml
Author: djencks
Date: Sun Jan 8 09:17:23 2012
New Revision: 1228813
URL: http://svn.apache.org/viewvc?rev=1228813&view=rev
Log:
KARAF-52 Generate feature descriptor. Correct bundle.info. Add commands to manual. Simplify poms. Add dependency management to root pom. Include scr feature in default server
Modified:
karaf/trunk/assemblies/apache-karaf/pom.xml
karaf/trunk/manual/pom.xml
karaf/trunk/pom.xml
karaf/trunk/scr/command/pom.xml
karaf/trunk/scr/command/src/main/resources/OSGI-INF/bundle.info
karaf/trunk/scr/examples/pom.xml
karaf/trunk/scr/feature/pom.xml
karaf/trunk/scr/management/pom.xml
karaf/trunk/scr/pom.xml
Modified: karaf/trunk/assemblies/apache-karaf/pom.xml
URL: http://svn.apache.org/viewvc/karaf/trunk/assemblies/apache-karaf/pom.xml?rev=1228813&r1=1228812&r2=1228813&view=diff
==============================================================================
--- karaf/trunk/assemblies/apache-karaf/pom.xml (original)
+++ karaf/trunk/assemblies/apache-karaf/pom.xml Sun Jan 8 09:17:23 2012
@@ -64,6 +64,13 @@
<scope>runtime</scope>
</dependency>
<dependency>
+ <groupId>org.apache.karaf.scr</groupId>
+ <artifactId>org.apache.karaf.scr.feature</artifactId>
+ <classifier>features</classifier>
+ <type>xml</type>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
<groupId>org.apache.karaf.demos</groupId>
<artifactId>org.apache.karaf.demos.branding</artifactId>
<version>${project.version}</version>
Modified: karaf/trunk/manual/pom.xml
URL: http://svn.apache.org/viewvc/karaf/trunk/manual/pom.xml?rev=1228813&r1=1228812&r2=1228813&view=diff
==============================================================================
--- karaf/trunk/manual/pom.xml (original)
+++ karaf/trunk/manual/pom.xml Sun Jan 8 09:17:23 2012
@@ -281,6 +281,11 @@
<artifactId>org.apache.karaf.jaas.command</artifactId>
<version>${project.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.karaf.scr</groupId>
+ <artifactId>org.apache.karaf.scr.command</artifactId>
+ <version>${project.version}</version>
+ </dependency>
<!-- Additional Required Dependencies -->
<dependency>
<groupId>org.osgi</groupId>
Modified: karaf/trunk/pom.xml
URL: http://svn.apache.org/viewvc/karaf/trunk/pom.xml?rev=1228813&r1=1228812&r2=1228813&view=diff
==============================================================================
--- karaf/trunk/pom.xml (original)
+++ karaf/trunk/pom.xml Sun Jan 8 09:17:23 2012
@@ -134,6 +134,8 @@
<easymock.version>2.5.2</easymock.version>
<equinox.version>3.7.1.R37x_v20110808-1106</equinox.version>
+ <bndlib.version>1.50.0</bndlib.version>
+
<felix.bundlerepository.version>1.6.4</felix.bundlerepository.version>
<felix.configadmin.version>1.2.8</felix.configadmin.version>
<felix.fileinstall.version>3.1.10</felix.fileinstall.version>
@@ -146,6 +148,8 @@
<felix.eventadmin.version>1.2.12</felix.eventadmin.version>
<felix.eventadmin-plugin.version>1.0.2</felix.eventadmin-plugin.version>
<felix.obr.version>1.0.2</felix.obr.version>
+ <felix.scr.version>1.6.0</felix.scr.version>
+ <felix.scr.annotation.version>1.6.0</felix.scr.annotation.version>
<aries.application.version>0.3</aries.application.version>
<aries.blueprint.annotation.api.version>0.3.2</aries.blueprint.annotation.api.version>
@@ -590,6 +594,23 @@
<version>${project.version}</version>
</dependency>
<dependency>
+ <groupId>org.apache.karaf.scr</groupId>
+ <artifactId>org.apache.karaf.scr.command</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.karaf.scr</groupId>
+ <artifactId>org.apache.karaf.scr.management</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.karaf.scr</groupId>
+ <artifactId>org.apache.karaf.scr.feature</artifactId>
+ <type>xml</type>
+ <classifier>features</classifier>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
<groupId>org.apache.karaf.demos</groupId>
<artifactId>web</artifactId>
<version>${project.version}</version>
@@ -789,6 +810,21 @@
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
+ <artifactId>org.apache.felix.scr</artifactId>
+ <version>${felix.scr.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>org.apache.felix.metatype</artifactId>
+ <version>${felix.metatype.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>biz.aQute</groupId>
+ <artifactId>bndlib</artifactId>
+ <version>${bndlib.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>${felix.plugin.version}</version>
</dependency>
Modified: karaf/trunk/scr/command/pom.xml
URL: http://svn.apache.org/viewvc/karaf/trunk/scr/command/pom.xml?rev=1228813&r1=1228812&r2=1228813&view=diff
==============================================================================
--- karaf/trunk/scr/command/pom.xml (original)
+++ karaf/trunk/scr/command/pom.xml Sun Jan 8 09:17:23 2012
@@ -35,7 +35,7 @@
<description>Provides the OSGi SCR commands</description>
<properties>
- <scr.packages>*</scr.packages>
+ <appendedResourcesDirectory>${basedir}/../../etc/appended-resources</appendedResourcesDirectory>
</properties>
<dependencies>
@@ -57,7 +57,6 @@
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.scr</artifactId>
- <scope>provided</scope>
</dependency>
<dependency>
<groupId>biz.aQute</groupId>
@@ -65,4 +64,34 @@
<scope>provided</scope>
</dependency>
</dependencies>
+
+ <build>
+ <resources>
+ <resource>
+ <directory>${project.basedir}/src/main/resources</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>${project.basedir}/src/main/resources</directory>
+ <filtering>true</filtering>
+ <includes>
+ <include>**/*.info</include>
+ </includes>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Service-Component>*</Service-Component>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
</project>
Modified: karaf/trunk/scr/command/src/main/resources/OSGI-INF/bundle.info
URL: http://svn.apache.org/viewvc/karaf/trunk/scr/command/src/main/resources/OSGI-INF/bundle.info?rev=1228813&r1=1228812&r2=1228813&view=diff
==============================================================================
--- karaf/trunk/scr/command/src/main/resources/OSGI-INF/bundle.info (original)
+++ karaf/trunk/scr/command/src/main/resources/OSGI-INF/bundle.info Sun Jan 8 09:17:23 2012
@@ -10,10 +10,10 @@
This bundle provides the Karaf shell commands to manipulate DS Components.
The following commands are available:
- \u001B[36mscr:activate\u001B[0m Adds a list of repository URLs to the features service.
- \u001B[36mscr:deactivate\u001B[0m Shows information about selected information.
- \u001B[36mscr:details\u001B[0m Installs a feature with the specified name and version.
- \u001B[36mscr:list\u001B[0m Lists all existing features available from the defined repositories.
+ \u001B[36mscr:activate\u001B[0m Activates a component for the given component name.
+ \u001B[36mscr:deactivate\u001B[0m Deactivates a component for the given component name.
+ \u001B[36mscr:details\u001B[0m Shows details for the component with the given component name.
+ \u001B[36mscr:list\u001B[0m Gets the list of the currently available components.
\u001B[1mSEE ALSO\u001B[0m
\u001B[36mCommands\u001B[0m and \u001B[36mDeclarative Services\u001B[0m sections of the Karaf User Guide.
\ No newline at end of file
Modified: karaf/trunk/scr/examples/pom.xml
URL: http://svn.apache.org/viewvc/karaf/trunk/scr/examples/pom.xml?rev=1228813&r1=1228812&r2=1228813&view=diff
==============================================================================
--- karaf/trunk/scr/examples/pom.xml (original)
+++ karaf/trunk/scr/examples/pom.xml Sun Jan 8 09:17:23 2012
@@ -32,7 +32,7 @@
<name>Apache Karaf :: SCR :: Examples</name>
<description>Building SCR Components using the BND Annotation Libraries</description>
<properties>
- <scr.packages>*</scr.packages>
+ <appendedResourcesDirectory>${basedir}/../../etc/appended-resources</appendedResourcesDirectory>
</properties>
<dependencies>
<dependency>
@@ -74,7 +74,7 @@
${project.artifactId}.component,
${project.artifactId}.service.provider
</Private-Package>
- <Service-Component>${scr.packages}</Service-Component>
+ <Service-Component>*</Service-Component>
</instructions>
</configuration>
</plugin>
Modified: karaf/trunk/scr/feature/pom.xml
URL: http://svn.apache.org/viewvc/karaf/trunk/scr/feature/pom.xml?rev=1228813&r1=1228812&r2=1228813&view=diff
==============================================================================
--- karaf/trunk/scr/feature/pom.xml (original)
+++ karaf/trunk/scr/feature/pom.xml Sun Jan 8 09:17:23 2012
@@ -33,55 +33,37 @@
<description>Provides the Karaf Feature descriptor for the SCR APIs, Shell Commands and JMX MBeans</description>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.karaf.scr</groupId>
+ <artifactId>org.apache.karaf.scr.command</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.karaf.scr</groupId>
+ <artifactId>org.apache.karaf.scr.management</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>org.apache.felix.metatype</artifactId>
+ <optional>true</optional>
+ </dependency>
+ </dependencies>
+
<build>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- <filtering>true</filtering>
- <includes>
- <include>**/*</include>
- </includes>
- </resource>
- </resources>
<plugins>
<plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
+ <groupId>org.apache.karaf.tooling</groupId>
+ <artifactId>karaf-maven-plugin</artifactId>
<configuration>
- <useDefaultDelimiters>false</useDefaultDelimiters>
- <delimiters>
- <delimiter>${*}</delimiter>
- </delimiters>
+ <startLevel>30</startLevel>
</configuration>
<executions>
<execution>
- <id>filter</id>
- <phase>generate-resources</phase>
- <goals>
- <goal>resources</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-artifacts</id>
- <phase>package</phase>
+ <id>compile</id>
+ <phase>compile</phase>
<goals>
- <goal>attach-artifact</goal>
+ <goal>features-generate-descriptor</goal>
</goals>
- <configuration>
- <artifacts>
- <artifact>
- <file>target/classes/features.xml</file>
- <type>xml</type>
- <classifier>features</classifier>
- </artifact>
- </artifacts>
- </configuration>
</execution>
</executions>
</plugin>
Modified: karaf/trunk/scr/management/pom.xml
URL: http://svn.apache.org/viewvc/karaf/trunk/scr/management/pom.xml?rev=1228813&r1=1228812&r2=1228813&view=diff
==============================================================================
--- karaf/trunk/scr/management/pom.xml (original)
+++ karaf/trunk/scr/management/pom.xml Sun Jan 8 09:17:23 2012
@@ -36,7 +36,7 @@
<description>This bundle provides MBeans to manipulate Service Components via JMX.</description>
<properties>
- <scr.packages>*</scr.packages>
+ <appendedResourcesDirectory>${basedir}/../../etc/appended-resources</appendedResourcesDirectory>
</properties>
<dependencies>
@@ -65,14 +65,24 @@
<artifactId>org.apache.karaf.management.server</artifactId>
<scope>provided</scope>
</dependency>
- <dependency>
- <groupId>biz.aQute</groupId>
- <artifactId>bndlib</artifactId>
- <scope>compile</scope>
- </dependency>
</dependencies>
<build>
+ <resources>
+ <resource>
+ <directory>${project.basedir}/src/main/resources</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>${project.basedir}/src/main/resources</directory>
+ <filtering>true</filtering>
+ <includes>
+ <include>**/*.info</include>
+ </includes>
+ </resource>
+ </resources>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
@@ -80,18 +90,18 @@
<configuration>
<instructions>
<Export-Package>
- ${project.artifactId}
+ org.apache.karaf.scr.management
</Export-Package>
<Import-Package>
- !${project.artifactId},
+ !org.apache.karaf.scr.management,
javax.management,
javax.management.loading,
*
</Import-Package>
<Private-Package>
- ${project.artifactId}.internal
+ org.apache.karaf.scr.management.internal
</Private-Package>
- <Service-Component>${scr.packages}</Service-Component>
+ <Service-Component>*</Service-Component>
</instructions>
</configuration>
</plugin>
Modified: karaf/trunk/scr/pom.xml
URL: http://svn.apache.org/viewvc/karaf/trunk/scr/pom.xml?rev=1228813&r1=1228812&r2=1228813&view=diff
==============================================================================
--- karaf/trunk/scr/pom.xml (original)
+++ karaf/trunk/scr/pom.xml Sun Jan 8 09:17:23 2012
@@ -33,13 +33,6 @@
<packaging>pom</packaging>
<name>Apache Karaf :: Declarative Services (DS)</name>
- <properties>
- <scr.packages></scr.packages>
- <felix.scr.version>1.6.0</felix.scr.version>
- <felix.scr.annotation.version>1.6.0</felix.scr.annotation.version>
- <bndlib.version>1.50.0</bndlib.version>
- <appendedResourcesDirectory>${basedir}/../etc/appended-resources</appendedResourcesDirectory>
- </properties>
<modules>
<module>command</module>
@@ -48,54 +41,4 @@
<module>examples</module>
</modules>
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>org.apache.felix</groupId>
- <artifactId>org.apache.felix.scr</artifactId>
- <version>${felix.scr.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.felix</groupId>
- <artifactId>org.apache.felix.metatype</artifactId>
- <version>${felix.metatype.version}</version>
- </dependency>
- <dependency>
- <groupId>biz.aQute</groupId>
- <artifactId>bndlib</artifactId>
- <version>${bndlib.version}</version>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
- <build>
- <resources>
- <resource>
- <directory>${project.basedir}/src/main/resources</directory>
- <includes>
- <include>**/*</include>
- </includes>
- </resource>
- <resource>
- <directory>${project.basedir}/src/main/resources</directory>
- <filtering>true</filtering>
- <includes>
- <include>**/*.info</include>
- </includes>
- </resource>
- </resources>
- <plugins>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <extensions>true</extensions>
- <inherited>true</inherited>
- <configuration>
- <instructions>
- <Service-Component>${scr.packages}</Service-Component>
- </instructions>
- </configuration>
- </plugin>
- </plugins>
- </build>
</project>
\ No newline at end of file