| <?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"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.james</groupId> |
| <artifactId>james-server</artifactId> |
| <version>3.0.2-SNAPSHOT</version> |
| <relativePath>../../pom.xml</relativePath> |
| </parent> |
| |
| <groupId>org.apache.james.karaf</groupId> |
| <artifactId>james-karaf-distribution</artifactId> |
| <packaging>pom</packaging> |
| |
| <name>Apache James :: Karaf :: James Server</name> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.karaf</groupId> |
| <artifactId>apache-karaf</artifactId> |
| <version>${karaf.version}</version> |
| <type>tar.gz</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.karaf.assemblies.features</groupId> |
| <artifactId>standard</artifactId> |
| <version>${karaf.version}</version> |
| <type>xml</type> |
| <classifier>features</classifier> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.james.karaf</groupId> |
| <artifactId>james-karaf-features</artifactId> |
| <type>pom</type> |
| </dependency> |
| </dependencies> |
| |
| |
| <build> |
| <resources> |
| <resource> |
| <directory>src/main/filtered-resources</directory> |
| <filtering>true</filtering> |
| <includes> |
| <include>**/*</include> |
| </includes> |
| </resource> |
| </resources> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <configuration> |
| <useDefaultDelimiters>false</useDefaultDelimiters> |
| <delimiters> |
| <delimiter>${*}</delimiter> |
| </delimiters> |
| </configuration> |
| <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> |
| <!-- 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> |
| <version>${karaf.version}</version> |
| <type>tar.gz</type> |
| <outputDirectory>target/dependencies/unix</outputDirectory> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>bin</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <descriptors> |
| <descriptor>src/main/assembly/unix.xml</descriptor> |
| </descriptors> |
| <appendAssemblyId>false</appendAssemblyId> |
| <tarLongFileMode>gnu</tarLongFileMode> |
| </configuration> |
| </execution> |
| </executions> |
| </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>install</phase> |
| <goals> |
| <goal>add-features-to-repo</goal> |
| </goals> |
| <configuration> |
| <descriptors> |
| <descriptor> |
| mvn:org.apache.karaf.assemblies.features/standard/${karaf.version}/xml/features |
| </descriptor> |
| <descriptor> |
| mvn:org.apache.karaf.assemblies.features/enterprise/${karaf.version}/xml/features |
| </descriptor> |
| <descriptor> |
| mvn:org.apache.james.karaf/james-karaf-features/${project.version}/xml/features |
| </descriptor> |
| </descriptors> |
| <features> |
| <feature>config</feature> |
| <feature>management</feature> |
| <feature>webconsole</feature> |
| </features> |
| <includeMvnBasedDescriptors>true</includeMvnBasedDescriptors> |
| <repository>target/features-repo</repository> |
| </configuration> |
| <inherited>false</inherited> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |