diff options
| author | Robert Gemmell <robbie@apache.org> | 2014-07-04 19:34:48 +0000 |
|---|---|---|
| committer | Robert Gemmell <robbie@apache.org> | 2014-07-04 19:34:48 +0000 |
| commit | c16e3340ff0b6e12eed418cdafaf40f768ae401b (patch) | |
| tree | 3c2c658a3dfab07299d725a66773a02324295e85 /qpid/tools/src/java | |
| parent | 3ba1473aa117bebb333c6189695cb356c9cb434b (diff) | |
| download | qpid-python-c16e3340ff0b6e12eed418cdafaf40f768ae401b.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@1607915 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/tools/src/java')
| -rw-r--r-- | qpid/tools/src/java/qpid-broker-plugins-management-qmf2/README.txt | 2 | ||||
| -rw-r--r-- | qpid/tools/src/java/qpid-broker-plugins-management-qmf2/pom.xml | 69 |
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> |
