Repository: activemq-artemis
Updated Branches:
  refs/heads/master dee143fd3 -> 9e165d173


[ARTEMIS-1141] Validate Karaf features using the karaf plugin

Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/9e165d17
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/9e165d17
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/9e165d17

Branch: refs/heads/master
Commit: 9e165d17336f23d86dbe34c2c910abfa17cc78c4
Parents: dee143f
Author: Guillaume Nodet <[email protected]>
Authored: Wed May 3 22:04:32 2017 +0200
Committer: Guillaume Nodet <[email protected]>
Committed: Wed May 3 22:06:32 2017 +0200

----------------------------------------------------------------------
 artemis-features/pom.xml                        | 40 +++++++++++++++++++
 .../src/main/resources/features.xml             | 42 ++++++++++----------
 artemis-server-osgi/pom.xml                     |  9 +++++
 3 files changed, 70 insertions(+), 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/9e165d17/artemis-features/pom.xml
----------------------------------------------------------------------
diff --git a/artemis-features/pom.xml b/artemis-features/pom.xml
index 55fc43e..9c8767c 100644
--- a/artemis-features/pom.xml
+++ b/artemis-features/pom.xml
@@ -25,6 +25,20 @@
        <packaging>pom</packaging>
        <name>ActiveMQ Artemis Features</name>
 
+       <properties>
+               <karaf.version>4.1.1</karaf.version>
+       </properties>
+
+       <dependencies>
+        <dependency>
+            <groupId>org.apache.karaf.features</groupId>
+            <artifactId>framework</artifactId>
+                       <version>${karaf.version}</version>
+            <type>kar</type>
+            <scope>provided</scope>
+        </dependency>
+       </dependencies>
+
        <build>
                <resources>
                        <resource>
@@ -53,6 +67,32 @@
                                </executions>
                        </plugin>
                        <plugin>
+                               <groupId>org.apache.karaf.tooling</groupId>
+                               <artifactId>karaf-maven-plugin</artifactId>
+                               <version>${karaf.version}</version>
+                               <executions>
+                                       <execution>
+                                               <id>verify</id>
+                                               <phase>process-resources</phase>
+                                               <goals>
+                                                       <goal>verify</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <descriptors>
+                                                               
<descriptor>mvn:org.apache.karaf.features/framework/${karaf.version}/xml/features</descriptor>
+                                                               
<descriptor>mvn:org.apache.karaf.features/enterprise/${karaf.version}/xml/features</descriptor>
+                                                               
<descriptor>file:${project.build.directory}/classes/features.xml</descriptor>
+                                                       </descriptors>
+                                                       
<distribution>org.apache.karaf.features:framework</distribution>
+                                                       <javase>1.8</javase>
+                                                       <framework>
+                                                               
<feature>framework</feature>
+                                                       </framework>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
+                       <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                
<artifactId>build-helper-maven-plugin</artifactId>
                                <executions>

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/9e165d17/artemis-features/src/main/resources/features.xml
----------------------------------------------------------------------
diff --git a/artemis-features/src/main/resources/features.xml 
b/artemis-features/src/main/resources/features.xml
index f498c14..c6f4b42 100644
--- a/artemis-features/src/main/resources/features.xml
+++ b/artemis-features/src/main/resources/features.xml
@@ -19,14 +19,14 @@
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.3.0 
http://karaf.apache.org/xmlns/features/v1.3.0";>
 
-  <feature name="artemis" version="${pom.version}" description="Full ActiveMQ 
Artemis broker with default configuration">
-    <feature>artemis-core</feature>
-    <feature>artemis-amqp</feature>
-    <feature>artemis-stomp</feature>
-    <feature>artemis-mqtt</feature>
-    <feature>artemis-hornetq</feature>
-    <feature>artemis-openwire</feature>
-  </feature>
+       <feature name="artemis" version="${pom.version}" description="Full 
ActiveMQ Artemis broker with default configuration">
+               <feature>artemis-core</feature>
+               <feature>artemis-amqp</feature>
+               <feature>artemis-stomp</feature>
+               <feature>artemis-mqtt</feature>
+               <feature>artemis-hornetq</feature>
+               <feature>artemis-openwire</feature>
+       </feature>
 
        <feature name="netty-core" version="${netty.version}" 
description="Netty libraries">
                <bundle>mvn:io.netty/netty-common/${netty.version}</bundle>
@@ -45,17 +45,17 @@
                <configfile 
finalname="etc/org.apache.activemq.artemis.cfg">mvn:org.apache.activemq/artemis-features/${pom.version}/cfg</configfile>
                <configfile 
finalname="etc/artemis.xml">mvn:org.apache.activemq/artemis-features/${pom.version}/xml/artemis</configfile>
 
