3 ============LICENSE_START=======================================================
5 ================================================================================
6 Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
12 http://www.apache.org/licenses/LICENSE-2.0
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END=========================================================
22 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
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>
26 <groupId>org.onap.oparent</groupId>
27 <artifactId>oparent</artifactId>
28 <version>2.1.0</version>
31 <groupId>org.onap.aai.aai-common</groupId>
32 <artifactId>aai-common</artifactId>
33 <version>1.6.2-SNAPSHOT</version>
34 <packaging>pom</packaging>
35 <name>aai-aai-common</name>
36 <description>Contains all of the common code for resources and traversal repos</description>
39 <module>aai-parent</module>
40 <module>aai-rest</module>
41 <module>aai-schema-ingest</module>
42 <module>aai-annotations</module>
43 <module>aai-core</module>
44 <module>aai-auth</module>
45 <module>aai-utils</module>
46 <module>aai-schema-abstraction</module>
53 <module>aai-common-docker</module>
59 <aai.generate.schema>true</aai.generate.schema>
60 <sitePath>/content/sites/site/org/onap/aai/aai-common/${project.artifactId}/${project.version}</sitePath>
61 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
62 <onap.nexus.snapshot.path>/content/repositories/snapshots/</onap.nexus.snapshot.path>
63 <onap.nexus.snapshot.id>ecomp-snapshots</onap.nexus.snapshot.id>
64 <onap.nexus.release.path>/content/repositories/releases/</onap.nexus.release.path>
65 <onap.nexus.release.id>ecomp-releases</onap.nexus.release.id>
72 Using https://code.revelc.net/formatter-maven-plugin/ for Eclipse formatter
73 Using https://github.com/diffplug/spotless/tree/master/plugin-maven for import order
74 Use in combination to rewrite code and imports, then checkstyle
76 mvn formatter:format spotless:apply process-sources
79 <groupId>net.revelc.code.formatter</groupId>
80 <artifactId>formatter-maven-plugin</artifactId>
81 <version>2.8.1</version>
83 <configFile>${project.parent.basedir}/onap-java-formatter.xml</configFile>
85 <!-- https://code.revelc.net/formatter-maven-plugin/
86 use mvn formatter:format to rewrite source files
87 use mvn formatter:validate to validate source files -->
90 <groupId>com.diffplug.spotless</groupId>
91 <artifactId>spotless-maven-plugin</artifactId>
92 <version>1.18.0</version>
96 <order>com,java,javax,org</order>
100 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven
101 use mvn spotless:apply to rewrite source files
102 use mvn spotless:check to validate source files -->
105 <groupId>org.apache.maven.plugins</groupId>
106 <artifactId>maven-compiler-plugin</artifactId>
113 <groupId>org.apache.maven.plugins</groupId>
114 <artifactId>maven-source-plugin</artifactId>
115 <version>3.0.1</version>
118 <id>attach-sources</id>
119 <phase>deploy</phase>
121 <goal>jar-no-fork</goal>
127 <groupId>org.apache.maven.plugins</groupId>
128 <artifactId>maven-deploy-plugin</artifactId>
129 <version>2.8.2</version>
132 <groupId>com.mycila</groupId>
133 <artifactId>license-maven-plugin</artifactId>
134 <version>3.0</version>
136 <header>LICENSE.TXT</header>
138 <include>src/main/java/**</include>
139 <include>src/test/java/**</include>
140 <include>pom.xml</include>
142 <skipExistingHeaders>true</skipExistingHeaders>
150 <groupId>org.apache.maven.plugins</groupId>
151 <artifactId>maven-site-plugin</artifactId>
152 <version>3.6</version>
156 <groupId>org.apache.maven.plugins</groupId>
157 <artifactId>maven-project-info-reports-plugin</artifactId>
158 <version>2.4</version>
160 <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
161 <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
164 <report>dependencies</report>
168 <groupId>org.apache.maven.plugins</groupId>
169 <artifactId>maven-javadoc-plugin</artifactId>
170 <version>2.8</version>
172 <additionalparam>-Xdoclint:none</additionalparam>
179 <groupId>org.apache.maven.wagon</groupId>
180 <artifactId>wagon-webdav-jackrabbit</artifactId>
181 <version>2.10</version>
186 <groupId>com.mycila</groupId>
187 <artifactId>license-maven-plugin</artifactId>
192 <distributionManagement>
194 <id>${onap.nexus.release.id}</id>
195 <name>ECOMP Release Repository</name>
196 <url>${onap.nexus.url}${onap.nexus.release.path}</url>
199 <id>${onap.nexus.snapshot.id}</id>
200 <name>ECOMP Snapshot Repository</name>
201 <url>${onap.nexus.url}${onap.nexus.snapshot.path}</url>
202 </snapshotRepository>
205 <url>dav:${onap.nexus.url}${sitePath}</url>
207 </distributionManagement>
211 <groupId>org.apache.maven.plugins</groupId>
212 <artifactId>maven-javadoc-plugin</artifactId>
213 <version>2.10.4</version>
215 <failOnError>false</failOnError>
216 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
218 <groupId>org.umlgraph</groupId>
219 <artifactId>umlgraph</artifactId>
220 <version>5.6</version>
222 <additionalparam>-views -Xdoclint:none</additionalparam>
223 <excludePackageNames>org.onap.aai.domain.yang.*:org.onap.aai.util.*</excludePackageNames>
224 <useStandardDocletOptions>true</useStandardDocletOptions>
230 <!-- Start of ONAP Specific Repositories -->
234 <name>AJSC repository</name>
235 <url>https://mvnrepository.com/artifact/com.att.ajsc</url>
239 <name>maven reslet</name>
240 <url>https://maven.restlet.com/</url>
245 <name>Maven 2 repository 2</name>
246 <url>http://repo2.maven.org/maven2/</url>
249 <id>ecomp-releases</id>
250 <name>ECOMP Release Repository</name>
251 <url>${onap.nexus.url}/content/repositories/releases/</url>
254 <id>ecomp-snapshots</id>
255 <name>ECOMP Snapshot Repository</name>
256 <url>${onap.nexus.url}/content/repositories/snapshots/</url>
259 <!-- End of ONAP Specific Repositories -->