BUG-7657: Karaf 4 migration: provide Karaf 4 groupbasedpolicy features
[groupbasedpolicy.git] / renderers / vpp / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
3   This program and the accompanying materials are made available under the
4   terms of the Eclipse Public License v1.0 which accompanies this distribution,
5   and is available at http://www.eclipse.org/legal/epl-v10.html -->
6 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
8   <modelVersion>4.0.0</modelVersion>
9
10   <parent>
11     <groupId>org.opendaylight.groupbasedpolicy</groupId>
12     <artifactId>groupbasedpolicy-renderers</artifactId>
13     <version>0.6.0-SNAPSHOT</version>
14     <relativePath>../</relativePath>
15   </parent>
16
17   <artifactId>vpp-renderer</artifactId>
18   <packaging>bundle</packaging>
19   <!-- <name> formatting is used by autorelease to parse and notify projects on
20        build failure. Please do not modify this unless you have a good reason. -->
21   <name>ODL :: groupbasedpolicy :: ${project.artifactId}</name>
22
23   <properties>
24     <netconf.version>1.3.0-SNAPSHOT</netconf.version>
25   </properties>
26
27   <dependencyManagement>
28     <dependencies>
29       <dependency>
30         <groupId>org.opendaylight.netconf</groupId>
31         <artifactId>netconf-artifacts</artifactId>
32         <version>${netconf.version}</version>
33         <type>pom</type>
34         <scope>import</scope>
35       </dependency>
36       <dependency>
37         <groupId>org.opendaylight.controller</groupId>
38         <artifactId>mdsal-artifacts</artifactId>
39         <version>${mdsal.version}</version>
40         <type>pom</type>
41         <scope>import</scope>
42       </dependency>
43     </dependencies>
44   </dependencyManagement>
45
46   <dependencies>
47     <!-- project specific dependencies -->
48     <dependency>
49       <groupId>${project.groupId}</groupId>
50       <artifactId>l2-l3-domain-extension</artifactId>
51     </dependency>
52     <dependency>
53       <groupId>org.opendaylight.mdsal.model</groupId>
54       <artifactId>yang-ext</artifactId>
55     </dependency>
56     <dependency>
57       <groupId>org.opendaylight.netconf</groupId>
58       <artifactId>sal-netconf-connector</artifactId>
59     </dependency>
60     <dependency>
61       <groupId>org.opendaylight.honeycomb.vbd</groupId>
62       <artifactId>vbd-api</artifactId>
63       <version>1.2.0-SNAPSHOT</version>
64     </dependency>
65     <dependency>
66       <groupId>org.opendaylight.honeycomb.vbd</groupId>
67       <artifactId>vbd-impl</artifactId>
68       <version>1.2.0-SNAPSHOT</version>
69     </dependency>
70     <dependency>
71       <groupId>org.opendaylight.mdsal.model</groupId>
72       <artifactId>opendaylight-l2-types</artifactId>
73     </dependency>
74
75     <!-- testing dependencies -->
76     <dependency>
77       <groupId>org.opendaylight.controller</groupId>
78       <artifactId>sal-binding-broker-impl</artifactId>
79       <type>test-jar</type>
80       <scope>test</scope>
81     </dependency>
82     <dependency>
83       <groupId>org.opendaylight.groupbasedpolicy</groupId>
84       <artifactId>groupbasedpolicy</artifactId>
85       <version>${project.version}</version>
86       <type>test-jar</type>
87       <scope>test</scope>
88     </dependency>
89     <dependency>
90       <groupId>junit</groupId>
91       <artifactId>junit</artifactId>
92       <scope>test</scope>
93     </dependency>
94     <dependency>
95       <groupId>org.mockito</groupId>
96       <artifactId>mockito-core</artifactId>
97       <scope>test</scope>
98     </dependency>
99     <dependency>
100       <groupId>org.slf4j</groupId>
101       <artifactId>slf4j-log4j12</artifactId>
102       <scope>test</scope>
103     </dependency>
104     <dependency>
105       <groupId>org.osgi</groupId>
106       <artifactId>org.osgi.compendium</artifactId>
107       <version>[4.2.0,)</version>
108     </dependency>
109   </dependencies>
110
111   <!-- project build -->
112   <build>
113     <!-- We use the maven-resources-plugin to copy a class from the groupbasepolicy
114       bundle that we need in order to run some unit tests in the renderer (classes
115       in the test directory aren't packaged in bundles, and instead of keeping
116       separate copies, we just copy the file(s) needed in order to run the test). -->
117     <plugins>
118       <plugin>
119         <groupId>org.apache.felix</groupId>
120         <artifactId>maven-bundle-plugin</artifactId>
121         <configuration>
122           <instructions>
123             <Export-Package>
124               org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.vpp_renderer.rev160425.*,
125               org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.vpp_adapter.rev161201.*
126             </Export-Package>
127             <Import-Package>
128               *
129             </Import-Package>
130           </instructions>
131         </configuration>
132       </plugin>
133       <plugin>
134         <groupId>org.codehaus.mojo</groupId>
135         <artifactId>build-helper-maven-plugin</artifactId>
136         <executions>
137           <execution>
138             <id>attach-artifacts</id>
139             <phase>package</phase>
140             <goals>
141               <goal>attach-artifact</goal>
142             </goals>
143             <configuration>
144               <artifacts>
145                 <artifact>
146                   <file>${project.build.directory}/classes/startup.cfg</file>
147                   <type>cfg</type>
148                   <classifier>config</classifier>
149                 </artifact>
150               </artifacts>
151             </configuration>
152           </execution>
153         </executions>
154       </plugin>
155     </plugins>
156   </build>
157 </project>