Updating jetty and including jetty-security
[oparent.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3    Copyright (c) 2016-2018 Huawei Technologies Co., Ltd.
4    Modifications copyright (C) 2017-2019 AT&T Intellectual Property
5
6    Licensed under the Apache License, Version 2.0 (the "License");
7    you may not use this file except in compliance with the License.
8    You may obtain a copy of the License at
9
10        http://www.apache.org/licenses/LICENSE-2.0
11
12    Unless required by applicable law or agreed to in writing, software
13    distributed under the License is distributed on an "AS IS" BASIS,
14    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15    See the License for the specific language governing permissions and
16    limitations under the License.
17 -->
18 <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">
19   <modelVersion>4.0.0</modelVersion>
20   <name>oparent</name>
21   <groupId>org.onap.oparent</groupId>
22   <artifactId>version</artifactId>
23   <version>3.1.0-SNAPSHOT</version>
24   <packaging>pom</packaging>
25   <modules>
26     <!-- oparent tools -->
27     <module>checkstyle</module>
28     <module>license</module>
29     <module>oparent</module>
30     <module>oparent-python</module>
31     <module>dependencies</module>
32     <module>dependencies-clm</module>
33   </modules>
34   <properties>
35     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
37     <!-- sitePath may be overridden in the inheriting POM if desired -->
38     <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
39     <maven.compiler.release>11</maven.compiler.release>
40     <sonar.scanner.version>3.7.0.1746</sonar.scanner.version>
41
42     <!-- 
43        In the java 8 version of oparent there were two variables defined for 1.8 source and target. These are no longer
44        applicable in Java 11 but you may be referencing them in your child poms so review and update as appropriate.
45          <maven.compiler.source>1.8</maven.compiler.source>
46          <maven.compiler.target>1.8</maven.compiler.target>
47     -->
48     <!--
49         The following properties should be defined in your own ~/.m2/settings.xml based on your own build infastructure setup.
50         See the settings.xml in this directory for default settings based on the Linux Foundation ONAP infrastructure.
51
52     <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
53     <onap.nexus.rawrepo.baseurl.upload>https://nexus.onap.org/content/sites/raw</onap.nexus.rawrepo.baseurl.upload>
54     <onap.nexus.rawrepo.baseurl.download>https://nexus.onap.org/service/local/repositories/raw/content</onap.nexus.rawrepo.baseurl.download>
55     <onap.nexus.rawrepo.serverid>ecomp-raw</onap.nexus.rawrepo.serverid>
56     <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily>
57     <onap.nexus.dockerregistry.release>nexus3.onap.org:10002</onap.nexus.dockerregistry.release>
58     <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
59     <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
60     -->
61   </properties>
62   <distributionManagement>
63     <repository>
64       <id>ecomp-releases</id>
65       <url>${onap.nexus.url}/content/repositories/releases</url>
66     </repository>
67     <snapshotRepository>
68       <id>ecomp-snapshots</id>
69       <url>${onap.nexus.url}/content/repositories/snapshots</url>
70     </snapshotRepository>
71   </distributionManagement>
72   <build>
73     <pluginManagement>
74       <plugins>
75         <plugin>
76             <groupId>org.apache.maven.plugins</groupId>
77             <artifactId>maven-compiler-plugin</artifactId>
78             <version>3.8.0</version>
79             <configuration>
80                <release>${maven.compiler.release}</release>
81             </configuration>
82         </plugin>
83         <plugin>
84             <groupId>org.codehaus.mojo</groupId>
85             <artifactId>versions-maven-plugin</artifactId>
86             <version>2.7</version>
87             <configuration>
88                <generateBackupPoms>false</generateBackupPoms>
89             </configuration>
90         </plugin>
91         <plugin>
92           <groupId>org.apache.maven.plugins</groupId>
93           <artifactId>maven-deploy-plugin</artifactId>
94           <!-- This version supports the "deployAtEnd" parameter -->
95           <version>2.8</version>
96           <configuration>
97             <skip/>
98           </configuration>
99         </plugin>
100         <plugin>
101           <groupId>org.apache.maven.plugins</groupId>
102           <artifactId>maven-site-plugin</artifactId>
103           <version>3.6</version>
104           <dependencies>
105             <dependency>
106               <groupId>org.apache.maven.wagon</groupId>
107               <artifactId>wagon-webdav-jackrabbit</artifactId>
108               <version>2.10</version>
109             </dependency>
110           </dependencies>
111         </plugin>
112         <plugin>
113           <groupId>org.apache.maven.plugins</groupId>
114           <artifactId>maven-enforcer-plugin</artifactId>
115           <version>3.0.0-M2</version>
116           <executions>
117             <execution>
118               <id>enforce-property</id>
119               <goals>
120                 <goal>enforce</goal>
121               </goals>
122               <configuration>
123                 <rules>
124                   <requireProperty>
125                     <property>onap.nexus.url</property>
126                     <message>You must set a onap.nexus.url property in your ~/.m2/settings.xml.  See oparent/settings.xml for an example.</message>
127                   </requireProperty>
128                 </rules>
129                 <fail>true</fail>
130               </configuration>
131             </execution>
132             <execution>
133               <id>enforce-no-snapshots</id>
134               <goals>
135                 <goal>enforce</goal>
136               </goals>
137               <configuration>
138                 <rules>
139                   <requireReleaseDeps>
140                     <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
141                     <onlyWhenRelease>true</onlyWhenRelease>
142                     <level>ERROR</level>
143                   </requireReleaseDeps>
144                 </rules>
145               </configuration>
146             </execution>
147           </executions>
148         </plugin>
149         <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
150         <plugin>
151           <groupId>org.sonarsource.scanner.maven</groupId>
152           <artifactId>sonar-maven-plugin</artifactId>
153           <version>${sonar.scanner.version}</version>
154         </plugin>
155         <!--
156         Using https://code.revelc.net/formatter-maven-plugin/ for Eclipse formatter
157         Using https://github.com/diffplug/spotless/tree/master/plugin-maven for import order
158         Use in combination to rewrite code and imports, then checkstyle
159
160         Be sure to override ${project.parent.basedir} in order to find the XML file
161
162         1st - your project should be inheriting from this oparent java dependency
163         2nd - go into your project's source directory
164         3rd - type in the following and make sure you set the path to where you have oparent cloned and its
165               onap-java-formatter.xml file
166
167         mvn formatter:format spotless:apply process-sources -Dproject.parent.basedir=TODO
168         -->
169         <plugin>
170             <groupId>net.revelc.code.formatter</groupId>
171             <artifactId>formatter-maven-plugin</artifactId>
172             <version>2.11.0</version>
173             <configuration>
174                 <configFile>${project.parent.basedir}/onap-java-formatter.xml</configFile>
175             </configuration>
176             <!-- https://code.revelc.net/formatter-maven-plugin/
177                  use mvn formatter:format to rewrite source files
178                  use mvn formatter:validate to validate source files -->
179         </plugin>
180         <plugin>
181             <groupId>com.diffplug.spotless</groupId>
182             <artifactId>spotless-maven-plugin</artifactId>
183             <version>1.26.1</version>
184             <configuration>
185                 <java>
186                     <importOrder>
187                         <order>com,java,javax,org</order>
188                     </importOrder>
189                 </java>
190             </configuration>
191             <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven
192                  use mvn spotless:apply to rewrite source files
193                  use mvn spotless:check to validate source files -->
194         </plugin>
195       </plugins>
196     </pluginManagement>
197     <plugins>
198       <plugin>
199         <groupId>org.apache.maven.plugins</groupId>
200         <artifactId>maven-deploy-plugin</artifactId>
201       </plugin>
202       <plugin>
203         <groupId>org.apache.maven.plugins</groupId>
204         <artifactId>maven-site-plugin</artifactId>
205       </plugin>
206       <plugin>
207         <groupId>org.apache.maven.plugins</groupId>
208         <artifactId>maven-enforcer-plugin</artifactId>
209       </plugin>
210     </plugins>
211   </build>
212 </project>