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