summaryrefslogtreecommitdiff
path: root/qpid/tools/src/java
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/tools/src/java')
-rw-r--r--qpid/tools/src/java/qpid-broker-plugins-management-qmf2/README.txt2
-rw-r--r--qpid/tools/src/java/qpid-broker-plugins-management-qmf2/pom.xml69
2 files changed, 70 insertions, 1 deletions
diff --git a/qpid/tools/src/java/qpid-broker-plugins-management-qmf2/README.txt b/qpid/tools/src/java/qpid-broker-plugins-management-qmf2/README.txt
index ec03527925..065c6710a1 100644
--- a/qpid/tools/src/java/qpid-broker-plugins-management-qmf2/README.txt
+++ b/qpid/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/qpid/tools/src/java/qpid-broker-plugins-management-qmf2/pom.xml b/qpid/tools/src/java/qpid-broker-plugins-management-qmf2/pom.xml
index 10228911eb..298f73695b 100644
--- a/qpid/tools/src/java/qpid-broker-plugins-management-qmf2/pom.xml
+++ b/qpid/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>