activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andytay...@apache.org
Subject [2/2] activemq-artemis git commit: ARTEMIS-1488 add 'all' client jar to distribution
Date Tue, 31 Oct 2017 14:45:05 GMT
ARTEMIS-1488 add 'all' client jar to distribution


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

Branch: refs/heads/master
Commit: cd99aba48b8ba17f66d006ecc8e1eaf65f80fcf6
Parents: 80855e0
Author: Justin Bertram <jbertram@apache.org>
Authored: Mon Oct 30 09:48:07 2017 -0500
Committer: Andy Taylor <andy.tayls67@gmail.com>
Committed: Tue Oct 31 14:44:37 2017 +0000

----------------------------------------------------------------------
 artemis-distribution/pom.xml                    |  5 ++++
 artemis-distribution/src/main/assembly/dep.xml  |  9 +++++++
 docs/user-manual/en/client-classpath.md         | 26 +++++---------------
 .../artemis-jms-bridge/README.md                |  3 +--
 pom.xml                                         |  1 +
 5 files changed, 22 insertions(+), 22 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/cd99aba4/artemis-distribution/pom.xml
----------------------------------------------------------------------
diff --git a/artemis-distribution/pom.xml b/artemis-distribution/pom.xml
index 19aef75..eb5551b 100644
--- a/artemis-distribution/pom.xml
+++ b/artemis-distribution/pom.xml
@@ -39,6 +39,11 @@
      <!-- ActiveMQ Artemis artifacts -->
       <dependency>
          <groupId>org.apache.activemq</groupId>
+         <artifactId>artemis-jms-client-all</artifactId>
+         <version>${project.version}</version>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.activemq</groupId>
          <artifactId>artemis-boot</artifactId>
          <version>${project.version}</version>
       </dependency>

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/cd99aba4/artemis-distribution/src/main/assembly/dep.xml
----------------------------------------------------------------------
diff --git a/artemis-distribution/src/main/assembly/dep.xml b/artemis-distribution/src/main/assembly/dep.xml
index 057d8c8..229017f 100644
--- a/artemis-distribution/src/main/assembly/dep.xml
+++ b/artemis-distribution/src/main/assembly/dep.xml
@@ -105,6 +105,15 @@
          <outputDirectory>lib</outputDirectory>
          <unpack>false</unpack>
       </dependencySet>
+      <dependencySet>
+         <directoryMode>755</directoryMode>
+         <fileMode>644</fileMode>
+         <includes>
+            <include>org.apache.activemq:artemis-jms-client-all</include>
+         </includes>
+         <outputDirectory>lib/client</outputDirectory>
+         <unpack>false</unpack>
+      </dependencySet>
       <!-- native -->
       <dependencySet>
          <includes>

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/cd99aba4/docs/user-manual/en/client-classpath.md
----------------------------------------------------------------------
diff --git a/docs/user-manual/en/client-classpath.md b/docs/user-manual/en/client-classpath.md
index 931ad4a..ea61c3a 100644
--- a/docs/user-manual/en/client-classpath.md
+++ b/docs/user-manual/en/client-classpath.md
@@ -1,29 +1,15 @@
 # The Client Classpath
 
-Apache ActiveMQ Artemis requires several jars on the *Client Classpath* depending on
-whether the client uses Apache ActiveMQ Artemis Core API, JMS, and JNDI.
+Apache ActiveMQ Artemis requires just a single jar on the *client classpath*.
 
 > **Warning**
 >
-> All the jars mentioned here can be found in the `lib` directory of the
-> Apache ActiveMQ Artemis distribution. Be sure you only use the jars from the correct
+> The client jar mentioned here can be found in the `lib/client` directory of the
+> Apache ActiveMQ Artemis distribution. Be sure you only use the jar from the correct
 > version of the release, you *must not* mix and match versions of jars
 > from different Apache ActiveMQ Artemis versions. Mixing and matching different jar
 > versions may cause subtle errors and failures to occur.
 
-## Apache ActiveMQ Artemis Core Client
-
-If you are using just a pure Apache ActiveMQ Artemis Core client (i.e. no JMS) then you
-need `activemq-core-client.jar`, `activemq-commons.jar`, and `netty.jar`
-on your client classpath.
-
-## JMS Client
-
-If you are using JMS on the client side, then you will also need to
-include `activemq-jms-client.jar` and `geronimo-jms_2.0_spec.jar`.
-
-> **Note**
->
-> `geronimo-jms_2.0_spec.jar` just contains Java EE API interface classes needed
-> for the `javax.jms.*` classes. If you already have a jar with these
-> interface classes on your classpath, you will not need it.
+Whether you are using JMS or just the Core API simply add the `artemis-jms-client-all.jar`
+from the `lib/client` directory to your client classpath. This is a "shaded" jar that
+contains all the Artemis code plus dependencies (e.g. JMS spec, Netty, etc.).
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/cd99aba4/examples/features/sub-modules/inter-broker-bridge/artemis-jms-bridge/README.md
----------------------------------------------------------------------
diff --git a/examples/features/sub-modules/inter-broker-bridge/artemis-jms-bridge/README.md
b/examples/features/sub-modules/inter-broker-bridge/artemis-jms-bridge/README.md
index f788881..7751380 100644
--- a/examples/features/sub-modules/inter-broker-bridge/artemis-jms-bridge/README.md
+++ b/examples/features/sub-modules/inter-broker-bridge/artemis-jms-bridge/README.md
@@ -66,8 +66,7 @@ This approach might be preferred if for example you only have access to
the 5.x
 
 ## Preparing
 
-1) Fetch the `artemis-jms-client-all` jar from [Maven Central](https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.apache.activemq%22%20AND%20a%3A%22artemis-jms-client-all%22)
-   which corresponds to the version of ActiveMQ Artemis installed. Copy that jar to the `$5X_HOME/lib`
directory.
+1) Copy `lib/client/artemis-jms-client-all.jar` to the `$5X_HOME/lib` directory.
 
 2) Add the bridge configuration to `activemq.xml`:
 

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/cd99aba4/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 70daf3c..068fa46 100644
--- a/pom.xml
+++ b/pom.xml
@@ -871,6 +871,7 @@
             <module>artemis-core-client</module>
             <module>artemis-server</module>
             <module>artemis-jms-client</module>
+            <module>artemis-jms-client-all</module>
             <module>artemis-jms-server</module>
             <module>artemis-native</module>
             <module>artemis-journal</module>


Mime
View raw message