Release 1.6.7 properly
[aai/aai-common.git] / pom.xml
1 <!--
2
3     ============LICENSE_START=======================================================
4     org.onap.aai
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
11
12        http://www.apache.org/licenses/LICENSE-2.0
13
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=========================================================
20
21 -->
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>
25     <parent>
26         <groupId>org.onap.oparent</groupId>
27         <artifactId>oparent</artifactId>
28         <version>2.1.0</version>
29     </parent>
30
31     <groupId>org.onap.aai.aai-common</groupId>
32     <artifactId>aai-common</artifactId>
33     <version>1.6.7-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>
37
38     <modules>
39         <module>aai-parent</module>
40                 <module>aai-rest</module>
41                 <module>aai-schema-ingest</module>
42                 <module>aai-annotations</module>
43         <module>aai-aaf-auth</module>
44                 <module>aai-core</module>
45                 <module>aai-auth</module>
46         <module>aai-els-onap-logging</module>
47                 <module>aai-utils</module>
48                 <module>aai-schema-abstraction</module>
49     </modules>
50
51     <profiles>
52         <profile>
53             <id>docker</id>
54             <modules>
55                 <module>aai-common-docker</module>
56             </modules>
57         </profile>
58     </profiles>
59
60     <properties>
61         <aai.common.version>${project.version}</aai.common.version>
62         <aai.generate.schema>true</aai.generate.schema>
63         <sitePath>/content/sites/site/org/onap/aai/aai-common/${project.artifactId}/${project.version}</sitePath>
64         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
65         <onap.nexus.snapshot.path>/content/repositories/snapshots/</onap.nexus.snapshot.path>
66         <onap.nexus.snapshot.id>ecomp-snapshots</onap.nexus.snapshot.id>
67         <onap.nexus.release.path>/content/repositories/releases/</onap.nexus.release.path>
68         <onap.nexus.release.id>ecomp-releases</onap.nexus.release.id>
69     </properties>
70
71     <build>
72         <pluginManagement>
73             <plugins>
74                 <!--
75                 Using https://code.revelc.net/formatter-maven-plugin/ for Eclipse formatter
76                 Using https://github.com/diffplug/spotless/tree/master/plugin-maven for import order
77                 Use in combination to rewrite code and imports, then checkstyle
78
79                 mvn formatter:format spotless:apply process-sources
80                 -->
81                 <plugin>
82                     <groupId>net.revelc.code.formatter</groupId>
83                     <artifactId>formatter-maven-plugin</artifactId>
84                     <version>2.8.1</version>
85                     <configuration>
86                         <configFile>${project.parent.basedir}/onap-java-formatter.xml</configFile>
87                     </configuration>
88                     <!-- https://code.revelc.net/formatter-maven-plugin/
89                          use mvn formatter:format to rewrite source files
90                          use mvn formatter:validate to validate source files -->
91                 </plugin>
92                 <plugin>
93                     <groupId>com.diffplug.spotless</groupId>
94                     <artifactId>spotless-maven-plugin</artifactId>
95                     <version>1.18.0</version>
96                     <configuration>
97                         <java>
98                             <importOrder>
99                                 <order>com,java,javax,org</order>
100                             </importOrder>
101                         </java>
102                     </configuration>
103                     <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven
104                          use mvn spotless:apply to rewrite source files
105                          use mvn spotless:check to validate source files -->
106                 </plugin>
107                 <plugin>
108                     <groupId>org.apache.maven.plugins</groupId>
109                     <artifactId>maven-compiler-plugin</artifactId>
110                     <configuration>
111                         <source>1.8</source>
112                         <target>1.8</target>
113                     </configuration>
114                 </plugin>
115                 <plugin>
116                     <groupId>org.apache.maven.plugins</groupId>
117                     <artifactId>maven-source-plugin</artifactId>
118                     <version>3.0.1</version>
119                     <executions>
120                         <execution>
121                             <id>attach-sources</id>
122                             <phase>deploy</phase>
123                             <goals>
124                                 <goal>jar-no-fork</goal>
125                             </goals>
126                         </execution>
127                     </executions>
128                 </plugin>
129                 <plugin>
130                     <groupId>org.apache.maven.plugins</groupId>
131                     <artifactId>maven-deploy-plugin</artifactId>
132                     <version>2.8.2</version>
133                 </plugin>
134                 <plugin>
135                     <groupId>com.mycila</groupId>
136                     <artifactId>license-maven-plugin</artifactId>
137                     <version>3.0</version>
138                     <configuration>
139                         <header>LICENSE.TXT</header>
140                         <includes>
141                             <include>src/main/java/**</include>
142                             <include>src/test/java/**</include>
143                             <include>pom.xml</include>
144                         </includes>
145                         <skipExistingHeaders>true</skipExistingHeaders>
146                         <skip>false</skip>
147                     </configuration>
148                 </plugin>
149             </plugins>
150         </pluginManagement>
151         <plugins>
152             <plugin>
153                 <groupId>org.apache.maven.plugins</groupId>
154                 <artifactId>maven-site-plugin</artifactId>
155                 <version>3.6</version>
156                 <configuration>
157                     <reportPlugins>
158                         <plugin>
159                             <groupId>org.apache.maven.plugins</groupId>
160                             <artifactId>maven-project-info-reports-plugin</artifactId>
161                             <version>2.4</version>
162                             <configuration>
163                                 <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
164                                 <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
165                             </configuration>
166                             <reports>
167                                 <report>dependencies</report>
168                             </reports>
169                         </plugin>
170                         <plugin>
171                             <groupId>org.apache.maven.plugins</groupId>
172                             <artifactId>maven-javadoc-plugin</artifactId>
173                             <version>2.8</version>
174                             <configuration>
175                                 <additionalparam>-Xdoclint:none</additionalparam>
176                             </configuration>
177                         </plugin>
178                     </reportPlugins>
179                 </configuration>
180                 <dependencies>
181                     <dependency>
182                         <groupId>org.apache.maven.wagon</groupId>
183                         <artifactId>wagon-webdav-jackrabbit</artifactId>
184                         <version>2.10</version>
185                     </dependency>
186                 </dependencies>
187             </plugin>
188             <plugin>
189                 <groupId>com.mycila</groupId>
190                 <artifactId>license-maven-plugin</artifactId>
191             </plugin>
192         </plugins>
193     </build>
194
195     <distributionManagement>
196         <repository>
197             <id>${onap.nexus.release.id}</id>
198             <name>ECOMP Release Repository</name>
199             <url>${onap.nexus.url}${onap.nexus.release.path}</url>
200         </repository>
201         <snapshotRepository>
202             <id>${onap.nexus.snapshot.id}</id>
203             <name>ECOMP Snapshot Repository</name>
204             <url>${onap.nexus.url}${onap.nexus.snapshot.path}</url>
205         </snapshotRepository>
206         <site>
207             <id>ecomp-site</id>
208             <url>dav:${onap.nexus.url}${sitePath}</url>
209         </site>
210     </distributionManagement>
211     <reporting>
212         <plugins>
213             <plugin>
214                 <groupId>org.apache.maven.plugins</groupId>
215                 <artifactId>maven-javadoc-plugin</artifactId>
216                 <version>2.10.4</version>
217                 <configuration>
218                     <failOnError>false</failOnError>
219                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
220                     <docletArtifact>
221                         <groupId>org.umlgraph</groupId>
222                         <artifactId>umlgraph</artifactId>
223                         <version>5.6</version>
224                     </docletArtifact>
225                     <additionalparam>-views -Xdoclint:none</additionalparam>
226                     <excludePackageNames>org.onap.aai.domain.yang.*:org.onap.aai.util.*</excludePackageNames>
227                     <useStandardDocletOptions>true</useStandardDocletOptions>
228                 </configuration>
229             </plugin>
230         </plugins>
231     </reporting>
232
233     <!-- Start of ONAP Specific Repositories -->
234     <repositories>
235         <repository>
236             <id>AJSC</id>
237             <name>AJSC repository</name>
238             <url>https://mvnrepository.com/artifact/com.att.ajsc</url>
239         </repository>
240         <repository>
241             <id>restlet</id>
242             <name>maven reslet</name>
243             <url>https://maven.restlet.com/</url>
244         </repository>
245
246         <repository>
247             <id>central</id>
248             <name>Maven 2 repository 2</name>
249             <url>http://repo2.maven.org/maven2/</url>
250         </repository>
251         <repository>
252             <id>ecomp-releases</id>
253             <name>ECOMP Release Repository</name>
254             <url>${onap.nexus.url}/content/repositories/releases/</url>
255         </repository>
256         <repository>
257             <id>ecomp-snapshots</id>
258             <name>ECOMP Snapshot Repository</name>
259             <url>${onap.nexus.url}/content/repositories/snapshots/</url>
260         </repository>
261     </repositories>
262     <!-- End of ONAP Specific Repositories -->
263 </project>
264 <!-- noop for release -->