-               
<bundle>mvn:org.apache.geronimo.specs/geronimo-jms_2.0_spec/${geronimo.jms.2.spec.version}</bundle>
-               <bundle>mvn:com.google.guava/guava/${guava.version}</bundle>
-               <bundle>mvn:io.netty/netty-codec-http/${netty.version}</bundle>
-               
<bundle>mvn:commons-beanutils/commons-beanutils/${commons.beanutils.version}</bundle>
-               
<bundle>mvn:commons-collections/commons-collections/${commons.collections.version}</bundle>
+               <bundle 
dependency="true">mvn:org.apache.geronimo.specs/geronimo-jms_2.0_spec/${geronimo.jms.2.spec.version}</bundle>
+               <bundle 
dependency="true">mvn:com.google.guava/guava/${guava.version}</bundle>
+               <bundle 
dependency="true">mvn:io.netty/netty-codec-http/${netty.version}</bundle>
+               <bundle 
dependency="true">mvn:commons-beanutils/commons-beanutils/${commons.beanutils.version}</bundle>
+               <bundle 
dependency="true">mvn:commons-collections/commons-collections/${commons.collections.version}</bundle>
 
-               
<bundle>mvn:org.jboss.logging/jboss-logging/${jboss.logging.version}</bundle>
-               <bundle>mvn:org.jgroups/jgroups/${jgroups.version}</bundle>
+               <bundle 
dependency="true">mvn:org.jboss.logging/jboss-logging/${jboss.logging.version}</bundle>
+               <bundle 
dependency="true">mvn:org.jgroups/jgroups/${jgroups.version}</bundle>
 
-               
<bundle>mvn:org.apache.geronimo.specs/geronimo-json_1.0_spec/${json-p.spec.version}</bundle>
-               
<bundle>mvn:org.apache.johnzon/johnzon-core/${johnzon.version}</bundle>
+               <bundle 
dependency="true">mvn:org.apache.geronimo.specs/geronimo-json_1.0_spec/${json-p.spec.version}</bundle>
+               <bundle 
dependency="true">mvn:org.apache.johnzon/johnzon-core/${johnzon.version}</bundle>
 
                
<bundle>mvn:org.apache.activemq/artemis-native/${pom.version}</bundle>
                
<bundle>mvn:org.apache.activemq/artemis-server-osgi/${pom.version}</bundle>
@@ -64,8 +64,8 @@
        <feature name="artemis-amqp" version="${pom.version}" 
description="ActiveMQ Artemis AMQP protocol libraries">
                <feature prerequisite="true">wrap</feature>
                <feature>artemis-core</feature>
-               
<bundle>wrap:mvn:org.apache.qpid/proton-j/${proton.version}</bundle>
-               
<bundle>wrap:mvn:org.apache.qpid/qpid-jms-client/${qpid.jms.version}</bundle>
+               <bundle 
dependency="true">wrap:mvn:org.apache.qpid/proton-j/${proton.version}</bundle>
+               <bundle 
dependency="true">wrap:mvn:org.apache.qpid/qpid-jms-client/${qpid.jms.version}</bundle>
                
<bundle>mvn:org.apache.activemq/artemis-amqp-protocol/${pom.version}</bundle>
        </feature>
 
@@ -76,7 +76,7 @@
 
        <feature name="artemis-mqtt" version="${pom.version}" 
description="ActiveMQ Artemis MQTT protocol libraries">
                <feature>artemis-core</feature>
-               <bundle>mvn:io.netty/netty-codec-mqtt/${netty.version}</bundle>
+               <bundle 
dependency="true">mvn:io.netty/netty-codec-mqtt/${netty.version}</bundle>
                
<bundle>mvn:org.apache.activemq/artemis-mqtt-protocol/${pom.version}</bundle>
        </feature>
 
@@ -88,7 +88,7 @@
 
        <feature name="artemis-openwire" version="${pom.version}" 
description="ActiveMQ Artemis HornetQ protocol libraries">
                <feature>artemis-core</feature>
-               <bundle>mvn:org.fusesource.hawtbuf/hawtbuf/1.11</bundle>
+               <bundle 
dependency="true">mvn:org.fusesource.hawtbuf/hawtbuf/1.11</bundle>
                
<bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
                
<bundle>mvn:org.apache.activemq/artemis-openwire-protocol/${pom.version}</bundle>
        </feature>

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/9e165d17/artemis-server-osgi/pom.xml
----------------------------------------------------------------------
diff --git a/artemis-server-osgi/pom.xml b/artemis-server-osgi/pom.xml
index 3b77e6e..194243e 100644
--- a/artemis-server-osgi/pom.xml
+++ b/artemis-server-osgi/pom.xml
@@ -90,6 +90,14 @@
          <groupId>org.jboss.logmanager</groupId>
          <artifactId>jboss-logmanager</artifactId>
          <optional>true</optional>
+         <scope>provided</scope>
+      </dependency>
+      <dependency>
+         <groupId>xalan</groupId>
+         <artifactId>xalan</artifactId>
+         <version>2.7.2</version>
+         <optional>true</optional>
+         <scope>provided</scope>
       </dependency>
 
       <dependency>
@@ -117,6 +125,7 @@
                <instructions>
                   <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
                   <Import-Package>
+                     !org.apache.activemq.artemis.*,
                      org.postgresql*;resolution:=optional,
                      *
                   </Import-Package>

Reply via email to