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