From bc828c0017c474164b2f46cdd84ae93d5bf8c682 Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Thu, 22 Oct 2015 10:05:58 -0400 Subject: [PATCH] ARTEMIS-238 and ARTEMIS-236 Moving HQClient to its own module avoiding uncessary server's dependencies --- .../src/main/assembly/dep.xml | 1 + .../artemis-hornetq-protocol/pom.xml | 5 ++ .../artemis-hqclient-protocol/pom.xml | 53 +++++++++++++++++++ .../HQPropertiesConversionInterceptor.java | 0 .../client/HornetQClientProtocolManager.java | 0 .../HornetQClientProtocolManagerFactory.java | 0 .../client/HornetQClientSessionContext.java | 0 .../hornetq/util/HQPropertiesConverter.java | 0 ...s.spi.core.protocol.ProtocolManagerFactory | 1 + artemis-protocols/pom.xml | 1 + 10 files changed, 61 insertions(+) create mode 100644 artemis-protocols/artemis-hqclient-protocol/pom.xml rename artemis-protocols/{artemis-hornetq-protocol => artemis-hqclient-protocol}/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/HQPropertiesConversionInterceptor.java (100%) rename artemis-protocols/{artemis-hornetq-protocol => artemis-hqclient-protocol}/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/client/HornetQClientProtocolManager.java (100%) rename artemis-protocols/{artemis-hornetq-protocol => artemis-hqclient-protocol}/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/client/HornetQClientProtocolManagerFactory.java (100%) rename artemis-protocols/{artemis-hornetq-protocol => artemis-hqclient-protocol}/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/client/HornetQClientSessionContext.java (100%) rename artemis-protocols/{artemis-hornetq-protocol => artemis-hqclient-protocol}/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/util/HQPropertiesConverter.java (100%) create mode 100644 artemis-protocols/artemis-hqclient-protocol/src/main/resources/META-INF/services/org.apache.activemq.artemis.spi.core.protocol.ProtocolManagerFactory diff --git a/artemis-distribution/src/main/assembly/dep.xml b/artemis-distribution/src/main/assembly/dep.xml index 084d248827..ad6bee5508 100644 --- a/artemis-distribution/src/main/assembly/dep.xml +++ b/artemis-distribution/src/main/assembly/dep.xml @@ -59,6 +59,7 @@ org.apache.activemq:artemis-openwire-protocol org.apache.activemq:artemis-proton-plug org.apache.activemq:artemis-hornetq-protocol + org.apache.activemq:artemis-hqclient-protocol org.apache.activemq:artemis-stomp-protocol org.apache.activemq:artemis-mqtt-protocol org.apache.activemq:artemis-ra diff --git a/artemis-protocols/artemis-hornetq-protocol/pom.xml b/artemis-protocols/artemis-hornetq-protocol/pom.xml index 4b579c2956..587ca1ed6b 100644 --- a/artemis-protocols/artemis-hornetq-protocol/pom.xml +++ b/artemis-protocols/artemis-hornetq-protocol/pom.xml @@ -48,6 +48,11 @@ artemis-server ${project.version} + + org.apache.activemq + artemis-hqclient-protocol + ${project.version} + diff --git a/artemis-protocols/artemis-hqclient-protocol/pom.xml b/artemis-protocols/artemis-hqclient-protocol/pom.xml new file mode 100644 index 0000000000..7f867ed9db --- /dev/null +++ b/artemis-protocols/artemis-hqclient-protocol/pom.xml @@ -0,0 +1,53 @@ + + + + artemis-protocols + org.apache.activemq + 1.1.1-SNAPSHOT + + 4.0.0 + + artemis-hqclient-protocol + + + ${project.basedir}/../.. + + + + + org.jboss.logging + jboss-logging-processor + provided + true + + + + + org.jboss.logging + jboss-logging + + + org.apache.activemq + artemis-core-client + ${project.version} + + + + diff --git a/artemis-protocols/artemis-hornetq-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/HQPropertiesConversionInterceptor.java b/artemis-protocols/artemis-hqclient-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/HQPropertiesConversionInterceptor.java similarity index 100% rename from artemis-protocols/artemis-hornetq-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/HQPropertiesConversionInterceptor.java rename to artemis-protocols/artemis-hqclient-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/HQPropertiesConversionInterceptor.java diff --git a/artemis-protocols/artemis-hornetq-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/client/HornetQClientProtocolManager.java b/artemis-protocols/artemis-hqclient-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/client/HornetQClientProtocolManager.java similarity index 100% rename from artemis-protocols/artemis-hornetq-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/client/HornetQClientProtocolManager.java rename to artemis-protocols/artemis-hqclient-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/client/HornetQClientProtocolManager.java diff --git a/artemis-protocols/artemis-hornetq-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/client/HornetQClientProtocolManagerFactory.java b/artemis-protocols/artemis-hqclient-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/client/HornetQClientProtocolManagerFactory.java similarity index 100% rename from artemis-protocols/artemis-hornetq-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/client/HornetQClientProtocolManagerFactory.java rename to artemis-protocols/artemis-hqclient-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/client/HornetQClientProtocolManagerFactory.java diff --git a/artemis-protocols/artemis-hornetq-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/client/HornetQClientSessionContext.java b/artemis-protocols/artemis-hqclient-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/client/HornetQClientSessionContext.java similarity index 100% rename from artemis-protocols/artemis-hornetq-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/client/HornetQClientSessionContext.java rename to artemis-protocols/artemis-hqclient-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/client/HornetQClientSessionContext.java diff --git a/artemis-protocols/artemis-hornetq-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/util/HQPropertiesConverter.java b/artemis-protocols/artemis-hqclient-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/util/HQPropertiesConverter.java similarity index 100% rename from artemis-protocols/artemis-hornetq-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/util/HQPropertiesConverter.java rename to artemis-protocols/artemis-hqclient-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/util/HQPropertiesConverter.java diff --git a/artemis-protocols/artemis-hqclient-protocol/src/main/resources/META-INF/services/org.apache.activemq.artemis.spi.core.protocol.ProtocolManagerFactory b/artemis-protocols/artemis-hqclient-protocol/src/main/resources/META-INF/services/org.apache.activemq.artemis.spi.core.protocol.ProtocolManagerFactory new file mode 100644 index 0000000000..059e800c52 --- /dev/null +++ b/artemis-protocols/artemis-hqclient-protocol/src/main/resources/META-INF/services/org.apache.activemq.artemis.spi.core.protocol.ProtocolManagerFactory @@ -0,0 +1 @@ +org.apache.activemq.artemis.core.protocol.hornetq.HornetQProtocolManagerFactory \ No newline at end of file diff --git a/artemis-protocols/pom.xml b/artemis-protocols/pom.xml index ab0fc47e70..5eb7277c55 100644 --- a/artemis-protocols/pom.xml +++ b/artemis-protocols/pom.xml @@ -36,6 +36,7 @@ artemis-openwire-protocol artemis-proton-plug artemis-hornetq-protocol + artemis-hqclient-protocol artemis-mqtt-protocol