743312f62c5e84b412c98ed53ba780e3e981a463
[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 Nordix Foundation.
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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23     <modelVersion>4.0.0</modelVersion>
24     <parent>
25         <groupId>org.onap.oparent</groupId>
26         <artifactId>oparent</artifactId>
27         <!-- When changing, also change the oparent.version property -->
28         <version>3.3.2</version>
29         <relativePath />
30     </parent>
31     <groupId>org.onap.policy.parent</groupId>
32     <artifactId>policy-parent</artifactId>
33     <version>3.6.0-SNAPSHOT</version>
34     <packaging>pom</packaging>
35
36     <properties>
37         <oparent.version>3.3.2</oparent.version>
38     </properties>
39
40     <modules>
41         <module>resources</module>
42         <module>integration</module>
43     </modules>
44
45     <build>
46         <pluginManagement>
47             <plugins>
48                 <!--
49                 Using https://code.revelc.net/formatter-maven-plugin/ for Eclipse formatter
50                 Using https://github.com/diffplug/spotless/tree/master/plugin-maven for import order
51                 Use in combination to rewrite code and imports, then checkstyle
52
53                 Be sure to override ${project.parent.basedir} in order to find the XML file
54
55                 mvn formatter:format spotless:apply process-sources -Dproject.parent.basedir=TODO
56                 -->
57                 <plugin>
58                     <groupId>net.revelc.code.formatter</groupId>
59                     <artifactId>formatter-maven-plugin</artifactId>
60                     <version>2.11.0</version>
61                     <configuration>
62                         <configFile>${project.parent.basedir}/onap-java-formatter.xml</configFile>
63                     </configuration>
64                     <!-- https://code.revelc.net/formatter-maven-plugin/
65                          use mvn formatter:format to rewrite source files
66                          use mvn formatter:validate to validate source files -->
67                 </plugin>
68                 <plugin>
69                     <groupId>com.diffplug.spotless</groupId>
70                     <artifactId>spotless-maven-plugin</artifactId>
71                     <version>1.26.1</version>
72                     <configuration>
73                         <java>
74                             <importOrder>
75                                 <order>com,java,javax,org</order>
76                             </importOrder>
77                         </java>
78                     </configuration>
79                     <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven
80                          use mvn spotless:apply to rewrite source files
81                          use mvn spotless:check to validate source files -->
82                 </plugin>
83             </plugins>
84         </pluginManagement>
85     </build>
86
87 </project>