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