blob: 18c74a3794058b38a118ec05f2ba2d0d5210b04f [file] [log] [blame]
eikrwaq5eb9cfd2018-05-22 09:48:30 +01001<!--
2 ============LICENSE_START=======================================================
3 Copyright (C) 2018 Ericsson. All rights reserved.
Pamela Dragosh54dc8c42021-01-26 07:52:57 -05004 Modifications Copyright (C) 2020-2021 AT&T. All rights reserved.
adheli.tavares71610442024-03-12 15:50:35 +00005 Modifications Copyright (C) 2021, 2024 Nordix Foundation.
eikrwaq5eb9cfd2018-05-22 09:48:30 +01006 ================================================================================
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-->
adheli.tavares14f51a72024-04-12 14:55:07 +010022<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">
eikrwaq5eb9cfd2018-05-22 09:48:30 +010024 <modelVersion>4.0.0</modelVersion>
eikrwaq5eb9cfd2018-05-22 09:48:30 +010025 <groupId>org.onap.policy.parent</groupId>
26 <artifactId>policy-parent</artifactId>
waynedunican30bda122024-02-16 13:07:06 +000027 <version>4.1.2-SNAPSHOT</version>
eikrwaq5eb9cfd2018-05-22 09:48:30 +010028 <packaging>pom</packaging>
29
Pamela Dragoshc6f09d32018-08-22 13:58:13 -040030 <properties>
adheli.tavares14f51a72024-04-12 14:55:07 +010031 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
32 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
33 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
Pamela Dragoshc6f09d32018-08-22 13:58:13 -040034 </properties>
eikrwaq5eb9cfd2018-05-22 09:48:30 +010035
36 <modules>
adheli.tavares14f51a72024-04-12 14:55:07 +010037 <module>checkstyle</module>
liamfallon12332142021-07-15 14:59:06 +010038 <module>resources</module>
eikrwaq5eb9cfd2018-05-22 09:48:30 +010039 <module>integration</module>
40 </modules>
Pamela Dragoshd3e39032019-10-04 16:45:50 -040041
adheli.tavares14f51a72024-04-12 14:55:07 +010042 <distributionManagement>
43 <repository>
44 <id>ecomp-releases</id>
45 <url>${onap.nexus.url}/content/repositories/releases</url>
46 </repository>
47 <snapshotRepository>
48 <id>ecomp-snapshots</id>
49 <url>${onap.nexus.url}/content/repositories/snapshots</url>
50 </snapshotRepository>
51 </distributionManagement>
52
Pamela Dragoshd3e39032019-10-04 16:45:50 -040053 <build>
54 <pluginManagement>
55 <plugins>
56 <!--
57 Using https://code.revelc.net/formatter-maven-plugin/ for Eclipse formatter
58 Using https://github.com/diffplug/spotless/tree/master/plugin-maven for import order
59 Use in combination to rewrite code and imports, then checkstyle
60
Pamela Dragosh4b48d372019-10-17 10:28:38 -040061 Be sure to override ${project.parent.basedir} in order to find the XML file
62
liamfallon7c5702f2022-09-16 20:06:13 +010063 mvn formatter:format spotless:apply process-sources -Dproject.parent.basedir=<basedir>
Pamela Dragoshd3e39032019-10-04 16:45:50 -040064 -->
65 <plugin>
66 <groupId>net.revelc.code.formatter</groupId>
67 <artifactId>formatter-maven-plugin</artifactId>
HOCKLA4b7e2702019-12-10 09:54:48 -060068 <version>2.11.0</version>
Pamela Dragoshd3e39032019-10-04 16:45:50 -040069 <configuration>
70 <configFile>${project.parent.basedir}/onap-java-formatter.xml</configFile>
71 </configuration>
72 <!-- https://code.revelc.net/formatter-maven-plugin/
73 use mvn formatter:format to rewrite source files
74 use mvn formatter:validate to validate source files -->
75 </plugin>
76 <plugin>
77 <groupId>com.diffplug.spotless</groupId>
78 <artifactId>spotless-maven-plugin</artifactId>
HOCKLA4b7e2702019-12-10 09:54:48 -060079 <version>1.26.1</version>
Pamela Dragoshd3e39032019-10-04 16:45:50 -040080 <configuration>
81 <java>
82 <importOrder>
83 <order>com,java,javax,org</order>
84 </importOrder>
85 </java>
86 </configuration>
87 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven
88 use mvn spotless:apply to rewrite source files
89 use mvn spotless:check to validate source files -->
90 </plugin>
adheli.tavares14f51a72024-04-12 14:55:07 +010091 <plugin>
92 <groupId>org.sonarsource.scanner.maven</groupId>
93 <artifactId>sonar-maven-plugin</artifactId>
94 <version>${sonar.scanner.version}</version>
95 </plugin>
Pamela Dragoshd3e39032019-10-04 16:45:50 -040096 </plugins>
97 </pluginManagement>
98 </build>
99
Pamela Dragoshfb1af892018-08-27 13:51:57 -0400100</project>