AMQCLI-6 - Moving CLI into its own assembly project
authorChristopher L. Shannon (cshannon) <christopher.l.shannon@gmail.com>
Wed, 8 Mar 2017 12:50:43 +0000 (07:50 -0500)
committerChristopher L. Shannon (cshannon) <christopher.l.shannon@gmail.com>
Wed, 8 Mar 2017 12:50:43 +0000 (07:50 -0500)
activemq-kahadb-exporter/pom.xml
assembly/pom.xml [new file with mode: 0644]
assembly/src/main/resources/bin/export [moved from activemq-kahadb-exporter/src/main/resources/bin/export with 100% similarity]
assembly/src/main/resources/conf/log4j.properties [moved from activemq-kahadb-exporter/src/main/resources/conf/log4j.properties with 100% similarity]
assembly/src/main/resources/unix-bin.xml [moved from activemq-kahadb-exporter/src/main/resources/unix-bin.xml with 100% similarity]
pom.xml

index ff4e789..2b884ee 100644 (file)
@@ -19,7 +19,7 @@
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
   <parent>
     <groupId>org.apache.activemq</groupId>
-    <artifactId>activemq-cli-tools</artifactId>
+    <artifactId>activemq-cli-tools-parent</artifactId>
     <version>0.1.0-SNAPSHOT</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
     <dependency>
       <groupId>org.slf4j</groupId>
       <artifactId>slf4j-log4j12</artifactId>
+      <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>org.slf4j</groupId>
       <artifactId>slf4j-log4j12</artifactId>
+      <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>log4j</groupId>
       <artifactId>log4j</artifactId>
+      <scope>test</scope>
     </dependency>
   </dependencies>
 
           </xsdOptions>
         </configuration>
       </plugin>
-      <plugin>
-            <artifactId>maven-assembly-plugin</artifactId>
-            <executions>
-               <execution>
-                  <id>source</id>
-                  <configuration>
-                     <descriptor>src/main/resources/unix-bin.xml</descriptor>
-                     <tarLongFileMode>posix</tarLongFileMode>
-                  </configuration>
-                  <phase>package</phase>
-                  <goals>
-                     <goal>single</goal>
-                  </goals>
-               </execution>
-            </executions>
-         </plugin>
     </plugins>
   </build>
 </project>
diff --git a/assembly/pom.xml b/assembly/pom.xml
new file mode 100644 (file)
index 0000000..6c97782
--- /dev/null
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 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">
+  <parent>
+    <groupId>org.apache.activemq</groupId>
+    <artifactId>activemq-cli-tools-parent</artifactId>
+    <version>0.1.0-SNAPSHOT</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+
+  <artifactId>activemq-cli-tools</artifactId>
+  <packaging>pom</packaging>
+  <name>ActiveMQ CLI tools Assembly</name>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.activemq</groupId>
+      <artifactId>activemq-kahadb-exporter</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-log4j12</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-log4j12</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>log4j</groupId>
+      <artifactId>log4j</artifactId>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>source</id>
+            <configuration>
+              <descriptor>src/main/resources/unix-bin.xml</descriptor>
+              <tarLongFileMode>posix</tarLongFileMode>
+            </configuration>
+            <phase>package</phase>
+            <goals>
+              <goal>single</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>
diff --git a/pom.xml b/pom.xml
index 6e9f143..651d6a3 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -26,7 +26,7 @@
   <modelVersion>4.0.0</modelVersion>
 
   <groupId>org.apache.activemq</groupId>
-  <artifactId>activemq-cli-tools</artifactId>
+  <artifactId>activemq-cli-tools-parent</artifactId>
   <version>0.1.0-SNAPSHOT</version>
   <packaging>pom</packaging>
 
 
   <dependencyManagement>
     <dependencies>
-
+    
+      <!-- CLI Tools -->
+      <dependency>
+        <groupId>org.apache.activemq</groupId>
+        <artifactId>activemq-kahadb-exporter</artifactId>
+        <version>${project.version}</version>
+      </dependency>
+      
       <!-- ActiveMQ -->
       <dependency>
         <groupId>org.apache.activemq</groupId>