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