[AAI-2531] | Update springboot to 2.1.12.RELEASE
[aai/sparky-be.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4     <modelVersion>4.0.0</modelVersion>
5         
6     <parent>
7         <groupId>org.onap.oparent</groupId>
8         <artifactId>oparent</artifactId>
9         <version>2.0.0</version>
10     </parent>
11     
12     <groupId>org.onap.aai</groupId>
13     <artifactId>sparky-be</artifactId>
14     <version>1.6.1-SNAPSHOT</version>
15     <packaging>pom</packaging>
16     <name>aai-sparky-be</name>
17
18         <modules>
19                 <module>sparkybe-onap-service/pom.xml</module>
20                 <module>sparkybe-onap-application/pom.xml</module>
21         </modules>
22
23     <properties>
24         <sitePath>/content/sites/site/org/onap/aai/sparky-be/${project.artifactId}/${project.version}</sitePath>
25         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
26                 <portal.sdk.version>2.6.0</portal.sdk.version>
27                 <spring.boot.version>2.1.12.RELEASE</spring.boot.version>
28
29                 <sonar.jacoco.reportPath />
30                 <sonar.jacoco.itReportPath />
31                 <sonar.jacoco.reportMissing.force.zero />
32
33                 <jacoco.line.coverage.limit>0.90</jacoco.line.coverage.limit>
34                 <jacoco.version>0.8.5</jacoco.version>
35                 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
36                 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
37                 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
38                 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
39
40                 <sonar.scanner.version>3.7.0.1746</sonar.scanner.version>
41
42     </properties>
43
44         <dependencyManagement>
45         <dependencies>
46             <dependency>
47                 <groupId>org.onap.portal.sdk</groupId>
48                 <artifactId>epsdk-fw</artifactId>
49                 <version>${portal.sdk.version}</version>
50             </dependency>
51                         <dependency>
52                                 <groupId>org.springframework.boot</groupId>
53                                 <artifactId>spring-boot-starter-parent</artifactId>
54                                 <version>${spring.boot.version}</version>
55                                 <type>pom</type>
56                                 <scope>import</scope>
57                         </dependency>
58         </dependencies>
59     </dependencyManagement>
60
61     <!-- we don't need to deploy the top level pom project -->
62         <build>
63           <pluginManagement>
64             <plugins>
65                 <plugin>
66                     <groupId>org.apache.maven.plugins</groupId>
67                     <artifactId>maven-deploy-plugin</artifactId>
68                 </plugin>
69                 </plugins>
70               </pluginManagement>
71
72               <!-- once we connect aai-parent or oparent 3.0+ we can take out this
73                    whole section -->
74               <plugins>
75               <plugin>
76                 <groupId>org.jacoco</groupId>
77                 <artifactId>jacoco-maven-plugin</artifactId>
78                 <version>${jacoco.version}</version>
79                 <configuration>
80                   <!-- Note: This exclusion list should match <sonar.exclusions> property
81                        above -->
82                   <excludes>
83                     <exclude>**/gen/**</exclude>
84                     <exclude>**/generated-sources/**</exclude>
85                     <exclude>**/yang-gen/**</exclude>
86                     <exclude>**/pax/**</exclude>
87                     <exclude>org/onap/aai/babel/xml/generator/xsd/*</exclude>
88                   </excludes>
89                 </configuration>
90                 <executions>
91                   <!-- Prepares the property pointing to the JaCoCo runtime agent which
92                        is passed as VM argument when Maven the Surefire plugin is executed. -->
93                   <execution>
94                     <id>pre-unit-test</id>
95                     <goals>
96                       <goal>prepare-agent</goal>
97                     </goals>
98                     <configuration>
99                       <!-- Sets the path to the file which contains the execution data
100                            . -->
101                       <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
102                       <!-- Sets the name of the property containing the settings for JaCoCo
103                            runtime agent. -->
104                       <propertyName>surefireArgLine</propertyName>
105                     </configuration>
106                   </execution>
107                   <!-- Ensures that the code coverage report for unit tests is created
108                        after unit tests have been run. -->
109                   <execution>
110                     <id>post-unit-test</id>
111                     <phase>test</phase>
112                     <goals>
113                       <goal>report</goal>
114                     </goals>
115                     <configuration>
116                       <!-- Sets the path to the file which contains the execution data
117                            . -->
118                       <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
119                       <!-- Sets the output directory for the code coverage report. -->
120                       <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
121                     </configuration>
122                   </execution>
123                   <execution>
124                     <id>pre-integration-test</id>
125                     <phase>pre-integration-test</phase>
126                     <goals>
127                       <goal>prepare-agent</goal>
128                     </goals>
129                     <configuration>
130                       <!-- Sets the path to the file which contains the execution data
131                            . -->
132                       <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
133                       <!-- Sets the name of the property containing the settings for JaCoCo
134                            runtime agent. -->
135                       <propertyName>failsafeArgLine</propertyName>
136                     </configuration>
137                   </execution>
138                   <!-- Ensures that the code coverage report for integration tests after
139                        integration tests have been run. -->
140                   <execution>
141                     <id>post-integration-test</id>
142                     <phase>post-integration-test</phase>
143                     <goals>
144                       <goal>report</goal>
145                     </goals>
146                     <configuration>
147                       <!-- Sets the path to the file which contains the execution data
148                            . -->
149                       <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
150                       <!-- Sets the output directory for the code coverage report. -->
151                       <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
152                     </configuration>
153                   </execution>
154                   <execution>
155                     <id>default-check</id>
156                     <goals>
157                       <goal>check</goal>
158                     </goals>
159                     <configuration>
160                       <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
161                       <rules>
162                         <rule implementation="org.jacoco.maven.RuleConfiguration">
163                           <element>BUNDLE</element>
164                           <limits>
165                             <limit implementation="org.jacoco.report.check.Limit">
166                               <counter>LINE</counter>
167                               <value>COVEREDRATIO</value>
168                               <minimum>${jacoco.line.coverage.limit}</minimum>
169                             </limit>
170                           </limits>
171                         </rule>
172                       </rules>
173                     </configuration>
174                   </execution>
175                 </executions>
176               </plugin>
177               <plugin>
178                 <groupId>org.apache.maven.plugins</groupId>
179                 <artifactId>maven-surefire-plugin</artifactId>
180                 <version>3.0.0-M4</version>
181                 <configuration>
182                   <!-- Sets the VM argument line used when unit tests are run. -->
183                   <argLine>${surefireArgLine}</argLine>
184                   <!-- Excludes integration tests when unit tests are run. -->
185                   <excludes>
186                     <exclude>**/IT*.java</exclude>
187                   </excludes>
188                 </configuration>
189               </plugin>
190               <plugin>
191                 <groupId>org.apache.maven.plugins</groupId>
192                 <artifactId>maven-failsafe-plugin</artifactId>
193                 <version>3.0.0-M4</version>
194                 <executions>
195                   <!-- Ensures that both integration-test and verify goals of the Failsafe
196                        Maven plugin are executed. -->
197                   <execution>
198                     <id>integration-tests</id>
199                     <goals>
200                       <goal>integration-test</goal>
201                       <goal>verify</goal>
202                     </goals>
203                     <configuration>
204                       <!-- Sets the VM argument line used when integration tests are run. -->
205                       <argLine>${failsafeArgLine}</argLine>
206                     </configuration>
207                   </execution>
208                 </executions>
209               </plugin>
210               <plugin>
211                 <groupId>org.sonarsource.scanner.maven</groupId>
212                 <artifactId>sonar-maven-plugin</artifactId>
213                 <version>${sonar.scanner.version}</version>
214               </plugin>
215               <!-- end removable sonar config, note the additional exclusion for babel above
216               -->
217             </plugins>
218
219
220         </build>
221         
222     <distributionManagement>
223        <repository>
224           <id>ecomp-releases</id>
225           <name>ECOMP Release Repository</name>
226           <url>${onap.nexus.url}/content/repositories/releases/</url>
227        </repository>
228        <snapshotRepository>
229           <id>ecomp-snapshots</id>
230           <name>ECOMP Snapshot Repository</name>
231           <url>${onap.nexus.url}/content/repositories/snapshots/</url>
232       </snapshotRepository>
233       <site>
234         <id>ecomp-site</id>
235         <url>dav:${onap.nexus.url}${sitePath}</url>
236       </site>
237    </distributionManagement>
238
239     <repositories>
240         <repository>
241             <id>central</id>
242             <name>Maven 2 repository 2</name>
243             <url>http://repo2.maven.org/maven2/</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-staging</id>
252             <name>ECOMP Staging Repository</name>
253             <url>${onap.nexus.url}/content/repositories/staging/</url>
254         </repository>
255         <repository>
256             <id>ecomp-snapshots</id>
257             <name>ECOMP Snapshot Repository</name>
258             <url>${onap.nexus.url}/content/repositories/snapshots/</url>
259         </repository>
260     </repositories>
261         
262 </project>