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