Add config service for loading cfg file
[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
20   <properties>
21     <netconf.version>1.3.0-SNAPSHOT</netconf.version>
22   </properties>
23
24   <dependencyManagement>
25     <dependencies>
26       <dependency>
27         <groupId>org.opendaylight.netconf</groupId>
28         <artifactId>netconf-artifacts</artifactId>
29         <version>${netconf.version}</version>
30         <type>pom</type>
31         <scope>import</scope>
32       </dependency>
33       <dependency>
34         <groupId>org.opendaylight.controller</groupId>
35         <artifactId>mdsal-artifacts</artifactId>
36         <version>${mdsal.version}</version>
37         <type>pom</type>
38         <scope>import</scope>
39       </dependency>
40     </dependencies>
41   </dependencyManagement>
42
43   <dependencies>
44     <!-- project specific dependencies -->
45     <dependency>
46       <groupId>${project.groupId}</groupId>
47       <artifactId>l2-l3-domain-extension</artifactId>
48     </dependency>
49     <dependency>
50       <groupId>org.opendaylight.mdsal.model</groupId>
51       <artifactId>yang-ext</artifactId>
52     </dependency>
53     <dependency>
54       <groupId>org.opendaylight.netconf</groupId>
55       <artifactId>sal-netconf-connector</artifactId>
56     </dependency>
57     <dependency>
58       <groupId>org.opendaylight.honeycomb.vbd</groupId>
59       <artifactId>vbd-api</artifactId>
60       <version>1.2.0-SNAPSHOT</version>
61     </dependency>
62     <dependency>
63       <groupId>org.opendaylight.honeycomb.vbd</groupId>
64       <artifactId>vbd-impl</artifactId>
65       <version>1.2.0-SNAPSHOT</version>
66     </dependency>
67     <dependency>
68       <groupId>org.opendaylight.mdsal.model</groupId>
69       <artifactId>opendaylight-l2-types</artifactId>
70     </dependency>
71
72     <!-- testing dependencies -->
73     <dependency>
74       <groupId>org.opendaylight.controller</groupId>
75       <artifactId>sal-binding-broker-impl</artifactId>
76       <type>test-jar</type>
77       <scope>test</scope>
78     </dependency>
79     <dependency>
80       <groupId>org.opendaylight.groupbasedpolicy</groupId>
81       <artifactId>groupbasedpolicy</artifactId>
82       <version>${project.version}</version>
83       <type>test-jar</type>
84       <scope>test</scope>
85     </dependency>
86     <dependency>
87       <groupId>junit</groupId>
88       <artifactId>junit</artifactId>
89       <scope>test</scope>
90     </dependency>
91     <dependency>
92       <groupId>org.mockito</groupId>
93       <artifactId>mockito-core</artifactId>
94       <scope>test</scope>
95     </dependency>
96     <dependency>
97       <groupId>org.slf4j</groupId>
98       <artifactId>slf4j-log4j12</artifactId>
99       <scope>test</scope>
100     </dependency>
101     <dependency>
102       <groupId>org.opendaylight.openflowplugin.model</groupId>
103       <artifactId>model-flow-base</artifactId>
104       <version>0.5.0-SNAPSHOT</version>
105       <scope>test</scope>
106     </dependency>
107     <dependency>
108       <groupId>org.osgi</groupId>
109       <artifactId>org.osgi.compendium</artifactId>
110       <version>[4.2.0,)</version>
111     </dependency>
112   </dependencies>
113
114   <!-- project build -->
115   <build>
116     <!-- We use the maven-resources-plugin to copy a class from the groupbasepolicy
117       bundle that we need in order to run some unit tests in the renderer (classes
118       in the test directory aren't packaged in bundles, and instead of keeping
119       separate copies, we just copy the file(s) needed in order to run the test). -->
120     <plugins>
121       <plugin>
122         <groupId>org.apache.felix</groupId>
123         <artifactId>maven-bundle-plugin</artifactId>
124         <configuration>
125           <instructions>
126             <Export-Package>
127               org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.vpp_renderer.rev160425.*,
128               org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.vpp_adapter.rev161201.*
129             </Export-Package>
130             <Import-Package>
131               *
132             </Import-Package>
133           </instructions>
134         </configuration>
135       </plugin>
136       <plugin>
137         <groupId>org.codehaus.mojo</groupId>
138         <artifactId>build-helper-maven-plugin</artifactId>
139         <executions>
140           <execution>
141             <id>attach-artifacts</id>
142             <phase>package</phase>
143             <goals>
144               <goal>attach-artifact</goal>
145             </goals>
146             <configuration>
147               <artifacts>
148                 <artifact>
149                   <file>${project.build.directory}/classes/startup.cfg</file>
150                   <type>cfg</type>
151                   <classifier>config</classifier>
152                 </artifact>
153               </artifacts>
154             </configuration>
155           </execution>
156         </executions>
157       </plugin>
158     </plugins>
159   </build>
160 </project>