| <?xml version="1.0" encoding="UTF-8"?> |
| <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"> |
| |
| <!-- |
| |
| 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. |
| --> |
| |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.karaf.examples</groupId> |
| <artifactId>karaf-profile-example</artifactId> |
| <version>4.3.0-SNAPSHOT</version> |
| <relativePath>../pom.xml</relativePath> |
| </parent> |
| |
| <artifactId>karaf-profile-example-static</artifactId> |
| <packaging>pom</packaging> |
| <name>Apache Karaf :: Examples :: Profile :: Static Assembly</name> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.karaf.features</groupId> |
| <artifactId>static</artifactId> |
| <type>kar</type> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.karaf.features</groupId> |
| <artifactId>standard</artifactId> |
| <classifier>features</classifier> |
| <type>xml</type> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.karaf.features</groupId> |
| <artifactId>spring</artifactId> |
| <classifier>features</classifier> |
| <type>xml</type> |
| <scope>compile</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.karaf.services</groupId> |
| <artifactId>org.apache.karaf.services.staticcm</artifactId> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <resources> |
| <resource> |
| <directory>${project.basedir}/src/main/resources</directory> |
| <filtering>true</filtering> |
| <includes> |
| <include>**/*</include> |
| </includes> |
| </resource> |
| <resource> |
| <directory>${project.basedir}/../..</directory> |
| <filtering>false</filtering> |
| <includes> |
| <include>README</include> |
| <include>RELEASE*</include> |
| <include>LICENSE</include> |
| <include>NOTICE</include> |
| </includes> |
| </resource> |
| </resources> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>process-resources</id> |
| <goals> |
| <goal>resources</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-remote-resources-plugin</artifactId> |
| <configuration> |
| <skip>true</skip> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.karaf.tooling</groupId> |
| <artifactId>karaf-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>process-resources</id> |
| <phase>process-resources</phase> |
| <goals> |
| <goal>assembly</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>package</id> |
| <goals> |
| <goal>archive</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <useReferenceUrls>true</useReferenceUrls> |
| <environment>static</environment> |
| <profilesUris> |
| <uri>jar:mvn:org.apache.karaf.examples/karaf-profile-example-registry/${project.version}!/</uri> |
| </profilesUris> |
| <startupProfiles> |
| <profile>karaf</profile> |
| <profile>loanbroker-bank1</profile> |
| <profile>loanbroker-bank2</profile> |
| <profile>loanbroker-bank3</profile> |
| <profile>loanbroker-broker</profile> |
| <profile>activemq-broker</profile> |
| </startupProfiles> |
| <blacklistedFeatures> |
| <feature>spring/[4.0,4.2)</feature> |
| </blacklistedFeatures> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>test</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.karaf.tooling</groupId> |
| <artifactId>karaf-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>process-resources</id> |
| <phase>none</phase> |
| </execution> |
| <execution> |
| <id>package</id> |
| <phase>none</phase> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| </project> |