| <?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> |
| |
| <artifactId>apache-brooklyn</artifactId> |
| <packaging>karaf-assembly</packaging> |
| <name>Brooklyn Karaf Distribution</name> |
| |
| <parent> |
| <groupId>org.apache.brooklyn</groupId> |
| <artifactId>brooklyn-dist-karaf</artifactId> |
| <version>1.0.0-SNAPSHOT</version> <!-- BROOKLYN_VERSION --> |
| <relativePath>../pom.xml</relativePath> |
| </parent> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.karaf.features</groupId> |
| <artifactId>framework</artifactId> |
| <version>${karaf.version}</version> |
| <type>kar</type> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.karaf.features</groupId> |
| <artifactId>standard</artifactId> |
| <classifier>features</classifier> |
| <version>${karaf.version}</version> |
| <type>xml</type> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.karaf.features</groupId> |
| <artifactId>enterprise</artifactId> |
| <classifier>features</classifier> |
| <version>${karaf.version}</version> |
| <type>xml</type> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.brooklyn</groupId> |
| <artifactId>brooklyn-features</artifactId> |
| <version>${project.version}</version> |
| <type>xml</type> |
| <classifier>features</classifier> |
| <exclusions> |
| <exclusion> |
| <groupId>org.javassist</groupId> |
| <artifactId>javassist</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.brooklyn</groupId> |
| <artifactId>brooklyn-library-features</artifactId> |
| <version>${project.version}</version> |
| <type>xml</type> |
| <classifier>features</classifier> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.brooklyn</groupId> |
| <artifactId>brooklyn-library-catalog</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.brooklyn</groupId> |
| <artifactId>brooklyn-dist-features</artifactId> |
| <version>${project.version}</version> |
| <type>xml</type> |
| <classifier>features</classifier> |
| </dependency> |
| |
| </dependencies> |
| |
| <build> |
| <resources> |
| <resource> |
| <directory>src/main/resources</directory> |
| <filtering>false</filtering> |
| <includes> |
| <include>**/*</include> |
| </includes> |
| </resource> |
| <resource> |
| <directory>src/main/filtered-resources</directory> |
| <filtering>true</filtering> |
| <includes> |
| <include>**/*</include> |
| </includes> |
| </resource> |
| </resources> |
| |
| <plugins> |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <configuration> |
| <excludes combine.children="append"> |
| <exclude>**/*.bom</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.karaf.tooling</groupId> |
| <artifactId>karaf-maven-plugin</artifactId> |
| <version>${karaf.plugin.version}</version> |
| <extensions>true</extensions> |
| <configuration> |
| <installedFeatures> |
| <feature>wrapper</feature> <!-- https://karaf.apache.org/manual/latest/wrapper --> |
| </installedFeatures> |
| <startupFeatures> |
| <feature>eventadmin</feature> |
| <feature>brooklyn-startup-features</feature> |
| </startupFeatures> |
| <bootFeatures> |
| <!-- Goes into org.apache.karaf.features.cfg. Can use brackets to guide loading order (same as prerequisite). --> |
| <bootFeature>brooklyn-boot</bootFeature> |
| </bootFeatures> |
| </configuration> |
| </plugin> |
| <!-- Exclude META-INF from dist; Disables https://github.com/apache/maven-pom/blob/43dd8d34421ae2dfda40b1adde404b52f3800735/asf/pom.xml#L285-L301 --> |
| <plugin> |
| <artifactId>maven-remote-resources-plugin</artifactId> |
| <configuration> |
| <skip>true</skip> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>unpack</id> |
| <phase>process-resources</phase> |
| <goals> |
| <goal>copy</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>brooklyn-dist-config</artifactId> |
| <version>${project.version}</version> |
| <classifier>classrename</classifier> |
| <type>cfg</type> |
| <outputDirectory>${project.build.directory}/assembly/etc</outputDirectory> |
| <destFileName>${project.groupId}.classrename.cfg</destFileName> |
| </artifactItem> |
| <artifactItem> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>brooklyn-dist-config</artifactId> |
| <version>${project.version}</version> |
| <classifier>osgilauncher</classifier> |
| <type>cfg</type> |
| <outputDirectory>${project.build.directory}/assembly/etc</outputDirectory> |
| <destFileName>${project.groupId}.osgilauncher.cfg</destFileName> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |
| |