2 ============LICENSE_START=======================================================
3 Copyright (C) 2018 Ericsson. All rights reserved.
4 ================================================================================
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
9 http://www.apache.org/licenses/LICENSE-2.0
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
17 SPDX-License-Identifier: Apache-2.0
18 ============LICENSE_END=========================================================
20 <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">
21 <modelVersion>4.0.0</modelVersion>
23 <groupId>org.onap.oparent</groupId>
24 <artifactId>oparent</artifactId>
25 <version>2.1.0</version>
28 <groupId>org.onap.policy.parent</groupId>
29 <artifactId>policy-parent</artifactId>
30 <version>3.1.0-SNAPSHOT</version>
31 <packaging>pom</packaging>
34 <oparent.version>2.1.0</oparent.version>
38 <module>integration</module>
45 Using https://code.revelc.net/formatter-maven-plugin/ for Eclipse formatter
46 Using https://github.com/diffplug/spotless/tree/master/plugin-maven for import order
47 Use in combination to rewrite code and imports, then checkstyle
49 mvn formatter:format spotless:apply process-sources
52 <groupId>net.revelc.code.formatter</groupId>
53 <artifactId>formatter-maven-plugin</artifactId>
54 <version>2.8.1</version>
56 <configFile>${project.parent.basedir}/onap-java-formatter.xml</configFile>
58 <!-- https://code.revelc.net/formatter-maven-plugin/
59 use mvn formatter:format to rewrite source files
60 use mvn formatter:validate to validate source files -->
63 <groupId>com.diffplug.spotless</groupId>
64 <artifactId>spotless-maven-plugin</artifactId>
65 <version>1.18.0</version>
69 <order>com,java,javax,org</order>
73 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven
74 use mvn spotless:apply to rewrite source files
75 use mvn spotless:check to validate source files -->