diff options
Diffstat (limited to 'java/distribution/pom.xml')
| -rw-r--r-- | java/distribution/pom.xml | 114 |
1 files changed, 79 insertions, 35 deletions
diff --git a/java/distribution/pom.xml b/java/distribution/pom.xml index 59b4107454..c662ef2038 100644 --- a/java/distribution/pom.xml +++ b/java/distribution/pom.xml @@ -16,7 +16,10 @@ 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"> +<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"> + <modelVersion>4.0.0</modelVersion> <groupId>org.apache.qpid</groupId> <artifactId>qpid-distribution</artifactId> @@ -36,7 +39,7 @@ <qpid.version>${pom.version}</qpid.version> <qpid.targetDir>${project.build.directory}</qpid.targetDir> </properties> - + <repositories> <repository> <id>repo1.maven.org</id> @@ -48,36 +51,21 @@ <dependencies> <dependency> <groupId>${pom.groupId}</groupId> - <artifactId>qpid-common</artifactId> - <version>${pom.version}</version> - </dependency> - <dependency> - <groupId>${pom.groupId}</groupId> <artifactId>qpid-broker</artifactId> <version>${pom.version}</version> + <type>jar</type> </dependency> <dependency> <groupId>${pom.groupId}</groupId> <artifactId>qpid-client</artifactId> <version>${pom.version}</version> - </dependency> - <dependency> - <groupId>${pom.groupId}</groupId> - <artifactId>qpid-perftests</artifactId> - <version>${pom.version}</version> + <type>jar</type> </dependency> <dependency> <groupId>${pom.groupId}.management</groupId> <artifactId>org.apache.qpid.management.ui</artifactId> <version>${pom.version}</version> </dependency> - <dependency> - <groupId>${pom.groupId}</groupId> - <artifactId>qpid-systests</artifactId> - <version>${pom.version}</version> - <type>test-jar</type> - <scope>test</scope> - </dependency> </dependencies> <build> @@ -96,9 +84,6 @@ <artifactId>maven-assembly-plugin</artifactId> <version>${assembly.version}</version> <configuration> - <descriptors> - <descriptor>src/main/assembly/bin.xml</descriptor> - </descriptors> <finalName>qpid-${pom.version}</finalName> <outputDirectory>${qpid.targetDir}</outputDirectory> <tarLongFileMode>gnu</tarLongFileMode> @@ -118,14 +103,7 @@ </plugin> </plugins> </pluginManagement> - <resources> - <resource> - <directory>src/main/java</directory> - <includes> - <include>**/*</include> - </includes> - </resource> - </resources> + <plugins> <plugin> <artifactId>maven-assembly-plugin</artifactId> @@ -139,11 +117,7 @@ <configuration> <descriptors> <descriptor>src/main/assembly/bin.xml</descriptor> - <descriptor>src/main/assembly/client-bin.xml</descriptor> <descriptor>src/main/assembly/src.xml</descriptor> - <descriptor>src/main/assembly/management-eclipse-plugin.xml</descriptor> - <descriptor>src/main/assembly/management-eclipse-plugin-unix.xml</descriptor> - <descriptor>src/main/assembly/tests.xml</descriptor> </descriptors> <finalName>qpid-${pom.version}</finalName> </configuration> @@ -152,4 +126,74 @@ </plugin> </plugins> </build> -</project> + + <profiles> + <profile> + <id>tests</id> + + <dependencies> + <dependency> + <groupId>${pom.groupId}</groupId> + <artifactId>qpid-broker</artifactId> + <version>${pom.version}</version> + <type>jar</type> + </dependency> + <dependency> + <groupId>${pom.groupId}</groupId> + <artifactId>qpid-broker</artifactId> + <version>${pom.version}</version> + <type>test-jar</type> + </dependency> + <dependency> + <groupId>${pom.groupId}</groupId> + <artifactId>qpid-client</artifactId> + <version>${pom.version}</version> + <type>jar</type> + </dependency> + <dependency> + <groupId>${pom.groupId}</groupId> + <artifactId>qpid-client</artifactId> + <version>${pom.version}</version> + <type>test-jar</type> + </dependency> + <dependency> + <groupId>${pom.groupId}</groupId> + <artifactId>qpid-perftests</artifactId> + <version>${pom.version}</version> + <type>test-jar</type> + </dependency> + <dependency> + <groupId>${pom.groupId}</groupId> + <artifactId>qpid-systests</artifactId> + <version>${pom.version}</version> + <type>test-jar</type> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <artifactId>maven-assembly-plugin</artifactId> + <executions> + <execution> + <id>distribution-package</id> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + <configuration> + <descriptors> + <descriptor>src/main/assembly/bin-test.xml</descriptor> + </descriptors> + <finalName>qpid-${pom.version}</finalName> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + + </profile> + </profiles> + +</project> |
