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