Bump MRI upstreams
[neutron.git] / parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright (c) 2018 Intel Corporation and others. All rights reserved.
4
5  This program and the accompanying materials are made available under the
6  terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  and is available at http://www.eclipse.org/legal/epl-v10.html
8 -->
9 <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">
10   <modelVersion>4.0.0</modelVersion>
11
12   <parent>
13     <groupId>org.opendaylight.mdsal</groupId>
14     <artifactId>binding-parent</artifactId>
15     <version>7.0.3</version>
16     <relativePath/>
17   </parent>
18
19   <groupId>org.opendaylight.neutron</groupId>
20   <artifactId>project-neutron-parent</artifactId>
21   <version>0.16.0-SNAPSHOT</version>
22   <packaging>pom</packaging>
23   <!-- <name> formatting is used by autorelease to parse and notify projects on
24        build failure. Please do not modify this unless you have a good reason. -->
25   <name>ODL :: neutron :: ${project.artifactId}</name>
26
27   <properties>
28     <sonar.jacoco.reportPath>target/jacoco.exec</sonar.jacoco.reportPath>
29     <sonar.jacoco.itReportPath>../target/jacoco-it.exec</sonar.jacoco.itReportPath>
30   </properties>
31   <scm>
32     <connection>scm:git:ssh://git.opendaylight.org:29418/neutron.git</connection>
33     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/neutron.git</developerConnection>
34     <tag>HEAD</tag>
35   </scm>
36
37   <dependencyManagement>
38     <dependencies>
39       <dependency>
40         <groupId>org.opendaylight.infrautils</groupId>
41         <artifactId>infrautils-artifacts</artifactId>
42         <version>1.9.0</version>
43         <type>pom</type>
44         <scope>import</scope>
45       </dependency>
46       <dependency>
47         <groupId>org.opendaylight.controller</groupId>
48         <artifactId>controller-artifacts</artifactId>
49         <version>3.0.3</version>
50         <type>pom</type>
51         <scope>import</scope>
52       </dependency>
53
54       <!-- NEUTRON-197: We need to enforce usage of org.glassfish:javax.json v1.0.4,
55            that exact old version, because only that version includes both packages javax.json.*
56            as well as org.glassfish.json.* (AND THEREFORE THE Class.forName WORKS EVEN UNDER OSGi).
57
58            Newer releases of org.glassfish:javax.json (such as 1.1.2) have (only) the
59            org.glassfish.json packages, with a dep to the separate new javax.json:javax.json-api
60            which contains (only) the javax.json packages; this nicer API / Impl split packaging breaks under OSGi.
61
62            We must also prevent Moxy from dragging along javax.json:javax.json-api
63            to prevent confusing classpath duplicates on javax.json.  Moxy changed its policy from directly depending
64            on org.glassfish:javax.json 1.0.4 in its 2.7.1 to depending on javax.json:javax.json-api since 2.7.3.
65
66            The same block is copy/pasted in ../features/parent (that's the
67            neutron-single-feature-parent, not to be confused with this project-neutron-parent);
68            keep any changes made there, or here, in sync with each other. -->
69       <dependency>
70          <groupId>org.eclipse.persistence</groupId>
71          <artifactId>org.eclipse.persistence.moxy</artifactId>
72          <version>2.7.5</version>
73          <exclusions>
74            <exclusion>
75              <groupId>javax.json</groupId>
76              <artifactId>javax.json-api</artifactId>
77            </exclusion>
78          </exclusions>
79       </dependency>
80       <dependency>
81         <groupId>org.glassfish</groupId>
82         <artifactId>javax.json</artifactId>
83         <!-- do not touch this version, see above -->
84         <version>1.0.4</version>
85       </dependency>
86       <dependency>
87         <groupId>javax.validation</groupId>
88         <artifactId>validation-api</artifactId>
89         <version>1.1.0.Final</version>
90       </dependency>
91     </dependencies>
92   </dependencyManagement>
93
94   <build>
95     <plugins>
96       <plugin>
97         <artifactId>maven-checkstyle-plugin</artifactId>
98         <configuration>
99           <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
100         </configuration>
101       </plugin>
102       <plugin>
103         <groupId>com.github.spotbugs</groupId>
104         <artifactId>spotbugs-maven-plugin</artifactId>
105         <configuration>
106           <failOnError>true</failOnError>
107         </configuration>
108       </plugin>
109     </plugins>
110   </build>
111 </project>