| <?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/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <packaging>jar</packaging> |
| |
| <artifactId>brooklyn-dist</artifactId> |
| |
| <name>Brooklyn Distribution</name> |
| <description> |
| Brooklyn redistributable package archive, includes all required |
| Jar files and scripts |
| </description> |
| |
| <parent> |
| <groupId>org.apache.brooklyn</groupId> |
| <artifactId>brooklyn-dist-root</artifactId> |
| <version>0.9.0</version> <!-- BROOKLYN_VERSION --> |
| <relativePath>../pom.xml</relativePath> |
| </parent> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.brooklyn</groupId> |
| <artifactId>brooklyn-all</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <!-- TODO include examples --> |
| <!-- TODO include documentation --> |
| |
| <dependency> |
| <groupId>org.apache.brooklyn</groupId> |
| <artifactId>brooklyn-test-support</artifactId> |
| <version>${project.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.testng</groupId> |
| <artifactId>testng</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <!-- copy the config file from the CLI project (could instead use unpack goal with an includes filter) --> |
| <executions> |
| <execution> |
| <id>copy</id> |
| <phase>process-classes</phase> |
| <goals> |
| <goal>copy</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <!-- this can fail in eclipse trying to copy _from_ target/classes. |
| see http://jira.codehaus.org/browse/MDEP-259 --> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>brooklyn-cli</artifactId> |
| <version>${project.version}</version> |
| <type>bom</type> |
| <classifier>dist</classifier> |
| <overWrite>true</overWrite> |
| <outputDirectory>target</outputDirectory> |
| <destFileName>default.catalog.bom</destFileName> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <configuration> |
| <excludes combine.children="append"> |
| <!-- Exclude sample config files because they are illustrative, intended for changing --> |
| <exclude>src/main/dist/conf/**</exclude> |
| <exclude>src/main/dist/README.md</exclude> |
| <exclude>licensing/licenses/**</exclude> |
| <exclude>licensing/README.md</exclude> |
| <exclude>licensing/*LICENSE*</exclude> |
| <exclude>licensing/*.autogenerated</exclude> |
| <exclude>licensing/projects-with-custom-licenses</exclude> |
| <exclude>licensing/extras-files</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| <plugin> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>build-distribution-dir</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <appendAssemblyId>true</appendAssemblyId> |
| <descriptors> |
| <descriptor>src/main/config/build-distribution.xml</descriptor> |
| </descriptors> |
| <finalName>brooklyn</finalName> |
| <includeBaseDirectory>false</includeBaseDirectory> |
| <formats> |
| <format>dir</format> |
| </formats> |
| <attach>false</attach> |
| </configuration> |
| </execution> |
| <execution> |
| <id>build-distribution-archive</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <appendAssemblyId>true</appendAssemblyId> |
| <descriptors> |
| <descriptor>src/main/config/build-distribution.xml</descriptor> |
| </descriptors> |
| <!-- finalName affects name in `target/` but we cannot influence name when it is attached/installed, |
| so `apache-` prefix would be lost there. to keep it consistent this is commented out, |
| but would be nice to have if there is a way! |
| <finalName>apache-brooklyn-${project.version}</finalName> |
| --> |
| <formats> |
| <format>tar.gz</format> |
| <format>zip</format> |
| </formats> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>go-client</id> |
| <activation> |
| <property> |
| <name>!no-go-client</name> |
| </property> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>unpack-client-cli</id> |
| <phase>prepare-package</phase> |
| <goals> |
| <goal>unpack</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>brooklyn-client-cli</artifactId> |
| <classifier>bin</classifier> |
| <type>zip</type> |
| <version>${project.version}</version> |
| <outputDirectory>${project.build.directory}/brooklyn-client-cli-unpacked</outputDirectory> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| </project> |