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