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>1.1.0</version>
31 <groupId>org.onap.aai.aai-common</groupId>
32 <artifactId>aai-common</artifactId>
33 <version>1.4.4-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-rest</module>
40 <module>aai-schema-ingest</module>
41 <module>aai-annotations</module>
42 <module>aai-core</module>
43 <module>aai-auth</module>
44 <module>aai-utils</module>
48 <aai.generate.schema>true</aai.generate.schema>
49 <sitePath>/content/sites/site/org/onap/aai/aai-common/${project.artifactId}/${project.version}</sitePath>
50 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
51 <onap.nexus.snapshot.path>/content/repositories/snapshots/</onap.nexus.snapshot.path>
52 <onap.nexus.snapshot.id>ecomp-snapshots</onap.nexus.snapshot.id>
53 <onap.nexus.release.path>/content/repositories/releases/</onap.nexus.release.path>
54 <onap.nexus.release.id>ecomp-releases</onap.nexus.release.id>
61 Using https://code.revelc.net/formatter-maven-plugin/ for Eclipse formatter
62 Using https://github.com/diffplug/spotless/tree/master/plugin-maven for import order
63 Use in combination to rewrite code and imports, then checkstyle
65 mvn formatter:format spotless:apply process-sources
68 <groupId>net.revelc.code.formatter</groupId>
69 <artifactId>formatter-maven-plugin</artifactId>
70 <version>2.8.1</version>
72 <configFile>${project.parent.basedir}/onap-java-formatter.xml</configFile>
74 <!-- https://code.revelc.net/formatter-maven-plugin/
75 use mvn formatter:format to rewrite source files
76 use mvn formatter:validate to validate source files -->
79 <groupId>com.diffplug.spotless</groupId>
80 <artifactId>spotless-maven-plugin</artifactId>
81 <version>1.18.0</version>
85 <order>com,java,javax,org</order>
89 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven
90 use mvn spotless:apply to rewrite source files
91 use mvn spotless:check to validate source files -->
94 <groupId>org.apache.maven.plugins</groupId>
95 <artifactId>maven-compiler-plugin</artifactId>
102 <groupId>org.apache.maven.plugins</groupId>
103 <artifactId>maven-source-plugin</artifactId>
104 <version>3.0.1</version>
107 <id>attach-sources</id>
108 <phase>deploy</phase>
110 <goal>jar-no-fork</goal>
116 <groupId>org.apache.maven.plugins</groupId>
117 <artifactId>maven-deploy-plugin</artifactId>
118 <version>2.8.2</version>
121 <id>default-deploy</id>
127 <groupId>org.sonatype.plugins</groupId>
128 <artifactId>nexus-staging-maven-plugin</artifactId>
129 <version>1.6.7</version>
130 <extensions>true</extensions>
132 <nexusUrl>${onap.nexus.url}</nexusUrl>
133 <stagingProfileId>176c31dfe190a</stagingProfileId>
134 <serverId>ecomp-staging</serverId>
138 <groupId>com.mycila</groupId>
139 <artifactId>license-maven-plugin</artifactId>
140 <version>3.0</version>
142 <header>LICENSE.TXT</header>
144 <include>src/main/java/**</include>
145 <include>src/test/java/**</include>
146 <include>pom.xml</include>
148 <skipExistingHeaders>true</skipExistingHeaders>
156 <groupId>org.apache.maven.plugins</groupId>
157 <artifactId>maven-site-plugin</artifactId>
158 <version>3.6</version>
162 <groupId>org.apache.maven.plugins</groupId>
163 <artifactId>maven-project-info-reports-plugin</artifactId>
164 <version>2.4</version>
166 <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
167 <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
170 <report>dependencies</report>
174 <groupId>org.apache.maven.plugins</groupId>
175 <artifactId>maven-javadoc-plugin</artifactId>
176 <version>2.8</version>
178 <additionalparam>-Xdoclint:none</additionalparam>
185 <groupId>org.apache.maven.wagon</groupId>
186 <artifactId>wagon-webdav-jackrabbit</artifactId>
187 <version>2.10</version>
192 <groupId>com.mycila</groupId>
193 <artifactId>license-maven-plugin</artifactId>
198 <distributionManagement>
200 <id>${onap.nexus.release.id}</id>
201 <name>ECOMP Release Repository</name>
202 <url>${onap.nexus.url}${onap.nexus.release.path}</url>
205 <id>${onap.nexus.snapshot.id}</id>
206 <name>ECOMP Snapshot Repository</name>
207 <url>${onap.nexus.url}${onap.nexus.snapshot.path}</url>
208 </snapshotRepository>
211 <url>dav:${onap.nexus.url}${sitePath}</url>
213 </distributionManagement>
217 <groupId>org.apache.maven.plugins</groupId>
218 <artifactId>maven-javadoc-plugin</artifactId>
219 <version>2.10.4</version>
221 <failOnError>false</failOnError>
222 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
224 <groupId>org.umlgraph</groupId>
225 <artifactId>umlgraph</artifactId>
226 <version>5.6</version>
228 <additionalparam>-views -Xdoclint:none</additionalparam>
229 <excludePackageNames>org.onap.aai.domain.yang.*:org.onap.aai.util.*</excludePackageNames>
230 <useStandardDocletOptions>true</useStandardDocletOptions>
236 <!-- Start of ONAP Specific Repositories -->
240 <name>AJSC repository</name>
241 <url>https://mvnrepository.com/artifact/com.att.ajsc</url>
245 <name>maven reslet</name>
246 <url>https://maven.restlet.com/</url>
251 <name>Maven 2 repository 2</name>
252 <url>http://repo2.maven.org/maven2/</url>
255 <id>ecomp-releases</id>
256 <name>ECOMP Release Repository</name>
257 <url>${onap.nexus.url}/content/repositories/releases/</url>
260 <id>ecomp-staging</id>
261 <name>ECOMP Staging Repository</name>
262 <url>${onap.nexus.url}/content/repositories/staging/</url>
265 <id>ecomp-snapshots</id>
266 <name>ECOMP Snapshot Repository</name>
267 <url>${onap.nexus.url}/content/repositories/snapshots/</url>
270 <!-- End of ONAP Specific Repositories -->