Merge "BUG 2820 - LLDP refactor"
[controller.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.controller</groupId>
14     <artifactId>commons.opendaylight</artifactId>
15     <version>1.6.0-SNAPSHOT</version>
16     <relativePath>../../opendaylight/commons/opendaylight</relativePath>
17   </parent>
18   <artifactId>opendaylight-karaf-resources</artifactId>
19   <description>Resources for opendaylight-karaf</description>
20   <packaging>jar</packaging>
21   <build>
22     <plugins>
23       <plugin>
24         <groupId>org.apache.maven.plugins</groupId>
25         <artifactId>maven-dependency-plugin</artifactId>
26         <version>2.6</version>
27         <executions>
28           <execution>
29             <id>copy</id>
30             <goals>
31               <goal>copy</goal>
32             </goals>
33             <!-- here the phase you need -->
34             <phase>generate-resources</phase>
35             <configuration>
36               <artifactItems>
37                   <!-- Needs to be copied to lib/ext in order to start bouncy provider for mina sshd -->
38                 <artifactItem>
39                     <groupId>org.bouncycastle</groupId>
40                     <artifactId>bcprov-jdk15on</artifactId>
41                     <version>${bouncycastle.version}</version>
42                     <outputDirectory>target/classes/lib/ext</outputDirectory>
43                     <destFileName>bcprov-jdk15on-${bouncycastle.version}.jar</destFileName>
44                 </artifactItem>
45               </artifactItems>
46             </configuration>
47           </execution>
48         </executions>
49       </plugin>
50       <plugin>
51         <groupId>org.codehaus.mojo</groupId>
52         <artifactId>build-helper-maven-plugin</artifactId>
53         <executions>
54           <execution>
55             <id>attach-artifacts</id>
56             <goals>
57               <goal>attach-artifact</goal>
58             </goals>
59             <phase>package</phase>
60             <configuration>
61               <artifacts>
62                 <artifact>
63                   <file>src/main/assembly/etc/org.ops4j.pax.url.mvn.cfg</file>
64                   <type>properties</type>
65                   <classifier>config</classifier>
66                 </artifact>
67               </artifacts>
68             </configuration>
69           </execution>
70         </executions>
71       </plugin>
72     </plugins>
73   </build>
74 </project>