Enable netty config modules to restart when blueprint container restarts
[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.7.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     <resources>
23       <resource>
24         <directory>src/main/resources</directory>
25         <filtering>true</filtering>
26       </resource>
27     </resources>
28     <plugins>
29       <plugin>
30         <groupId>org.apache.maven.plugins</groupId>
31         <artifactId>maven-dependency-plugin</artifactId>
32         <executions>
33           <execution>
34             <id>copy</id>
35             <goals>
36               <goal>copy</goal>
37             </goals>
38             <!-- here the phase you need -->
39             <phase>generate-resources</phase>
40             <configuration>
41               <artifactItems>
42                   <!-- Needs to be copied to lib/ext in order to start bouncy provider for mina sshd -->
43                 <artifactItem>
44                     <groupId>org.bouncycastle</groupId>
45                     <artifactId>bcprov-jdk15on</artifactId>
46                     <version>${bouncycastle.version}</version>
47                     <outputDirectory>target/classes/lib/ext</outputDirectory>
48                     <destFileName>bcprov-jdk15on-${bouncycastle.version}.jar</destFileName>
49                 </artifactItem>
50               </artifactItems>
51             </configuration>
52           </execution>
53         </executions>
54       </plugin>
55       <plugin>
56         <groupId>org.codehaus.mojo</groupId>
57         <artifactId>build-helper-maven-plugin</artifactId>
58         <executions>
59           <execution>
60             <id>attach-artifacts</id>
61             <goals>
62               <goal>attach-artifact</goal>
63             </goals>
64             <phase>package</phase>
65             <configuration>
66               <artifacts>
67                 <artifact>
68                   <file>src/main/assembly/etc/org.ops4j.pax.url.mvn.cfg</file>
69                   <type>properties</type>
70                   <classifier>config</classifier>
71                 </artifact>
72               </artifacts>
73             </configuration>
74           </execution>
75         </executions>
76       </plugin>
77     </plugins>
78   </build>
79 </project>