Uplift tomcat-embed-core and commons-lang
[policy/parent.git] / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3    Copyright (C) 2018 Ericsson. All rights reserved.
4    Modifications Copyright (C) 2020-2021 AT&T. All rights reserved.
5    Modifications Copyright (C) 2021, 2024-2025 OpenInfra Foundation Europe. All rights reserved.
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10
11        http://www.apache.org/licenses/LICENSE-2.0
12
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18
19   SPDX-License-Identifier: Apache-2.0
20   ============LICENSE_END=========================================================
21 -->
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24     <modelVersion>4.0.0</modelVersion>
25     <groupId>org.onap.policy.parent</groupId>
26     <artifactId>policy-parent</artifactId>
27     <version>5.2.1-SNAPSHOT</version>
28     <packaging>pom</packaging>
29
30     <properties>
31         <maven.compiler.release>17</maven.compiler.release>
32         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
33         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
34         <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
35     </properties>
36
37     <modules>
38         <module>checkstyle</module>
39         <module>resources</module>
40         <module>integration</module>
41     </modules>
42
43     <distributionManagement>
44         <repository>
45             <id>ecomp-releases</id>
46             <url>${onap.nexus.url}/content/repositories/releases</url>
47         </repository>
48         <snapshotRepository>
49             <id>ecomp-snapshots</id>
50             <url>${onap.nexus.url}/content/repositories/snapshots</url>
51         </snapshotRepository>
52     </distributionManagement>
53
54     <dependencies>
55         <dependency>
56             <groupId>org.apache.maven</groupId>
57             <artifactId>maven-core</artifactId>
58             <version>3.9.10</version>
59         </dependency>
60         <dependency>
61             <groupId>org.apache.maven</groupId>
62             <artifactId>maven-compat</artifactId>
63             <version>3.9.10</version>
64         </dependency>
65     </dependencies>
66
67     <build>
68         <pluginManagement>
69             <plugins>
70                 <!--
71                 Using https://code.revelc.net/formatter-maven-plugin/ for Eclipse formatter
72                 Using https://github.com/diffplug/spotless/tree/master/plugin-maven for import order
73                 Use in combination to rewrite code and imports, then checkstyle
74
75                 Be sure to override ${project.parent.basedir} in order to find the XML file
76
77                 mvn formatter:format spotless:apply process-sources -Dproject.parent.basedir=<basedir>
78                 -->
79                 <plugin>
80                     <groupId>net.revelc.code.formatter</groupId>
81                     <artifactId>formatter-maven-plugin</artifactId>
82                     <version>2.24.1</version>
83                     <configuration>
84                         <configFile>${project.basedir}/onap-java-formatter.xml</configFile>
85                     </configuration>
86                     <!-- https://code.revelc.net/formatter-maven-plugin/
87                          use mvn formatter:format to rewrite source files
88                          use mvn formatter:validate to validate source files -->
89                 </plugin>
90                 <plugin>
91                     <groupId>com.diffplug.spotless</groupId>
92                     <artifactId>spotless-maven-plugin</artifactId>
93                     <version>2.43.0</version>
94                     <configuration>
95                         <java>
96                             <importOrder>
97                                 <order>com,java,javax,org</order>
98                             </importOrder>
99                         </java>
100                     </configuration>
101                     <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven
102                          use mvn spotless:apply to rewrite source files
103                          use mvn spotless:check to validate source files -->
104                 </plugin>
105             </plugins>
106         </pluginManagement>
107         <plugins>
108             <plugin>
109                 <groupId>org.apache.maven.plugins</groupId>
110                 <artifactId>maven-compiler-plugin</artifactId>
111                 <version>3.14.0</version>
112                 <configuration>
113                     <encoding>${project.build.sourceEncoding}</encoding>
114                     <release>${maven.compiler.release}</release>
115                 </configuration>
116             </plugin>
117             <plugin>
118                 <groupId>org.apache.maven.plugins</groupId>
119                 <artifactId>maven-site-plugin</artifactId>
120                 <version>3.21.0</version>
121             </plugin>
122             <plugin>
123                 <groupId>org.owasp</groupId>
124                 <artifactId>dependency-check-maven</artifactId>
125                 <version>10.0.3</version>
126             </plugin>
127         </plugins>
128     </build>
129
130 </project>