Implement SFC integration
[groupbasedpolicy.git] / commons / parent / 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.odlparent</groupId>
12     <artifactId>odlparent</artifactId>
13     <version>1.5.0-SNAPSHOT</version>
14     <relativePath>../../odlparent/odlparent</relativePath>
15   </parent>
16
17   <groupId>org.opendaylight.groupbasedpolicy</groupId>
18   <artifactId>commons.groupbasedpolicy</artifactId>
19   <version>0.2.0-SNAPSHOT</version>
20   <packaging>pom</packaging>
21
22   <prerequisites>
23     <maven>3.0</maven>
24   </prerequisites>
25
26   <properties>
27     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
28     <generated.sources.sal>${project.build.directory}/generated-sources/sal</generated.sources.sal>
29     <generated.sources.config>${project.build.directory}/generated-sources/config</generated.sources.config>
30     <generated.yang.docs>${project.build.directory}/site/models</generated.yang.docs>
31     <config.version>0.3.0-SNAPSHOT</config.version>
32     <mdsal.version>1.2.0-SNAPSHOT</mdsal.version>
33     <sfc.version>0.1.0-SNAPSHOT</sfc.version>
34     <restconf.version>1.2.0-SNAPSHOT</restconf.version>
35     <yangtools.version>0.7.0-SNAPSHOT</yangtools.version>
36     <openflowplugin.version>0.1.0-SNAPSHOT</openflowplugin.version>
37     <neutron.version>0.5.0-SNAPSHOT</neutron.version>
38     <ovsdb.southbound.version>1.1.0-SNAPSHOT</ovsdb.southbound.version>
39   </properties>
40
41   <dependencyManagement>
42     <dependencies>
43       <!-- GBP modules -->
44       <dependency>
45         <groupId>org.opendaylight.groupbasedpolicy</groupId>
46         <artifactId>groupbasedpolicy</artifactId>
47         <version>${project.version}</version>
48       </dependency>
49       <dependency>
50         <groupId>org.opendaylight.groupbasedpolicy</groupId>
51         <artifactId>opflex-renderer</artifactId>
52         <version>${project.version}</version>
53       </dependency>
54       <dependency>
55         <groupId>org.opendaylight.groupbasedpolicy</groupId>
56         <artifactId>ofoverlay-renderer</artifactId>
57         <version>${project.version}</version>
58       </dependency>
59       <dependency>
60         <groupId>org.opendaylight.groupbasedpolicy</groupId>
61         <artifactId>neutron-mapper</artifactId>
62         <version>${project.version}</version>
63       </dependency>
64       <dependency>
65         <groupId>org.opendaylight.groupbasedpolicy</groupId>
66         <artifactId>ui-backend</artifactId>
67         <version>${project.version}</version>
68       </dependency>
69
70       <!-- Yangtools and Controller infrastructure -->
71       <dependency>
72         <groupId>org.opendaylight.yangtools</groupId>
73         <artifactId>yangtools-artifacts</artifactId>
74         <version>${yangtools.version}</version>
75         <type>pom</type>
76         <scope>import</scope>
77       </dependency>
78       <dependency>
79         <groupId>org.opendaylight.controller</groupId>
80         <artifactId>config-artifacts</artifactId>
81         <version>${config.version}</version>
82         <type>pom</type>
83         <scope>import</scope>
84       </dependency>
85       <dependency>
86         <groupId>org.opendaylight.controller</groupId>
87         <artifactId>mdsal-artifacts</artifactId>
88         <version>${mdsal.version}</version>
89         <type>pom</type>
90         <scope>import</scope>
91       </dependency>
92
93       <!-- Openflowplugin -->
94       <dependency>
95         <groupId>org.opendaylight.openflowplugin</groupId>
96         <artifactId>openflowplugin-extension-nicira</artifactId>
97         <version>${openflowplugin.version}</version>
98       </dependency>
99       
100       <!-- OVSDB -->
101       <dependency>
102         <groupId>org.opendaylight.ovsdb</groupId>
103         <artifactId>southbound-api</artifactId>
104         <version>${ovsdb.southbound.version}</version>
105       </dependency>
106       
107     </dependencies>
108   </dependencyManagement>
109
110   <build>
111     <plugins>
112       <plugin>
113         <groupId>org.apache.maven.plugins</groupId>
114         <artifactId>maven-compiler-plugin</artifactId>
115         <configuration>
116           <source>${java.version.source}</source>
117           <target>${java.version.target}</target>
118           <testSource>${java.version.source}</testSource>
119           <testTarget>${java.version.target}</testTarget>
120         </configuration>
121       </plugin>
122       <plugin>
123         <groupId>org.codehaus.mojo</groupId>
124         <artifactId>build-helper-maven-plugin</artifactId>
125         <executions>
126           <execution>
127             <goals>
128               <goal>add-source</goal>
129             </goals>
130             <phase>generate-sources</phase>
131             <configuration>
132               <sources>
133                 <source>${generated.sources.config}</source>
134                 <source>${generated.sources.sal}</source>
135                 <source>src/main/yang</source>
136               </sources>
137             </configuration>
138           </execution>
139         </executions>
140       </plugin>
141       <plugin>
142         <groupId>org.jacoco</groupId>
143         <artifactId>jacoco-maven-plugin</artifactId>
144         <executions>
145           <execution>
146             <id>pre-unit-test</id>
147             <goals>
148               <goal>prepare-agent</goal>
149             </goals>
150           </execution>
151           <execution>
152             <id>post-unit-test</id>
153             <phase>test</phase>
154             <goals>
155               <goal>report</goal>
156             </goals>
157             <configuration>
158               <dataFile>${sonar.jacoco.reportPath}</dataFile>
159               <includes>
160                 <include>org/opendaylight/groupbasedpolicy/**/*.class</include>
161               </includes>
162             </configuration>
163           </execution>
164         </executions>
165       </plugin>
166     </plugins>
167
168     <pluginManagement>
169       <plugins>
170         <plugin>
171           <groupId>org.opendaylight.yangtools</groupId>
172           <artifactId>yang-maven-plugin</artifactId>
173           <version>${yangtools.version}</version>
174           <executions>
175             <execution>
176               <goals>
177                 <goal>generate-sources</goal>
178               </goals>
179               <configuration>
180                 <codeGenerators>
181                   <generator>
182                     <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
183                     <outputBaseDir>${generated.sources.config}</outputBaseDir>
184                     <additionalConfiguration>
185                       <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
186                     </additionalConfiguration>
187                   </generator>
188                   <generator>
189                     <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
190                     <outputBaseDir>${generated.sources.sal}</outputBaseDir>
191                   </generator>
192                   <generator>
193                     <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
194                     <outputBaseDir>${generated.yang.docs}</outputBaseDir>
195                   </generator>
196                 </codeGenerators>
197                 <inspectDependencies>true</inspectDependencies>
198               </configuration>
199             </execution>
200           </executions>
201           <dependencies>
202             <dependency>
203               <groupId>org.opendaylight.controller</groupId>
204               <artifactId>yang-jmx-generator-plugin</artifactId>
205               <version>${config.version}</version>
206             </dependency>
207             <dependency>
208               <groupId>org.opendaylight.yangtools</groupId>
209               <artifactId>maven-sal-api-gen-plugin</artifactId>
210               <version>${yangtools.version}</version>
211               <type>jar</type>
212             </dependency>
213           </dependencies>
214         </plugin>
215         <!--This plugin's configuration is used to store Eclipse m2e settings 
216           only. It has no influence on the Maven build itself. -->
217         <plugin>
218           <groupId>org.eclipse.m2e</groupId>
219           <artifactId>lifecycle-mapping</artifactId>
220           <version>1.0.0</version>
221           <configuration>
222             <lifecycleMappingMetadata>
223               <pluginExecutions>
224                 <pluginExecution>
225                   <pluginExecutionFilter>
226                     <groupId>org.opendaylight.yangtools</groupId>
227                     <artifactId>yang-maven-plugin</artifactId>
228                     <versionRange>[0.5,)</versionRange>
229                     <goals>
230                       <goal>generate-sources</goal>
231                     </goals>
232                   </pluginExecutionFilter>
233                   <action>
234                     <execute />
235                   </action>
236                 </pluginExecution>
237                 <pluginExecution>
238                   <pluginExecutionFilter>
239                     <groupId>org.jacoco</groupId>
240                     <artifactId>jacoco-maven-plugin</artifactId>
241                     <versionRange>[0.6,)</versionRange>
242                     <goals>
243                       <goal>prepare-agent</goal>
244                     </goals>
245                   </pluginExecutionFilter>
246                   <action>
247                     <ignore />
248                   </action>
249                 </pluginExecution>
250                 <pluginExecution>
251                   <pluginExecutionFilter>
252                     <groupId>org.apache.maven.plugins</groupId>
253                     <artifactId>maven-checkstyle-plugin</artifactId>
254                     <versionRange>[2.13,)</versionRange>
255                     <goals>
256                       <goal>check</goal>
257                     </goals>
258                   </pluginExecutionFilter>
259                   <action>
260                     <execute />
261                   </action>
262                 </pluginExecution>
263               </pluginExecutions>
264             </lifecycleMappingMetadata>
265           </configuration>
266         </plugin>
267       </plugins>
268     </pluginManagement>
269   </build>
270
271   <url>https://wiki.opendaylight.org/view/Group_Policy:Main</url>
272   <scm>
273     <connection>scm:git:ssh://git.opendaylight.org:29418/groupbasedpolicy.git</connection>
274     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/groupbasedpolicy.git</developerConnection>
275     <tag>HEAD</tag>
276   </scm>
277 </project>