Merge "Move JSON-RPC lib to OpFlex."
[groupbasedpolicy.git] / groupbasedpolicy / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3   <modelVersion>4.0.0</modelVersion>
4   <parent>
5     <groupId>org.opendaylight.groupbasedpolicy</groupId>
6     <artifactId>groupbasedpolicy.project</artifactId>
7     <version>0.2.0-SNAPSHOT</version>
8     <relativePath>../</relativePath>
9   </parent>
10
11   <artifactId>groupbasedpolicy</artifactId>
12   <packaging>bundle</packaging>
13
14   <properties>
15   </properties>
16
17   <dependencies>
18     <dependency>
19       <groupId>ch.qos.logback</groupId>
20       <artifactId>logback-classic</artifactId>
21     </dependency>
22     <dependency>
23       <groupId>ch.qos.logback</groupId>
24       <artifactId>logback-core</artifactId>
25     </dependency>
26     <dependency>
27       <groupId>com.fasterxml.jackson.core</groupId>
28       <artifactId>jackson-core</artifactId>
29     </dependency>
30     <dependency>
31       <groupId>com.fasterxml.jackson.core</groupId>
32       <artifactId>jackson-databind</artifactId>
33     </dependency>
34     <dependency>
35       <groupId>com.fasterxml.jackson.core</groupId>
36       <artifactId>jackson-annotations</artifactId>
37     </dependency>
38     <dependency>
39       <groupId>com.google.guava</groupId>
40       <artifactId>guava</artifactId>
41     </dependency>
42     <dependency>
43       <groupId>io.netty</groupId>
44       <artifactId>netty-all</artifactId>
45       <version>${netty.version}</version>
46     </dependency>
47     <dependency>
48       <groupId>org.opendaylight.controller</groupId>
49       <artifactId>config-api</artifactId>
50     </dependency>
51     <dependency>
52       <groupId>org.opendaylight.controller</groupId>
53       <artifactId>sal-binding-api</artifactId>
54     </dependency>
55     <dependency>
56       <groupId>org.opendaylight.controller</groupId>
57       <artifactId>sal-binding-config</artifactId>
58     </dependency>
59     <dependency>
60       <groupId>org.opendaylight.controller</groupId>
61       <artifactId>sal-common-util</artifactId>
62     </dependency>
63     <dependency>
64       <groupId>org.opendaylight.controller.model</groupId>
65       <artifactId>model-inventory</artifactId>
66     </dependency>
67     <dependency>
68       <groupId>org.opendaylight.yangtools</groupId>
69       <artifactId>yang-binding</artifactId>
70     </dependency>
71     <dependency>
72       <groupId>org.opendaylight.yangtools</groupId>
73       <artifactId>yang-common</artifactId>
74     </dependency>
75     <dependency>
76       <groupId>org.opendaylight.sfc</groupId>
77       <artifactId>sfc-model</artifactId>
78       <version>${sfc.version}</version>
79     </dependency>
80     <dependency>
81       <groupId>org.opendaylight.sfc</groupId>
82       <artifactId>sfc-provider</artifactId>
83       <version>${sfc.version}</version>
84     </dependency>
85     <dependency>
86       <groupId>org.osgi</groupId>
87       <artifactId>org.osgi.core</artifactId>
88     </dependency>
89     <dependency>
90       <groupId>commons-lang</groupId>
91       <artifactId>commons-lang</artifactId>
92       <version>2.6</version>
93     </dependency>
94     <dependency>
95       <groupId>org.apache.commons</groupId>
96       <artifactId>commons-exec</artifactId>
97       <version>1.1</version>
98     </dependency>
99     <dependency>
100       <groupId>junit</groupId>
101       <artifactId>junit</artifactId>
102       <scope>test</scope>
103     </dependency>
104     <dependency>
105       <groupId>org.mockito</groupId>
106       <artifactId>mockito-all</artifactId>
107       <version>1.9.5</version>
108       <scope>test</scope>
109     </dependency>
110   </dependencies>
111
112   <!-- project build -->
113   <build>
114     <plugins>
115       <plugin>
116         <groupId>org.apache.felix</groupId>
117         <artifactId>maven-bundle-plugin</artifactId>
118         <extensions>true</extensions>
119         <configuration>
120           <instructions>
121             <Import-Package>
122              org.apache.http.*;version="4.3.2",
123              *;resolution:=optional</Import-Package>
124              <Embed-Dependency>httpclient,httpcore,commons-lang,commons-exec;type=!pom;inline=false</Embed-Dependency>
125             <Export-Package>
126               org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.*,
127               org.opendaylight.controller.config.yang.config.endpoint_provider,
128               org.opendaylight.groupbasedpolicy.endpoint,
129               org.opendaylight.groupbasedpolicy.resolver,
130               org.opendaylight.groupbasedpolicy.util,
131             </Export-Package>
132           </instructions>
133           <manifestLocation>${project.basedir}/META-INF</manifestLocation>
134         </configuration>
135       </plugin>
136       <plugin>
137         <groupId>org.codehaus.mojo</groupId>
138         <artifactId>build-helper-maven-plugin</artifactId>
139         <executions>
140           <execution>
141             <goals>
142               <goal>add-source</goal>
143             </goals>
144             <phase>generate-sources</phase>
145             <configuration>
146               <sources>
147                 <source>target/generated-sources/sal</source>
148                 <source>target/generated-sources/config</source>
149                 <source>target/generated-resources/</source>
150               </sources>
151             </configuration>
152           </execution>
153         </executions>
154       </plugin>
155       <plugin>
156         <groupId>org.opendaylight.yangtools</groupId>
157         <artifactId>yang-maven-plugin</artifactId>
158         <dependencies>
159           <dependency>
160             <groupId>org.opendaylight.controller</groupId>
161             <artifactId>yang-jmx-generator-plugin</artifactId>
162             <version>0.3.0-SNAPSHOT</version>
163           </dependency>
164           <dependency>
165             <groupId>org.opendaylight.yangtools</groupId>
166             <artifactId>maven-sal-api-gen-plugin</artifactId>
167             <version>${yangtools.version}</version>
168             <type>jar</type>
169           </dependency>
170         </dependencies>
171         <executions>
172           <execution>
173             <goals>
174               <goal>generate-sources</goal>
175             </goals>
176             <configuration>
177               <codeGenerators>
178                 <generator>
179                   <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
180                   <outputBaseDir>${project.build.directory}/generated-sources/config</outputBaseDir>
181                   <additionalConfiguration>
182                     <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
183                   </additionalConfiguration>
184                 </generator>
185                 <generator>
186                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
187                   <outputBaseDir>${project.build.directory}/generated-sources/sal</outputBaseDir>
188                 </generator>
189                 <generator>
190                   <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
191                   <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
192                 </generator>
193               </codeGenerators>
194               <inspectDependencies>true</inspectDependencies>
195             </configuration>
196           </execution>
197         </executions>
198       </plugin>
199       <plugin>
200         <groupId>org.apache.maven.plugins</groupId>
201         <artifactId>maven-surefire-plugin</artifactId>
202         <configuration>
203           <redirectTestOutputToFile>true</redirectTestOutputToFile>
204         </configuration>
205       </plugin>
206       <plugin>
207         <groupId>org.jacoco</groupId>
208         <artifactId>jacoco-maven-plugin</artifactId>
209         <executions>
210           <execution>
211             <id>pre-unit-test</id>
212             <goals>
213               <goal>prepare-agent</goal>
214             </goals>
215           </execution>
216           <execution>
217             <id>post-unit-test</id>
218             <phase>test</phase>
219             <goals>
220               <goal>report</goal>
221             </goals>
222             <configuration>
223               <dataFile>${sonar.jacoco.reportPath}</dataFile>
224               <includes>
225                 <include>org/opendaylight/groupbasedpolicy/**/*.class</include>
226               </includes>
227             </configuration>
228           </execution>
229         </executions>
230       </plugin>
231     </plugins>
232   </build>
233 </project>
234