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