Update network-route dbdege rule
[aai/schema-service.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4     ============LICENSE_START=======================================================
5     org.onap.aai
6     ================================================================================
7     Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
8     ================================================================================
9     Licensed under the Apache License, Version 2.0 (the "License");
10     you may not use this file except in compliance with the License.
11     You may obtain a copy of the License at
12
13        http://www.apache.org/licenses/LICENSE-2.0
14
15     Unless required by applicable law or agreed to in writing, software
16     distributed under the License is distributed on an "AS IS" BASIS,
17     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18     See the License for the specific language governing permissions and
19     limitations under the License.
20     ============LICENSE_END=========================================================
21
22 -->
23 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
24          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25     <modelVersion>4.0.0</modelVersion>
26     <parent>
27         <groupId>org.onap.aai.aai-common</groupId>
28         <artifactId>aai-parent</artifactId>
29         <version>1.7.0</version>
30     </parent>
31     <groupId>org.onap.aai.schema-service</groupId>
32     <artifactId>schema-service</artifactId>
33     <version>1.8.5-SNAPSHOT</version>
34     <name>aai-schema-service</name>
35     <packaging>pom</packaging>
36     <modules>
37         <module>aai-annotations</module>
38         <module>aai-schema-gen</module>
39         <module>aai-schema</module>
40         <module>aai-queries</module>
41         <module>aai-schema-service</module>
42     </modules>
43     <properties>
44         <!--
45             Nexus Proxy Properties and Snapshot Locations
46             Ideally this can be overwritten at runtime per internal environment specific values at runtime
47         -->
48         <aai.common.version>1.7.0</aai.common.version>
49         <nexusproxy>https://nexus.onap.org</nexusproxy>
50         <site.path>/content/sites/site/org/onap/aai/resources/${project.artifactId}/${project.version}</site.path>
51         <release.path>/content/repositories/releases/</release.path>
52         <snapshot.path>/content/repositories/snapshots/</snapshot.path>
53         <!-- GMaven plugin uses this property to figure out the name of the docker tag -->
54         <aai.project.version>${project.version}</aai.project.version>
55         <checkstyle.skip>false</checkstyle.skip>
56
57
58         <maven-site-plugin.version>3.9.1</maven-site-plugin.version>
59         <wagon-webdav-jackrabbit.version>3.4.2</wagon-webdav-jackrabbit.version>
60         <jacoco-maven-plugin.version>0.8.6</jacoco-maven-plugin.version>
61         <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
62         <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
63         <maven-compiler-plugin.source>8</maven-compiler-plugin.source>
64         <maven-compiler-plugin.target>8</maven-compiler-plugin.target>
65         <maven-compiler-plugin.test.source>8</maven-compiler-plugin.test.source>
66         <maven-compiler-plugin.test.target>8</maven-compiler-plugin.test.target>
67         <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
68         <slf4j.version>1.7.26</slf4j.version>
69     </properties>
70     <build>
71         <pluginManagement>
72             <plugins>
73                 <plugin>
74                     <groupId>org.apache.maven.plugins</groupId>
75                     <artifactId>maven-site-plugin</artifactId>
76                     <version>${maven-site-plugin.version}</version>
77                     <dependencies>
78                         <dependency>
79                             <groupId>org.apache.maven.wagon</groupId>
80                             <artifactId>wagon-webdav-jackrabbit</artifactId>
81                             <version>${wagon-webdav-jackrabbit.version}</version>
82                         </dependency>
83                     </dependencies>
84                 </plugin>
85                 <plugin>
86                     <groupId>org.jacoco</groupId>
87                     <artifactId>jacoco-maven-plugin</artifactId>
88                     <version>${jacoco-maven-plugin.version}</version>
89                     <executions>
90                         <!-- Unit-Tests -->
91                         <execution>
92                             <id>prepare-agent</id>
93                             <goals>
94                                 <goal>prepare-agent</goal>
95                             </goals>
96                             <configuration>
97                                 <destFile>${sonar.jacoco.reportPath}</destFile>
98                             </configuration>
99                         </execution>
100                     </executions>
101                 </plugin>
102                 <plugin>
103                     <groupId>org.apache.maven.plugins</groupId>
104                     <artifactId>maven-surefire-plugin</artifactId>
105                     <version>${maven-surefire-plugin.version}</version>
106                     <configuration>
107                         <argLine>${argLine} -Xmx2048m --illegal-access=permit</argLine>
108                     </configuration>
109                 </plugin>
110                 <plugin>
111                     <groupId>org.apache.maven.plugins</groupId>
112                     <artifactId>maven-failsafe-plugin</artifactId>
113                     <version>2.22.0</version>
114                     <configuration>
115                         <argLine>
116                             --illegal-access=permit
117                         </argLine>
118                     </configuration>
119                 </plugin>
120                 <plugin>
121                     <groupId>org.apache.maven.plugins</groupId>
122                     <artifactId>maven-compiler-plugin</artifactId>
123                     <version>${maven-compiler-plugin.version}</version>
124                     <inherited>true</inherited>
125                     <configuration>
126                         <source>${maven-compiler-plugin.source}</source>
127                         <target>${maven-compiler-plugin.target}</target>
128                         <testSource>${maven-compiler-plugin.test.source}</testSource>
129                         <testTarget>${maven-compiler-plugin.test.target}</testTarget>
130                     </configuration>
131                 </plugin>
132                 <plugin>
133                     <groupId>org.apache.maven.plugins</groupId>
134                     <artifactId>maven-javadoc-plugin</artifactId>
135                     <version>${maven-javadoc-plugin.version}</version>
136                     <configuration/>
137                 </plugin>
138                 <plugin>
139                     <groupId>org.sonarsource.scanner.maven</groupId>
140                     <artifactId>sonar-maven-plugin</artifactId>
141                     <version>${sonar-maven-plugin.version}</version>
142                 </plugin>
143
144
145                 <!--
146                 Using https://code.revelc.net/formatter-maven-plugin/ for Eclipse formatter
147                 Using https://github.com/diffplug/spotless/tree/master/plugin-maven for import order
148                 Use in combination to rewrite code and imports, then checkstyle
149
150                 mvn formatter:format spotless:apply process-sources
151                 -->
152                 <plugin>
153                      <groupId>net.revelc.code.formatter</groupId>
154                      <artifactId>formatter-maven-plugin</artifactId>
155                      <version>2.8.1</version>
156                      <configuration>
157                         <configFile>${project.parent.basedir}/onap-java-formatter.xml</configFile>
158                      </configuration>
159                      <!-- https://code.revelc.net/formatter-maven-plugin/
160                           use mvn formatter:format to rewrite source files
161                           use mvn formatter:validate to validate source files -->
162                  </plugin>
163                 <plugin>
164                   <groupId>com.diffplug.spotless</groupId>
165                   <artifactId>spotless-maven-plugin</artifactId>
166                   <version>1.18.0</version>
167                   <configuration>
168                     <java>
169                      <importOrder>
170                        <order>com,java,javax,org</order>
171                      </importOrder>
172                     </java>
173                   </configuration>
174                 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven
175                      use mvn spotless:apply to rewrite source files
176                      use mvn spotless:check to validate source files -->
177                 </plugin>
178                 <plugin>
179                     <groupId>org.apache.maven.plugins</groupId>
180                     <artifactId>maven-deploy-plugin</artifactId>
181                 </plugin>
182                 <plugin>
183                     <groupId>com.mycila</groupId>
184                     <artifactId>license-maven-plugin</artifactId>
185                     <version>3.0</version>
186                     <configuration>
187                         <header>LICENSE.TXT</header>
188                         <includes>
189                             <include>src/main/java/**</include>
190                             <include>src/test/java/**</include>
191                             <include>pom.xml</include>
192                         </includes>
193                         <skipExistingHeaders>true</skipExistingHeaders>
194                         <skip>false</skip>
195                         <validHeaders>
196                             <header>LICENSE_ALT1.txt</header>
197                         </validHeaders>
198                     </configuration>
199                 </plugin>
200                 <plugin>
201                     <groupId>org.apache.maven.plugins</groupId>
202                     <artifactId>maven-source-plugin</artifactId>
203                     <version>3.0.1</version>
204                     <executions>
205                         <execution>
206                             <id>attach-sources</id>
207                             <phase>verify</phase>
208                             <goals>
209                                 <goal>jar-no-fork</goal>
210                             </goals>
211                         </execution>
212                     </executions>
213                 </plugin>
214             </plugins>
215         </pluginManagement>
216         <plugins>
217             <plugin>
218                 <groupId>org.apache.maven.plugins</groupId>
219                 <artifactId>maven-site-plugin</artifactId>
220                 <version>3.6</version>
221                 <configuration>
222                     <reportPlugins>
223                         <plugin>
224                             <groupId>org.apache.maven.plugins</groupId>
225                             <artifactId>maven-project-info-reports-plugin</artifactId>
226                             <version>2.4</version>
227                             <configuration>
228                                 <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
229                                 <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
230                             </configuration>
231                             <reports>
232                                 <report>dependencies</report>
233                             </reports>
234                         </plugin>
235                         <plugin>
236                             <groupId>org.apache.maven.plugins</groupId>
237                             <artifactId>maven-javadoc-plugin</artifactId>
238                             <version>2.8</version>
239                             <configuration>
240                                 <additionalparam>-Xdoclint:none</additionalparam>
241                             </configuration>
242                         </plugin>
243                     </reportPlugins>
244                 </configuration>
245                 <dependencies>
246                     <dependency>
247                         <groupId>org.apache.maven.wagon</groupId>
248                         <artifactId>wagon-webdav-jackrabbit</artifactId>
249                         <version>2.10</version>
250                     </dependency>
251                 </dependencies>
252             </plugin>
253         </plugins>
254     </build>
255     <reporting>
256         <plugins>
257             <plugin>
258                 <groupId>org.apache.maven.plugins</groupId>
259                 <artifactId>maven-javadoc-plugin</artifactId>
260                 <version>2.10.4</version>
261                 <configuration>
262                     <failOnError>false</failOnError>
263                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
264                     <docletArtifact>
265                         <groupId>org.umlgraph</groupId>
266                         <artifactId>umlgraph</artifactId>
267                         <version>5.6</version>
268                     </docletArtifact>
269                     <additionalparam>-views</additionalparam>
270                     <useStandardDocletOptions>true</useStandardDocletOptions>
271                 </configuration>
272             </plugin>
273         </plugins>
274     </reporting>
275     <pluginRepositories>
276         <pluginRepository>
277             <id>central</id>
278             <url>http://repo1.maven.org/maven2</url>
279         </pluginRepository>
280         <pluginRepository>
281             <id>EvoSuite</id>
282             <name>EvoSuite Repository</name>
283             <url>http://www.evosuite.org/m2</url>
284         </pluginRepository>
285     </pluginRepositories>
286     <distributionManagement>
287         <repository>
288             <id>ecomp-releases</id>
289             <name>ECOMP Release Repository</name>
290             <url>${nexusproxy}${release.path}</url>
291         </repository>
292         <snapshotRepository>
293             <id>ecomp-snapshots</id>
294             <name>ECOMP Snapshot Repository</name>
295             <url>${nexusproxy}${snapshot.path}</url>
296         </snapshotRepository>
297         <site>
298             <id>ecomp-site</id>
299             <url>dav:${nexusproxy}${site.path}</url>
300         </site>
301     </distributionManagement>
302 </project>