c6ae2bf940dfda99a54ee1a39ab9a1be61639312
[odlparent.git] / karaf / opendaylight-karaf-resources / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
4
5  This program and the accompanying materials are made available under the
6  terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  and is available at http://www.eclipse.org/legal/epl-v10.html
8 -->
9 <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">
10
11   <modelVersion>4.0.0</modelVersion>
12   <parent>
13     <groupId>org.opendaylight.odlparent</groupId>
14     <artifactId>odlparent</artifactId>
15     <version>1.8.2-SNAPSHOT</version>
16     <relativePath>../../odlparent</relativePath>
17   </parent>
18   <artifactId>opendaylight-karaf-resources</artifactId>
19   <description>Resources for opendaylight-karaf</description>
20   <packaging>jar</packaging>
21   <name>ODL :: odlparent :: ${project.artifactId}</name>
22   <properties>
23     <!-- These are used in the instance script and need to be kept in sync with Karaf's definitions -->
24     <aries.blueprint.api.version>1.0.1</aries.blueprint.api.version>
25     <aries.blueprint.cm.version>1.0.8</aries.blueprint.cm.version>
26     <aries.blueprint.core.version>1.6.1</aries.blueprint.core.version>
27     <felix.framework.version>4.2.1</felix.framework.version>
28     <jline.version>2.13</jline.version>
29     <mina.version>2.0.7</mina.version>
30     <pax.logging.version>1.8.4</pax.logging.version>
31     <slf4j.version>1.7.12</slf4j.version>
32     <sshd.version>0.14.0</sshd.version>
33   </properties>
34   <build>
35     <resources>
36       <resource>
37         <directory>src/main/resources</directory>
38         <filtering>true</filtering>
39       </resource>
40     </resources>
41     <plugins>
42       <plugin>
43         <groupId>org.apache.maven.plugins</groupId>
44         <artifactId>maven-dependency-plugin</artifactId>
45         <executions>
46           <execution>
47             <id>copy</id>
48             <goals>
49               <goal>copy</goal>
50             </goals>
51             <!-- here the phase you need -->
52             <phase>generate-resources</phase>
53             <configuration>
54               <artifactItems>
55                   <!-- Needs to be copied to lib/ext in order to start bouncy provider for mina sshd -->
56                 <artifactItem>
57                     <groupId>org.bouncycastle</groupId>
58                     <artifactId>bcprov-jdk15on</artifactId>
59                     <version>${bouncycastle.version}</version>
60                     <outputDirectory>target/classes/lib/ext</outputDirectory>
61                     <destFileName>bcprov-jdk15on-${bouncycastle.version}.jar</destFileName>
62                 </artifactItem>
63                 <artifactItem>
64                     <groupId>org.bouncycastle</groupId>
65                     <artifactId>bcprov-ext-jdk15on</artifactId>
66                     <version>${bouncycastle.version}</version>
67                     <outputDirectory>target/classes/lib/ext</outputDirectory>
68                     <destFileName>bcprov-ext-jdk15on-${bouncycastle.version}.jar</destFileName>
69                 </artifactItem>
70                 <artifactItem>
71                     <groupId>org.bouncycastle</groupId>
72                     <artifactId>bcpkix-jdk15on</artifactId>
73                     <version>${bouncycastle.version}</version>
74                     <outputDirectory>target/classes/lib/ext</outputDirectory>
75                     <destFileName>bcpkix-jdk15on-${bouncycastle.version}.jar</destFileName>
76                 </artifactItem>
77               </artifactItems>
78             </configuration>
79           </execution>
80         </executions>
81       </plugin>
82       <plugin>
83         <groupId>org.codehaus.mojo</groupId>
84         <artifactId>build-helper-maven-plugin</artifactId>
85         <executions>
86           <execution>
87             <id>attach-artifacts</id>
88             <goals>
89               <goal>attach-artifact</goal>
90             </goals>
91             <phase>package</phase>
92             <configuration>
93               <artifacts>
94                 <artifact>
95                   <file>src/main/assembly/etc/org.ops4j.pax.url.mvn.cfg</file>
96                   <type>properties</type>
97                   <classifier>config</classifier>
98                 </artifact>
99               </artifacts>
100             </configuration>
101           </execution>
102         </executions>
103       </plugin>
104     </plugins>
105   </build>
106 </project>