Bumping Apache Maven dependencies from 3.3.3 to 3.3.9
[yangtools.git] / common / parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12
13     <parent>
14         <groupId>org.opendaylight.odlparent</groupId>
15         <artifactId>odlparent</artifactId>
16         <version>1.7.0-SNAPSHOT</version>
17         <relativePath></relativePath>
18     </parent>
19
20     <modelVersion>4.0.0</modelVersion>
21     <artifactId>yangtools-parent</artifactId>
22     <groupId>org.opendaylight.yangtools</groupId>
23     <version>1.0.0-SNAPSHOT</version>
24     <packaging>pom</packaging>
25
26     <properties>
27         <yangtools.version>1.0.0-SNAPSHOT</yangtools.version>
28     </properties>
29
30     <dependencyManagement>
31         <dependencies>
32             <!-- Testing Dependencies -->
33             <dependency>
34                 <groupId>org.apache.maven.shared</groupId>
35                 <artifactId>maven-verifier</artifactId>
36                 <version>1.6</version>
37                 <scope>test</scope>
38             </dependency>
39             <dependency>
40                 <groupId>org.codehaus.groovy</groupId>
41                 <artifactId>groovy</artifactId>
42                 <version>2.4.5</version>
43                 <scope>test</scope>
44             </dependency>
45             <dependency>
46                 <groupId>org.codehaus.groovy</groupId>
47                 <artifactId>groovy-xml</artifactId>
48                 <version>2.4.5</version>
49                 <scope>test</scope>
50             </dependency>
51             <dependency>
52                 <groupId>org.apache.maven</groupId>
53                 <artifactId>maven-core</artifactId>
54                 <version>3.3.9</version>
55             </dependency>
56             <dependency>
57                 <groupId>org.apache.maven</groupId>
58                 <artifactId>maven-plugin-api</artifactId>
59                 <version>3.3.9</version>
60             </dependency>
61             <dependency>
62                 <groupId>org.eclipse.xtend</groupId>
63                 <artifactId>org.eclipse.xtend.lib</artifactId>
64                 <version>2.8.4</version>
65             </dependency>
66
67             <dependency>
68                 <groupId>org.glassfish.jersey.ext</groupId>
69                 <artifactId>jersey-proxy-client</artifactId>
70                 <version>2.22</version>
71             </dependency>
72             <dependency>
73                 <groupId>org.glassfish.jersey.core</groupId>
74                 <artifactId>jersey-client</artifactId>
75                 <version>2.22</version>
76             </dependency>
77
78             <dependency>
79                 <groupId>org.opendaylight.yangtools</groupId>
80                 <artifactId>yangtools-artifacts</artifactId>
81                 <version>${yangtools.version}</version>
82                 <scope>import</scope>
83                 <type>pom</type>
84             </dependency>
85
86             <dependency>
87                 <groupId>org.antlr</groupId>
88                 <artifactId>antlr4-runtime</artifactId>
89                 <version>4.5.1</version>
90             </dependency>
91         </dependencies>
92     </dependencyManagement>
93
94     <dependencies>
95         <!-- Sonar -->
96         <dependency>
97             <groupId>org.codehaus.sonar-plugins.java</groupId>
98             <artifactId>sonar-jacoco-listeners</artifactId>
99             <version>${sonar-jacoco-listeners.version}</version>
100             <scope>test</scope>
101         </dependency>
102         <dependency>
103             <groupId>org.slf4j</groupId>
104             <artifactId>slf4j-simple</artifactId>
105             <scope>test</scope>
106         </dependency>
107     </dependencies>
108
109     <build>
110         <pluginManagement>
111             <plugins>
112                 <plugin>
113                     <groupId>org.apache.maven.plugins</groupId>
114                     <artifactId>maven-jar-plugin</artifactId>
115                     <version>${maven.jar.version}</version>
116                     <configuration>
117                         <archive>
118                             <!--
119                                  Bundle OSGi Manifest created by maven-bundle-plugin
120                                  into a jar file
121                                  -->
122                             <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
123                         </archive>
124                     </configuration>
125                 </plugin>
126                 <plugin>
127                     <groupId>org.apache.felix</groupId>
128                     <artifactId>maven-bundle-plugin</artifactId>
129                     <extensions>true</extensions>
130                     <executions>
131                         <execution>
132                             <id>bundle-manifest</id>
133                             <phase>process-classes</phase>
134                             <goals>
135                                 <goal>manifest</goal>
136                             </goals>
137                         </execution>
138                     </executions>
139                 </plugin>
140                 <plugin>
141                     <groupId>org.apache.maven.plugins</groupId>
142                     <artifactId>maven-failsafe-plugin</artifactId>
143                     <configuration>
144                         <!-- Specific to generate mapping between tests and covered code -->
145                         <argLine>${jacoco.agent.it.arg}</argLine>
146                         <properties>
147                             <property>
148                                 <name>listener</name>
149                                 <value>org.sonar.java.jacoco.JUnitListener</value>
150                             </property>
151                         </properties>
152                         <!-- Let's put failsafe reports with surefire to have access to tests failures/success reports in sonar -->
153                         <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
154                     </configuration>
155                 </plugin>
156                 <plugin>
157                     <groupId>org.apache.maven.plugins</groupId>
158                     <artifactId>maven-surefire-plugin</artifactId>
159                     <version>${maven.surefire.version}</version>
160                     <configuration>
161                         <!-- Specific to generate mapping between tests and covered code -->
162                         <argLine>${jacoco.agent.ut.arg}</argLine>
163                         <properties>
164                             <property>
165                                 <name>listener</name>
166                                 <value>org.sonar.java.jacoco.JUnitListener</value>
167                             </property>
168                         </properties>
169                     </configuration>
170                 </plugin>
171
172                 <plugin>
173                     <groupId>org.eclipse.m2e</groupId>
174                     <artifactId>lifecycle-mapping</artifactId>
175                     <version>1.0.0</version>
176                     <configuration>
177                         <lifecycleMappingMetadata>
178                             <pluginExecutions>
179                                 <pluginExecution>
180                                     <pluginExecutionFilter>
181                                         <groupId>org.apache.felix</groupId>
182                                         <artifactId>maven-bundle-plugin</artifactId>
183                                         <versionRange>[1.0,)</versionRange>
184                                         <goals>
185                                             <goal>manifest</goal>
186                                         </goals>
187                                     </pluginExecutionFilter>
188                                     <action>
189                                         <execute />
190                                     </action>
191                                 </pluginExecution>
192                                 <pluginExecution>
193                                     <pluginExecutionFilter>
194                                         <groupId>org.apache.maven.plugins</groupId>
195                                         <artifactId>maven-antrun-plugin</artifactId>
196                                         <versionRange>[1.0,)</versionRange>
197                                         <goals>
198                                             <goal>run</goal>
199                                         </goals>
200                                     </pluginExecutionFilter>
201                                     <action>
202                                         <execute/>
203                                     </action>
204                                 </pluginExecution>
205                                 <pluginExecution>
206                                     <pluginExecutionFilter>
207                                         <groupId>org.opendaylight.yangtools</groupId>
208                                         <artifactId>yang-maven-plugin</artifactId>
209                                         <versionRange>[0.5,)</versionRange>
210                                         <goals>
211                                             <goal>generate-sources</goal>
212                                         </goals>
213                                      </pluginExecutionFilter>
214                                      <action>
215                                          <execute/>
216                                      </action>
217                                  </pluginExecution>
218                                  <pluginExecution>
219                                     <pluginExecutionFilter>
220                                         <groupId>org.codehaus.mojo</groupId>
221                                         <artifactId>properties-maven-plugin</artifactId>
222                                         <versionRange>1.0-alpha-2</versionRange>
223                                         <goals>
224                                             <goal>write-project-properties</goal>
225                                         </goals>
226                                      </pluginExecutionFilter>
227                                      <action>
228                                          <ignore />
229                                      </action>
230                                  </pluginExecution>
231                                  <pluginExecution>
232                                     <pluginExecutionFilter>
233                                         <groupId>org.ops4j.pax.exam</groupId>
234                                         <artifactId>maven-paxexam-plugin</artifactId>
235                                         <versionRange>1.2.4</versionRange>
236                                         <goals>
237                                             <goal>generate-depends-file</goal>
238                                         </goals>
239                                      </pluginExecutionFilter>
240                                      <action>
241                                          <ignore />
242                                      </action>
243                                  </pluginExecution>
244                                  <pluginExecution>
245                                     <pluginExecutionFilter>
246                                         <groupId>org.jacoco</groupId>
247                                         <artifactId>jacoco-maven-plugin</artifactId>
248                                         <versionRange>[0.6,)</versionRange>
249                                         <goals>
250                                             <goal>prepare-agent</goal>
251                                         </goals>
252                                      </pluginExecutionFilter>
253                                      <action>
254                                          <ignore/>
255                                      </action>
256                                  </pluginExecution>
257                                  <pluginExecution>
258                                      <pluginExecutionFilter>
259                                          <groupId>org.antlr</groupId>
260                                          <artifactId>antlr4-maven-plugin</artifactId>
261                                          <versionRange>[4.0,)</versionRange>
262                                          <goals>
263                                              <goal>antlr4</goal>
264                                          </goals>
265                                      </pluginExecutionFilter>
266                                      <action>
267                                          <execute />
268                                      </action>
269                                  </pluginExecution>
270                             </pluginExecutions>
271                         </lifecycleMappingMetadata>
272                     </configuration>
273                 </plugin>
274                 <plugin>
275                     <groupId>org.opendaylight.yangtools</groupId>
276                     <artifactId>yang-maven-plugin</artifactId>
277                     <version>1.0.0-SNAPSHOT</version>
278                     <executions>
279                         <execution>
280                             <goals>
281                                 <goal>generate-sources</goal>
282                             </goals>
283                             <configuration>
284                                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
285                                 <inspectDependencies>true</inspectDependencies>
286                             </configuration>
287                         </execution>
288                     </executions>
289                 </plugin>
290                 <plugin>
291                     <groupId>org.ops4j.pax.exam</groupId>
292                     <artifactId>maven-paxexam-plugin</artifactId>
293                     <version>1.2.4</version>
294                     <executions>
295                         <execution>
296                             <id>generate-config</id>
297                             <goals>
298                                 <goal>generate-depends-file</goal>
299                             </goals>
300                         </execution>
301                     </executions>
302                 </plugin>
303                 <plugin>
304                     <groupId>org.apache.maven.plugins</groupId>
305                     <artifactId>maven-javadoc-plugin</artifactId>
306                     <version>${maven.javadoc.version}</version>
307                     <configuration>
308                         <stylesheetfile>stylesheet.css</stylesheetfile>
309                     </configuration>
310                     <executions>
311                         <execution>
312                             <id>attach-javadocs</id>
313                             <goals>
314                                 <goal>jar</goal>
315                             </goals>
316                         </execution>
317                         <execution>
318                             <goals>
319                                 <goal>aggregate</goal>
320                             </goals>
321                             <phase>site</phase>
322                         </execution>
323                     </executions>
324                 </plugin>
325                 <plugin>
326                     <groupId>org.codehaus.mojo</groupId>
327                     <artifactId>build-helper-maven-plugin</artifactId>
328                     <version>1.9.1</version>
329                     <executions>
330                         <execution>
331                             <phase>generate-sources</phase>
332                             <goals>
333                                 <goal>add-source</goal>
334                             </goals>
335                             <configuration>
336                                 <sources>
337                                     <source>target/generated-sources/parser</source>
338                                     <source>target/generated-sources/sal</source>
339                                     <source>${basedir}/src/main/xtend-gen</source>
340                                 </sources>
341                             </configuration>
342                         </execution>
343                     </executions>
344                 </plugin>
345                 <plugin>
346                     <groupId>org.eclipse.xtend</groupId>
347                     <artifactId>xtend-maven-plugin</artifactId>
348                     <version>2.8.4</version>
349                     <executions>
350                         <execution>
351                             <goals>
352                                 <goal>compile</goal>
353                             </goals>
354                             <configuration>
355                                 <outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory>
356                             </configuration>
357                         </execution>
358                     </executions>
359                 </plugin>
360                 <plugin>
361                     <groupId>org.apache.servicemix.tooling</groupId>
362                     <artifactId>depends-maven-plugin</artifactId>
363                     <executions>
364                         <execution>
365                             <id>generate-depends-file</id>
366                             <goals>
367                                 <goal>generate-depends-file</goal>
368                             </goals>
369                         </execution>
370                     </executions>
371                 </plugin>
372
373                 <plugin>
374                     <groupId>org.antlr</groupId>
375                     <artifactId>antlr4-maven-plugin</artifactId>
376                     <version>4.5.1</version>
377                     <executions>
378                         <execution>
379                             <goals>
380                                 <goal>antlr4</goal>
381                             </goals>
382                         </execution>
383                     </executions>
384                 </plugin>
385             </plugins>
386         </pluginManagement>
387
388         <plugins>
389             <plugin>
390                 <groupId>org.apache.maven.plugins</groupId>
391                 <artifactId>maven-enforcer-plugin</artifactId>
392                 <!--
393                 <executions>
394                     <execution>
395                         <id>enforce-dependencies</id>
396                         <configuration>
397                             <rules>
398                                 <DependencyConvergence />
399                             </rules>
400                         </configuration>
401                         <goals>
402                             <goal>enforce</goal>
403                         </goals>
404                     </execution>
405                 </executions>
406                 -->
407             </plugin>
408
409             <plugin>
410                 <artifactId>maven-clean-plugin</artifactId>
411                 <configuration>
412                     <filesets>
413                         <fileset>
414                             <directory>${basedir}/src/main/xtend-gen</directory>
415                             <includes>
416                                 <include>**</include>
417                             </includes>
418                         </fileset>
419                     </filesets>
420                 </configuration>
421             </plugin>
422             <plugin>
423                 <groupId>org.apache.maven.plugins</groupId>
424                 <artifactId>maven-jar-plugin</artifactId>
425             </plugin>
426             <plugin>
427                 <groupId>org.apache.felix</groupId>
428                 <artifactId>maven-bundle-plugin</artifactId>
429             </plugin>
430             <plugin>
431                 <groupId>org.apache.maven.plugins</groupId>
432                 <artifactId>maven-source-plugin</artifactId>
433                 <executions>
434                     <execution>
435                         <id>attach-sources</id>
436                         <goals>
437                             <goal>jar</goal>
438                         </goals>
439                     </execution>
440                 </executions>
441             </plugin>
442             <plugin>
443                 <groupId>org.apache.maven.plugins</groupId>
444                 <artifactId>maven-javadoc-plugin</artifactId>
445             </plugin>
446             <plugin>
447                 <groupId>org.jacoco</groupId>
448                 <artifactId>jacoco-maven-plugin</artifactId>
449                 <executions>
450                     <execution>
451                         <id>prepare-ut-agent</id>
452                         <phase>process-test-classes</phase>
453                         <goals>
454                             <goal>prepare-agent</goal>
455                         </goals>
456                         <configuration>
457                             <destFile>${sonar.jacoco.reportPath}</destFile>
458                             <propertyName>jacoco.agent.ut.arg</propertyName>
459                         </configuration>
460                     </execution>
461                     <execution>
462                         <id>prepare-it-agent</id>
463                         <phase>pre-integration-test</phase>
464                         <goals>
465                             <goal>prepare-agent</goal>
466                         </goals>
467                         <configuration>
468                             <destFile>${sonar.jacoco.itReportPath}</destFile>
469                             <propertyName>jacoco.agent.it.arg</propertyName>
470                         </configuration>
471                     </execution>
472                 </executions>
473             </plugin>
474         </plugins>
475     </build>
476
477   <!--
478       Maven Site Configuration
479
480       The following configuration is necessary for maven-site-plugin to
481       correctly identify the correct deployment path for OpenDaylight Maven
482       sites.
483   -->
484   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
485
486   <distributionManagement>
487     <site>
488       <id>opendaylight-site</id>
489       <url>${nexus.site.url}/${project.artifactId}/</url>
490     </site>
491   </distributionManagement>
492 </project>