| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| ~ Copyright (C) 2012, the original authors |
| ~ |
| ~ Licensed 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>jclouds-cli-pom</artifactId> |
| <groupId>org.jclouds.cli</groupId> |
| <version>1.5.0-SNAPSHOT</version> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <groupId>org.jclouds.cli</groupId> |
| <artifactId>jclouds-cli</artifactId> |
| <version>1.5.0-SNAPSHOT</version> |
| <name>jclouds :: cli :: assembly</name> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.jclouds.cli</groupId> |
| <artifactId>branding</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.jclouds.cli</groupId> |
| <artifactId>runner</artifactId> |
| <version>${project.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.karaf</groupId> |
| <artifactId>apache-karaf</artifactId> |
| <version>${karaf.version}</version> |
| <type>zip</type> |
| </dependency> |
| |
| </dependencies> |
| |
| <build> |
| <resources> |
| <resource> |
| <directory>src/main/resources</directory> |
| <filtering>false</filtering> |
| </resource> |
| <resource> |
| <directory>src/main/filtered-resources</directory> |
| <includes> |
| <include>**/*</include> |
| </includes> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <version>${maven-resources-plugin.version}</version> |
| <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> |
| <id>unpack-unix</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> |
| <execution> |
| <id>unpack-win</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>zip</type> |
| <outputDirectory>target/dependencies/win</outputDirectory> |
| </artifactItem> |
| </artifactItems> |
| </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>compile</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.jclouds.karaf/jclouds-karaf/${jclouds.karaf.version}/xml/features |
| </descriptor> |
| </descriptors> |
| <!--features> |
| <feature>config</feature> |
| <feature>jclouds-commands</feature> |
| <feature>jclouds-aws-ec2</feature> |
| <feature>jclouds-aws-s3</feature> |
| <feature>jclouds-cloudserver-us</feature> |
| <feature>jclouds-cloudserver-uk</feature> |
| <feature>jclouds-cloudfiles-us</feature> |
| <feature>jclouds-cloudfiles-uk</feature> |
| </features--> |
| <includeMvnBasedDescriptors>true</includeMvnBasedDescriptors> |
| <repository>target/features-repo</repository> |
| </configuration> |
| <inherited>false</inherited> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <version>${maven-assembly-plugin.version}</version> |
| <executions> |
| <execution> |
| <id>unix-bin</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <descriptors> |
| <descriptor>src/main/assembly/unix.xml</descriptor> |
| </descriptors> |
| <finalName>${project.artifactId}-${project.version}</finalName> |
| <tarLongFileMode>gnu</tarLongFileMode> |
| <appendAssemblyId>false</appendAssemblyId> |
| </configuration> |
| </execution> |
| <execution> |
| <id>windows-bin</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <descriptors> |
| <descriptor>src/main/assembly/win.xml</descriptor> |
| </descriptors> |
| <finalName>${project.artifactId}-${project.version}</finalName> |
| <appendAssemblyId>false</appendAssemblyId> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |