summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRobert Gemmell <robbie@apache.org>2014-07-04 19:34:48 +0000
committerRobert Gemmell <robbie@apache.org>2014-07-04 19:34:48 +0000
commit11597f045da46c62b9773694b8757dbe6cbf1758 (patch)
treea601c817fdb779d5395822a2d155e42ceb9909be /tools
parent10525a87d04313732d19a7d35931e8e5df21e1cd (diff)
downloadqpid-python-11597f045da46c62b9773694b8757dbe6cbf1758.tar.gz
QPID-5610: add a profile to optionally extract the broker release artifact and copy the QMF2 broker plugin into the lib dir
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1607915 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'tools')
-rw-r--r--tools/src/java/qpid-broker-plugins-management-qmf2/README.txt2
-rw-r--r--tools/src/java/qpid-broker-plugins-management-qmf2/pom.xml69
2 files changed, 70 insertions, 1 deletions
diff --git a/tools/src/java/qpid-broker-plugins-management-qmf2/README.txt b/tools/src/java/qpid-broker-plugins-management-qmf2/README.txt
index ec03527925..065c6710a1 100644
--- a/tools/src/java/qpid-broker-plugins-management-qmf2/README.txt
+++ b/tools/src/java/qpid-broker-plugins-management-qmf2/README.txt
@@ -59,7 +59,7 @@ HTTP port to something other than 8080, or the brokers list of "ports" in $QPID_
{
"id" : <UUID>,
"name" : "HTTP",
- "port" : 8080,
+ "port" : "${qpid.jmx_port}"
"protocols" : [ "HTTP" ]
}
diff --git a/tools/src/java/qpid-broker-plugins-management-qmf2/pom.xml b/tools/src/java/qpid-broker-plugins-management-qmf2/pom.xml
index 10228911eb..298f73695b 100644
--- a/tools/src/java/qpid-broker-plugins-management-qmf2/pom.xml
+++ b/tools/src/java/qpid-broker-plugins-management-qmf2/pom.xml
@@ -81,4 +81,73 @@
</plugins>
</build>
+ <profiles>
+ <profile>
+ <id>copy-broker</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <!--version specified in qpid-parent pluginManagement -->
+ <executions>
+ <execution>
+ <id>extract-broker-distribution</id>
+ <phase>package</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <outputAbsoluteArtifactFilename>false</outputAbsoluteArtifactFilename>
+ <outputDirectory>${project.build.directory}</outputDirectory>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.apache.qpid</groupId>
+ <artifactId>qpid-broker</artifactId>
+ <version>${project.version}</version>
+ <classifier>bin</classifier>
+ <type>tar.gz</type>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+
+ <execution>
+ <id>copy-plugin-jar</id>
+ <phase>package</phase>
+ <goals>
+ <goal>copy</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>${project.artifactId}</artifactId>
+ <version>${project.version}</version>
+ <type>jar</type>
+ </artifactItem>
+ </artifactItems>
+ <outputDirectory>${project.build.directory}/qpid-broker/${project.version}/lib</outputDirectory>
+ <overWriteSnapshots>true</overWriteSnapshots>
+ </configuration>
+ </execution>
+
+ <execution>
+ <id>copy-plugin-deps</id>
+ <phase>package</phase>
+ <goals>
+ <goal>copy-dependencies</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.build.directory}/qpid-broker/${project.version}/lib</outputDirectory>
+ <overWriteSnapshots>true</overWriteSnapshots>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
</project>