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