This is an automated email from the ASF dual-hosted git repository.

jbertram pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git

commit 9ee64b197239d3919b7942eb7d23b2e93533ce00
Author: JB Onofré <[email protected]>
AuthorDate: Tue Nov 11 08:38:27 2025 +0100

    ARTEMIS-5756 add Jakarta client Karaf feature w/OSGi bundle
---
 artemis-features/src/main/resources/features.xml |  6 ++
 artemis-jakarta-client-osgi/pom.xml              | 91 ++++++++++++++++++++++++
 pom.xml                                          |  1 +
 3 files changed, 98 insertions(+)

diff --git a/artemis-features/src/main/resources/features.xml 
b/artemis-features/src/main/resources/features.xml
index d4756422d9..3414be2a6f 100644
--- a/artemis-features/src/main/resources/features.xml
+++ b/artemis-features/src/main/resources/features.xml
@@ -96,6 +96,12 @@
                
<bundle>mvn:org.apache.activemq/artemis-jms-client-osgi/${pom.version}</bundle>
        </feature>
 
+       <feature name="artemis-jakarta-client" version="${pom.version}" 
description="ActiveMQ Artemis Jakarta Messaging Client libraries">
+               <feature>artemis-common</feature>
+               <bundle 
dependency="true">mvn:jakarta.jms/jakarta.jms-api/${jakarta.jms-api.version.alt}</bundle>
+               
<bundle>mvn:org.apache.activemq/artemis-jakarta-client-osgi/${pom.version}</bundle>
+       </feature>
+
        <feature name="artemis-amqp-client" version="${pom.version}" 
description="ActiveMQ Artemis AMQP Client libraries">
                <feature>transaction</feature>
                <feature>netty-core</feature>
diff --git a/artemis-jakarta-client-osgi/pom.xml 
b/artemis-jakarta-client-osgi/pom.xml
new file mode 100644
index 0000000000..e1c361e312
--- /dev/null
+++ b/artemis-jakarta-client-osgi/pom.xml
@@ -0,0 +1,91 @@
+<!-- Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
+       license agreements. See the NOTICE file distributed with this work for 
additional
+       information regarding copyright ownership. The ASF licenses this file to
+       You under the Apache License, Version 2.0 (the "License"); you may not 
use
+       this file except in compliance with the License. You may obtain a copy 
of
+       the License at http://www.apache.org/licenses/LICENSE-2.0 Unless 
required
+       by applicable law or agreed to in writing, software distributed under 
the
+       License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 
CONDITIONS
+       OF ANY KIND, either express or implied. See the License for the specific
+       language governing permissions and limitations under the License. -->
+<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>
+
+   <parent>
+      <groupId>org.apache.activemq</groupId>
+      <artifactId>artemis-pom</artifactId>
+      <version>2.45.0-SNAPSHOT</version>
+      <relativePath>../artemis-pom/pom.xml</relativePath>
+   </parent>
+
+   <artifactId>artemis-jakarta-client-osgi</artifactId>
+   <packaging>bundle</packaging>
+   <name>ActiveMQ Artemis Jakarta Messaging Client OSGi</name>
+
+   <description>
+      Combines the commons, jms-client and core-client as they contain too 
many duplicate packages
+      to be deployed separately.
+   </description>
+
+   <dependencies>
+      <dependency>
+         <groupId>org.apache.activemq</groupId>
+         <artifactId>artemis-commons</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.activemq</groupId>
+         <artifactId>artemis-core-client</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.activemq</groupId>
+         <artifactId>artemis-selector</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.activemq</groupId>
+         <artifactId>artemis-jakarta-client</artifactId>
+      </dependency>
+      <!-- logging -->
+      <dependency>
+         <groupId>org.slf4j</groupId>
+         <artifactId>slf4j-api</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.logging.log4j</groupId>
+         <artifactId>log4j-slf4j2-impl</artifactId>
+         <scope>test</scope>
+      </dependency>
+      <dependency>
+         <groupId>org.osgi</groupId>
+         <artifactId>org.osgi.core</artifactId>
+         <scope>provided</scope>
+      </dependency>
+      <dependency>
+         <groupId>org.osgi</groupId>
+         <artifactId>osgi.cmpn</artifactId>
+         <scope>provided</scope>
+      </dependency>
+   </dependencies>
+
+   <build>
+      <plugins>
+         <plugin>
+            <groupId>org.apache.felix</groupId>
+            <artifactId>maven-bundle-plugin</artifactId>
+            <extensions>true</extensions>
+            <configuration>
+               <instructions>
+                  
<Embed-Dependency>*;scope=compile|runtime;groupId=org.apache.activemq</Embed-Dependency>
+                  <Import-Package>
+                     org.glassfish.json*;resolution:=optional,
+                     de.dentrassi.crypto.pem;resolution:=optional,
+                     io.netty.buffer;io.netty.*;version="[4.1,5)",
+                     *
+                  </Import-Package>
+                  
<_exportcontents>org.apache.activemq.artemis.*;-noimport:=true</_exportcontents>
+               </instructions>
+            </configuration>
+         </plugin>
+      </plugins>
+   </build>
+
+</project>
diff --git a/pom.xml b/pom.xml
index 8ef6406761..e5515f0039 100644
--- a/pom.xml
+++ b/pom.xml
@@ -55,6 +55,7 @@
       <module>artemis-jms-client-osgi</module>
       <module>artemis-jakarta-client</module>
       <module>artemis-jakarta-client-all</module>
+      <module>artemis-jakarta-client-osgi</module>
       <module>artemis-jms-server</module>
       <module>artemis-jakarta-server</module>
       <module>artemis-journal</module>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to