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