Release Beryllium
[openflowjava.git] / parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3     <modelVersion>4.0.0</modelVersion>
4     <parent>
5         <groupId>org.opendaylight.odlparent</groupId>
6         <artifactId>odlparent</artifactId>
7         <version>1.6.0-Beryllium</version>
8         <relativePath/>
9     </parent>
10
11     <groupId>org.opendaylight.openflowjava</groupId>
12     <artifactId>openflowjava-parent</artifactId>
13     <version>0.7.0-Beryllium</version>
14     <packaging>pom</packaging>
15     <name>openflowjava</name> <!-- Used by Sonar to set project name -->
16     <description>
17         Openflow protocol library - serializes and deserializes openflow messages + handles connections with openflow devices.
18     </description>
19     <url>https://wiki.opendaylight.org/view/Openflow_Protocol_Library:Main</url>
20
21     <licenses>
22         <license>
23             <name>The Eclipse Public License v1.0</name>
24             <url>http://www.eclipse.org/legal/epl-v10.html</url>
25             <distribution>repo</distribution>
26         </license>
27     </licenses>
28
29     <scm>
30         <connection>scm:git:ssh://git.opendaylight.org:29418/openflowjava.git</connection>
31         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/openflowjava.git</developerConnection>
32         <url>https://wiki.opendaylight.org/view/Openflow_Protocol_Library:Main</url>
33         <tag>HEAD</tag>
34     </scm>
35
36     <developers>
37         <developer>
38             <name>Michal Polkorab</name>
39             <email>michal.polkorab@pantheon.sk</email>
40             <organization>Pantheon Technologies</organization>
41             <organizationUrl>https://www.pantheon.sk/en/</organizationUrl>
42         </developer>
43         <developer>
44             <name>Michal Rehak</name>
45             <email>mirehak@cisco.com</email>
46             <organization>Cisco Systems</organization>
47             <organizationUrl>www.cisco.com</organizationUrl>
48         </developer>
49     </developers>
50
51     <properties>
52         <sitedeploy>dav:http://nexus.opendaylight.org/content/sites/site</sitedeploy>
53         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
54         <jmxGeneratorPath>${project.build.directory}/yang-gen-config</jmxGeneratorPath>
55         <karaf.distro.empty.version>1.6.0-Beryllium</karaf.distro.empty.version>
56         <salGeneratorPath>${project.build.directory}/yang-gen-sal</salGeneratorPath>
57
58         <config.version>0.4.0-Beryllium</config.version>
59         <mdsal.version>1.3.0-Beryllium</mdsal.version>
60         <yangtools.version>0.8.0-Beryllium</yangtools.version>
61     </properties>
62
63     <dependencyManagement>
64         <dependencies>
65             <dependency>
66               <groupId>org.opendaylight.openflowjava</groupId>
67               <artifactId>openflowjava-artifacts</artifactId>
68               <version>${project.version}</version>
69               <type>pom</type>
70               <scope>import</scope>
71             </dependency>
72             <dependency>
73               <groupId>org.opendaylight.yangtools</groupId>
74               <artifactId>yangtools-artifacts</artifactId>
75               <version>${yangtools.version}</version>
76               <type>pom</type>
77               <scope>import</scope>
78             </dependency>
79             <dependency>
80               <groupId>org.opendaylight.controller</groupId>
81               <artifactId>config-artifacts</artifactId>
82               <version>${config.version}</version>
83               <type>pom</type>
84               <scope>import</scope>
85             </dependency>
86             <dependency>
87               <groupId>org.opendaylight.controller</groupId>
88               <artifactId>mdsal-artifacts</artifactId>
89               <version>${mdsal.version}</version>
90               <scope>import</scope>
91               <type>pom</type>
92             </dependency>
93         </dependencies>
94     </dependencyManagement>
95
96     <build>
97         <plugins>
98             <plugin>
99                 <groupId>org.apache.maven.plugins</groupId>
100                 <artifactId>maven-compiler-plugin</artifactId>
101                 <inherited>true</inherited>
102                 <configuration>
103                     <source>1.7</source>
104                     <target>1.7</target>
105                 </configuration>
106             </plugin>
107             <plugin>
108                 <artifactId>maven-source-plugin</artifactId>
109                 <executions>
110                     <execution>
111                         <id>attach-sources</id>
112                         <phase>deploy</phase>
113                         <goals>
114                             <goal>jar-no-fork</goal>
115                         </goals>
116                     </execution>
117                 </executions>
118             </plugin>
119             <plugin>
120               <groupId>org.apache.felix</groupId>
121               <artifactId>maven-bundle-plugin</artifactId>
122               <extensions>true</extensions>
123               <configuration>
124                 <instructions>
125                   <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
126                 </instructions>
127                 <manifestLocation>${project.build.directory}/META-INF</manifestLocation>
128               </configuration>
129             </plugin>
130             <plugin>
131               <groupId>org.apache.maven.plugins</groupId>
132                   <artifactId>maven-checkstyle-plugin</artifactId>
133               <version>${checkstyle.version}</version>
134               <configuration>
135                 <failOnViolation>false</failOnViolation>
136                 <configLocation>checkstyle-logging.xml</configLocation>
137                 <consoleOutput>true</consoleOutput>
138                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
139                 <sourceDirectory>${project.basedir}</sourceDirectory>
140                 <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
141                 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/src/main/yang-gen-config\/,**\/src/main/yang-gen-sal\/</excludes>
142               </configuration>
143               <dependencies>
144                 <dependency>
145                 <groupId>org.opendaylight.yangtools</groupId>
146                 <artifactId>checkstyle-logging</artifactId>
147                 <version>${yangtools.version}</version>
148                 </dependency>
149               </dependencies>
150               <executions>
151                 <execution>
152                 <goals>
153                   <goal>check</goal>
154                 </goals>
155                 </execution>
156               </executions>
157             </plugin>
158             <plugin>
159                 <groupId>org.codehaus.mojo</groupId>
160                 <artifactId>build-helper-maven-plugin</artifactId>
161             </plugin>
162         </plugins>
163         <pluginManagement>
164             <plugins>
165                 <plugin>
166                     <groupId>org.opendaylight.yangtools</groupId>
167                     <artifactId>yang-maven-plugin</artifactId>
168                     <version>${yangtools.version}</version>
169                 </plugin>
170                 <plugin>
171                     <groupId>org.codehaus.mojo</groupId>
172                     <artifactId>build-helper-maven-plugin</artifactId>
173                     <version>1.8</version>
174                     <executions>
175                         <execution>
176                             <id>add-source</id>
177                             <goals>
178                                 <goal>add-source</goal>
179                             </goals>
180                             <phase>generate-sources</phase>
181                             <configuration>
182                                 <sources>
183                                     <source>src/main/yang</source>
184                                 </sources>
185                             </configuration>
186                         </execution>
187                     </executions>
188                 </plugin>
189                 <!-- Ignore/Execute plugin execution -->
190                 <plugin>
191                   <groupId>org.eclipse.m2e</groupId>
192                   <artifactId>lifecycle-mapping</artifactId>
193                   <version>1.0.0</version>
194                   <configuration>
195                     <lifecycleMappingMetadata>
196                       <pluginExecutions>
197                         <pluginExecution>
198                           <pluginExecutionFilter>
199                             <groupId>org.codehaus.mojo</groupId>
200                             <artifactId>properties-maven-plugin</artifactId>
201                             <versionRange>[0.0,)</versionRange>
202                             <goals>
203                               <goal>set-system-properties</goal>
204                             </goals>
205                           </pluginExecutionFilter>
206                           <action>
207                             <ignore/>
208                           </action>
209                         </pluginExecution>
210                         <pluginExecution>
211                           <pluginExecutionFilter>
212                             <groupId>org.jacoco</groupId>
213                             <artifactId>jacoco-maven-plugin</artifactId>
214                             <versionRange>[0.0,)</versionRange>
215                             <goals>
216                               <goal>prepare-agent</goal>
217                               <goal>pre-test</goal>
218                               <goal>post-test</goal>
219                             </goals>
220                           </pluginExecutionFilter>
221                           <action>
222                             <ignore/>
223                           </action>
224                         </pluginExecution>
225                         <pluginExecution>
226                           <pluginExecutionFilter>
227                             <groupId>org.ops4j.pax.exam</groupId>
228                             <artifactId>maven-paxexam-plugin</artifactId>
229                             <versionRange>[1.2.4,)</versionRange>
230                             <goals>
231                               <goal>generate-depends-file</goal>
232                             </goals>
233                           </pluginExecutionFilter>
234                           <action>
235                             <execute>
236                               <runOnIncremental>false</runOnIncremental>
237                             </execute>
238                           </action>
239                         </pluginExecution>
240                         <pluginExecution>
241                           <pluginExecutionFilter>
242                             <groupId>org.apache.maven.plugins</groupId>
243                             <artifactId>maven-checkstyle-plugin</artifactId>
244                             <versionRange>[2.0,)</versionRange>
245                             <goals>
246                               <goal>check</goal>
247                             </goals>
248                           </pluginExecutionFilter>
249                           <action>
250                             <ignore/>
251                           </action>
252                         </pluginExecution>
253                         <pluginExecution>
254                           <pluginExecutionFilter>
255                             <groupId>org.opendaylight.yangtools</groupId>
256                             <artifactId>yang-maven-plugin</artifactId>
257                             <versionRange>[0.5,)</versionRange>
258                             <goals>
259                               <goal>generate-sources</goal>
260                             </goals>
261                           </pluginExecutionFilter>
262                           <action>
263                             <execute/>
264                           </action>
265                         </pluginExecution>
266                         <pluginExecution>
267                           <pluginExecutionFilter>
268                             <groupId>org.codehaus.groovy.maven</groupId>
269                             <artifactId>gmaven-plugin</artifactId>
270                             <versionRange>1.0</versionRange>
271                             <goals>
272                               <goal>execute</goal>
273                             </goals>
274                           </pluginExecutionFilter>
275                           <action>
276                             <ignore/>
277                           </action>
278                         </pluginExecution>
279                         <pluginExecution>
280                           <pluginExecutionFilter>
281                             <groupId>org.apache.maven.plugins</groupId>
282                             <artifactId>maven-enforcer-plugin</artifactId>
283                             <versionRange>${enforcer.version}</versionRange>
284                             <goals>
285                               <goal>enforce</goal>
286                             </goals>
287                           </pluginExecutionFilter>
288                           <action>
289                             <ignore/>
290                           </action>
291                         </pluginExecution>
292                       </pluginExecutions>
293                     </lifecycleMappingMetadata>
294                   </configuration>
295                 </plugin>
296             </plugins>
297         </pluginManagement>
298     </build>
299     <reporting>
300         <plugins>
301             <plugin>
302                 <groupId>org.codehaus.mojo</groupId>
303                 <artifactId>findbugs-maven-plugin</artifactId>
304                 <version>2.5.2</version>
305                 <configuration>
306                     <effort>Max</effort>
307                     <threshold>Low</threshold>
308                     <goal>site</goal>
309                 </configuration>
310             </plugin>
311             <plugin>
312               <artifactId>maven-jxr-plugin</artifactId>
313               <version>2.3</version>
314               <configuration>
315                 <aggregate>true</aggregate>
316                 <linkJavadoc>true</linkJavadoc>
317               </configuration>
318             </plugin>
319
320             <plugin>
321                 <groupId>org.codehaus.mojo</groupId>
322                 <artifactId>jdepend-maven-plugin</artifactId>
323                 <version>2.0-beta-2</version>
324             </plugin>
325         </plugins>
326     </reporting>
327     <profiles>
328         <profile>
329             <id>viewbuild</id>
330             <activation>
331                 <activeByDefault>true</activeByDefault>
332             </activation>
333             <properties>
334                 <build.suffix>${project.version}</build.suffix>
335             </properties>
336         </profile>
337         <profile>
338             <id>jenkins</id>
339             <activation>
340                 <property>
341                     <name>BUILDSUFFIX</name>
342                 </property>
343             </activation>
344             <properties>
345                 <build.suffix>${BUILDSUFFIX}</build.suffix>
346             </properties>
347         </profile>
348         <profile>
349             <id>repoBuild</id>
350             <build>
351                 <plugins>
352                     <plugin>
353                         <groupId>org.apache.maven.plugins</groupId>
354                         <artifactId>maven-javadoc-plugin</artifactId>
355                         <version>2.8.1</version>
356                         <executions>
357                             <execution>
358                                 <goals>
359                                     <goal>aggregate</goal>
360                                 </goals>
361                                 <phase>site</phase>
362                             </execution>
363                             <execution>
364                                 <id>attach-javadocs</id>
365                                 <goals>
366                                     <goal>jar</goal>
367                                 </goals>
368                             </execution>
369                         </executions>
370                     </plugin>
371                     <plugin>
372                         <groupId>org.apache.maven.plugins</groupId>
373                         <artifactId>maven-source-plugin</artifactId>
374                         <executions>
375                             <execution>
376                                 <id>attach-sources</id>
377                                 <phase>package</phase>
378                                 <goals>
379                                     <goal>jar-no-fork</goal>
380                                 </goals>
381                             </execution>
382                         </executions>
383                     </plugin>
384                 </plugins>
385             </build>
386         </profile>
387     </profiles>
388 </project>