OpenDaylight Beryllium-SR4 release
[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.4-Beryllium-SR4</version>
8         <relativePath/>
9     </parent>
10
11     <groupId>org.opendaylight.openflowjava</groupId>
12     <artifactId>openflowjava-parent</artifactId>
13     <version>0.7.4-Beryllium-SR4</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         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
53         <jmxGeneratorPath>${project.build.directory}/yang-gen-config</jmxGeneratorPath>
54         <karaf.distro.empty.version>1.6.4-Beryllium-SR4</karaf.distro.empty.version>
55         <salGeneratorPath>${project.build.directory}/yang-gen-sal</salGeneratorPath>
56
57         <config.version>0.4.4-Beryllium-SR4</config.version>
58         <mdsal.version>1.3.4-Beryllium-SR4</mdsal.version>
59         <yangtools.version>0.8.4-Beryllium-SR4</yangtools.version>
60         <argparse4j.version>0.7.0</argparse4j.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             <dependency>
94                 <groupId>net.sourceforge.argparse4j</groupId>
95                 <artifactId>argparse4j</artifactId>
96                 <version>${argparse4j.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                 <inherited>true</inherited>
107                 <configuration>
108                     <source>1.7</source>
109                     <target>1.7</target>
110                 </configuration>
111             </plugin>
112             <plugin>
113                 <artifactId>maven-source-plugin</artifactId>
114                 <executions>
115                     <execution>
116                         <id>attach-sources</id>
117                         <phase>deploy</phase>
118                         <goals>
119                             <goal>jar-no-fork</goal>
120                         </goals>
121                     </execution>
122                 </executions>
123             </plugin>
124             <plugin>
125               <groupId>org.apache.felix</groupId>
126               <artifactId>maven-bundle-plugin</artifactId>
127               <extensions>true</extensions>
128               <configuration>
129                 <instructions>
130                   <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
131                 </instructions>
132                 <manifestLocation>${project.build.directory}/META-INF</manifestLocation>
133               </configuration>
134             </plugin>
135             <plugin>
136               <groupId>org.apache.maven.plugins</groupId>
137                   <artifactId>maven-checkstyle-plugin</artifactId>
138               <version>${checkstyle.version}</version>
139               <configuration>
140                 <failOnViolation>false</failOnViolation>
141                 <configLocation>checkstyle-logging.xml</configLocation>
142                 <consoleOutput>true</consoleOutput>
143                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
144                 <sourceDirectory>${project.basedir}</sourceDirectory>
145                 <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
146                 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/src/main/yang-gen-config\/,**\/src/main/yang-gen-sal\/</excludes>
147               </configuration>
148               <dependencies>
149                 <dependency>
150                 <groupId>org.opendaylight.yangtools</groupId>
151                 <artifactId>checkstyle-logging</artifactId>
152                 <version>${yangtools.version}</version>
153                 </dependency>
154               </dependencies>
155               <executions>
156                 <execution>
157                 <goals>
158                   <goal>check</goal>
159                 </goals>
160                 </execution>
161               </executions>
162             </plugin>
163             <plugin>
164                 <groupId>org.codehaus.mojo</groupId>
165                 <artifactId>build-helper-maven-plugin</artifactId>
166             </plugin>
167         </plugins>
168         <pluginManagement>
169             <plugins>
170                 <plugin>
171                     <groupId>org.opendaylight.yangtools</groupId>
172                     <artifactId>yang-maven-plugin</artifactId>
173                     <version>${yangtools.version}</version>
174                 </plugin>
175                 <plugin>
176                     <groupId>org.codehaus.mojo</groupId>
177                     <artifactId>build-helper-maven-plugin</artifactId>
178                     <version>1.8</version>
179                     <executions>
180                         <execution>
181                             <id>add-source</id>
182                             <goals>
183                                 <goal>add-source</goal>
184                             </goals>
185                             <phase>generate-sources</phase>
186                             <configuration>
187                                 <sources>
188                                     <source>src/main/yang</source>
189                                 </sources>
190                             </configuration>
191                         </execution>
192                     </executions>
193                 </plugin>
194                 <!-- Ignore/Execute plugin execution -->
195                 <plugin>
196                   <groupId>org.eclipse.m2e</groupId>
197                   <artifactId>lifecycle-mapping</artifactId>
198                   <version>1.0.0</version>
199                   <configuration>
200                     <lifecycleMappingMetadata>
201                       <pluginExecutions>
202                         <pluginExecution>
203                           <pluginExecutionFilter>
204                             <groupId>org.codehaus.mojo</groupId>
205                             <artifactId>properties-maven-plugin</artifactId>
206                             <versionRange>[0.0,)</versionRange>
207                             <goals>
208                               <goal>set-system-properties</goal>
209                             </goals>
210                           </pluginExecutionFilter>
211                           <action>
212                             <ignore/>
213                           </action>
214                         </pluginExecution>
215                         <pluginExecution>
216                           <pluginExecutionFilter>
217                             <groupId>org.jacoco</groupId>
218                             <artifactId>jacoco-maven-plugin</artifactId>
219                             <versionRange>[0.0,)</versionRange>
220                             <goals>
221                               <goal>prepare-agent</goal>
222                               <goal>pre-test</goal>
223                               <goal>post-test</goal>
224                             </goals>
225                           </pluginExecutionFilter>
226                           <action>
227                             <ignore/>
228                           </action>
229                         </pluginExecution>
230                         <pluginExecution>
231                           <pluginExecutionFilter>
232                             <groupId>org.ops4j.pax.exam</groupId>
233                             <artifactId>maven-paxexam-plugin</artifactId>
234                             <versionRange>[1.2.4,)</versionRange>
235                             <goals>
236                               <goal>generate-depends-file</goal>
237                             </goals>
238                           </pluginExecutionFilter>
239                           <action>
240                             <execute>
241                               <runOnIncremental>false</runOnIncremental>
242                             </execute>
243                           </action>
244                         </pluginExecution>
245                         <pluginExecution>
246                           <pluginExecutionFilter>
247                             <groupId>org.apache.maven.plugins</groupId>
248                             <artifactId>maven-checkstyle-plugin</artifactId>
249                             <versionRange>[2.0,)</versionRange>
250                             <goals>
251                               <goal>check</goal>
252                             </goals>
253                           </pluginExecutionFilter>
254                           <action>
255                             <ignore/>
256                           </action>
257                         </pluginExecution>
258                         <pluginExecution>
259                           <pluginExecutionFilter>
260                             <groupId>org.opendaylight.yangtools</groupId>
261                             <artifactId>yang-maven-plugin</artifactId>
262                             <versionRange>[0.5,)</versionRange>
263                             <goals>
264                               <goal>generate-sources</goal>
265                             </goals>
266                           </pluginExecutionFilter>
267                           <action>
268                             <execute/>
269                           </action>
270                         </pluginExecution>
271                         <pluginExecution>
272                           <pluginExecutionFilter>
273                             <groupId>org.codehaus.groovy.maven</groupId>
274                             <artifactId>gmaven-plugin</artifactId>
275                             <versionRange>1.0</versionRange>
276                             <goals>
277                               <goal>execute</goal>
278                             </goals>
279                           </pluginExecutionFilter>
280                           <action>
281                             <ignore/>
282                           </action>
283                         </pluginExecution>
284                         <pluginExecution>
285                           <pluginExecutionFilter>
286                             <groupId>org.apache.maven.plugins</groupId>
287                             <artifactId>maven-enforcer-plugin</artifactId>
288                             <versionRange>${enforcer.version}</versionRange>
289                             <goals>
290                               <goal>enforce</goal>
291                             </goals>
292                           </pluginExecutionFilter>
293                           <action>
294                             <ignore/>
295                           </action>
296                         </pluginExecution>
297                       </pluginExecutions>
298                     </lifecycleMappingMetadata>
299                   </configuration>
300                 </plugin>
301             </plugins>
302         </pluginManagement>
303     </build>
304     <reporting>
305         <plugins>
306             <plugin>
307                 <groupId>org.codehaus.mojo</groupId>
308                 <artifactId>findbugs-maven-plugin</artifactId>
309                 <version>2.5.2</version>
310                 <configuration>
311                     <effort>Max</effort>
312                     <threshold>Low</threshold>
313                     <goal>site</goal>
314                 </configuration>
315             </plugin>
316             <plugin>
317               <artifactId>maven-jxr-plugin</artifactId>
318               <version>2.3</version>
319               <configuration>
320                 <aggregate>true</aggregate>
321                 <linkJavadoc>true</linkJavadoc>
322               </configuration>
323             </plugin>
324
325             <plugin>
326                 <groupId>org.codehaus.mojo</groupId>
327                 <artifactId>jdepend-maven-plugin</artifactId>
328                 <version>2.0-beta-2</version>
329             </plugin>
330         </plugins>
331     </reporting>
332     <profiles>
333         <profile>
334             <id>viewbuild</id>
335             <activation>
336                 <activeByDefault>true</activeByDefault>
337             </activation>
338             <properties>
339                 <build.suffix>${project.version}</build.suffix>
340             </properties>
341         </profile>
342         <profile>
343             <id>jenkins</id>
344             <activation>
345                 <property>
346                     <name>BUILDSUFFIX</name>
347                 </property>
348             </activation>
349             <properties>
350                 <build.suffix>${BUILDSUFFIX}</build.suffix>
351             </properties>
352         </profile>
353         <profile>
354             <id>repoBuild</id>
355             <build>
356                 <plugins>
357                     <plugin>
358                         <groupId>org.apache.maven.plugins</groupId>
359                         <artifactId>maven-javadoc-plugin</artifactId>
360                         <version>2.8.1</version>
361                         <executions>
362                             <execution>
363                                 <goals>
364                                     <goal>aggregate</goal>
365                                 </goals>
366                                 <phase>site</phase>
367                             </execution>
368                             <execution>
369                                 <id>attach-javadocs</id>
370                                 <goals>
371                                     <goal>jar</goal>
372                                 </goals>
373                             </execution>
374                         </executions>
375                     </plugin>
376                     <plugin>
377                         <groupId>org.apache.maven.plugins</groupId>
378                         <artifactId>maven-source-plugin</artifactId>
379                         <executions>
380                             <execution>
381                                 <id>attach-sources</id>
382                                 <phase>package</phase>
383                                 <goals>
384                                     <goal>jar-no-fork</goal>
385                                 </goals>
386                             </execution>
387                         </executions>
388                     </plugin>
389                 </plugins>
390             </build>
391         </profile>
392     </profiles>
393 </project>