| <?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"> |
| <parent> |
| <artifactId>osgi</artifactId> |
| <groupId>org.apache.openejb</groupId> |
| <version>4.5.1</version> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <artifactId>apache-karafee</artifactId> |
| <name>OpenEJB :: OSGi :: Apache KarafEE</name> |
| <version>1.5.1</version> |
| <packaging>pom</packaging> |
| |
| <!-- |
| <repositories> |
| <repository> |
| <id>opensource</id> |
| <url>http://ebayopensource.org/nexus/content/groups/public/</url> |
| </repository> |
| </repositories> |
| --> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.openejb</groupId> |
| <artifactId>openejb-karaf-rebranding</artifactId> |
| <version>${openejb.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.karaf</groupId> |
| <artifactId>apache-karaf</artifactId> |
| <version>${karaf.version}</version> |
| <type>tar.gz</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.openejb</groupId> |
| <artifactId>javaee-api</artifactId> |
| <version>${javaee-api.version}</version> |
| <type>xml</type> |
| <classifier>features</classifier> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.openejb</groupId> |
| <artifactId>openejb-feature</artifactId> |
| <version>${openejb.version}</version> |
| <type>xml</type> |
| <classifier>features</classifier> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <resources> |
| <resource> |
| <directory>src/main/filtered-resources</directory> |
| <filtering>true</filtering> |
| <includes> |
| <include>**/*</include> |
| </includes> |
| </resource> |
| <resource> |
| <directory>src/main/descriptors</directory> |
| <filtering>true</filtering> |
| <includes> |
| <include>**/*</include> |
| </includes> |
| </resource> |
| </resources> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>filter</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>resources</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>copy</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>copy</goal> |
| </goals> |
| <configuration> |
| <!-- Define here the artifacts which should be considered in the assembly --> |
| <!-- For instance, the branding jar --> |
| <artifactItems> |
| <artifactItem> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>openejb-karaf-rebranding</artifactId> |
| <version>${openejb.version}</version> |
| <outputDirectory>target/dependencies</outputDirectory> |
| <destFileName>openejb-karaf-rebranding-${openejb.version}.jar</destFileName> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| <execution> |
| <!-- Uncompress the standard Karaf distribution --> |
| <id>unpack</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>unpack</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.apache.karaf</groupId> |
| <artifactId>apache-karaf</artifactId> |
| <type>tar.gz</type> |
| <outputDirectory>target/dependencies</outputDirectory> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> <!-- quick way to update pax-web from karaf which is a buggy version (1.1.3), this should be removed when karaf will be upgraded --> |
| <groupId>org.codehaus.gmaven</groupId> |
| <artifactId>gmaven-plugin</artifactId> |
| <version>1.3</version> |
| <executions> |
| <execution> |
| <id>patch-pax-web</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>execute</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <source> |
| def karafVersion = project.properties['karaf.version'] |
| def file = new File(project.basedir, "target/dependencies/apache-karaf-${karafVersion}/system/org/apache/karaf/assemblies/features/standard/${karafVersion}/standard-${karafVersion}-features.xml") |
| file.write(file.text.replace('1.1.3', '1.1.5')) |
| </source> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.karaf.tooling</groupId> |
| <artifactId>features-maven-plugin</artifactId> |
| <version>${karaf.version}</version> |
| <executions> |
| <execution> |
| <id>add-features-to-repo</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>add-features-to-repo</goal> |
| </goals> |
| <configuration> |
| <descriptors> |
| <descriptor>mvn:org.apache.openejb/openejb-feature/${openejb.version}/xml/features</descriptor> |
| <descriptor>mvn:org.apache.activemq/activemq-karaf/${org.apache.activemq.version}/xml/features</descriptor> |
| </descriptors> |
| <features> |
| <feature>openejb-server</feature> |
| <feature>war</feature> |
| <feature>transaction</feature> |
| <feature>webconsole</feature> |
| </features> |
| <repository>target/repo</repository> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <version>2.2.2</version> |
| <executions> |
| <execution> |
| <id>bin</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <descriptors> |
| <descriptor>src/main/descriptors/bin.xml</descriptor> |
| </descriptors> |
| <appendAssemblyId>false</appendAssemblyId> |
| <tarLongFileMode>gnu</tarLongFileMode> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <properties> |
| <karafee.user>karafee</karafee.user> |
| </properties> |
| </project> |