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