Portal Spring Boot Development
[portal.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>1.2.0</version>
10                 <relativePath />
11         </parent>
12
13         <groupId>org.onap.portal</groupId>
14         <artifactId>onap-portal-parent</artifactId>
15         <version>2.6.0-SNAPSHOT</version>
16         <packaging>pom</packaging>
17         <name>portal</name>
18
19         <modules>
20                 <!-- This parent POM names only ONAP projects -->
21                 <module>ecomp-portal-BE-common</module>
22                 <module>ecomp-portal-BE-os</module>
23                 <module>ecomp-portal-FE-os</module>
24                 <module>ecomp-portal-widget-ms</module>
25                 <module>portal-BE</module>
26         </modules>
27
28         <properties>
29                 <!-- Jenkins should invoke mvn with argument -Dbuild.number=${BUILD_NUMBER} -->
30                 <build.number>0</build.number>
31                 <epsdk.version>2.6.0-SNAPSHOT</epsdk.version>
32                 <springframework.version>4.2.3.RELEASE</springframework.version>
33                 <hibernate.version>4.3.11.Final</hibernate.version>
34                 <fasterxml.version>2.8.10</fasterxml.version>
35                 <eelf.version>1.0.0</eelf.version>
36                 <!-- NOT provided by OParent, unfortunately -->
37                 <jacocoVersion>0.7.6.201602180812</jacocoVersion>
38                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39                 <encoding>UTF-8</encoding>
40                 <!-- <sonar.exclusions>**/scripts/**/*,**.js</sonar.exclusions>  -->
41                 <sonar.test.exclusions>**/test/**/*,**/tests/**/*</sonar.test.exclusions>
42                 <enforcer.skip>false</enforcer.skip>
43         </properties>
44
45         <!-- Specify the repositories here to avoid coordination of ~/.m2/settings.xml 
46                 files among developers. Use values (not properties) so oparent can be resolved. -->
47         <repositories>
48                 <repository>
49                         <id>onap-releases</id>
50                         <name>ONAP - Release Repository</name>
51                         <url>https://nexus.onap.org/content/repositories/releases</url>
52                 </repository>
53                 <repository>
54                         <id>onap-staging</id>
55                         <name>ONAP - Staging Repository</name>
56                         <url>https://nexus.onap.org/content/repositories/staging</url>
57                 </repository>
58                 <repository>
59                         <id>onap-snapshots</id>
60                         <name>ONAP - Snapshot Repository</name>
61                         <url>https://nexus.onap.org/content/repositories/snapshots</url>
62                 </repository>
63                 <repository>
64                         <id>onap-public</id>
65                         <url>https://nexus.onap.org/content/groups/public</url>
66                 </repository>
67         </repositories>
68
69         <!-- Specify the repositories here to avoid coordination of ~/.m2/settings.xml 
70                 files among all developers. -->
71         <pluginRepositories>
72                 <pluginRepository>
73                         <id>onap-plugin-release</id>
74                         <url>https://nexus.onap.org/content/repositories/releases/</url>
75                 </pluginRepository>
76                 <pluginRepository>
77                         <id>onap-plugin-staging</id>
78                         <url>https://nexus.onap.org/content/repositories/staging/</url>
79                 </pluginRepository>
80                 <pluginRepository>
81                         <id>onap-plugin-snapshots</id>
82                         <url>https://nexus.onap.org/content/repositories/snapshots/</url>
83                 </pluginRepository>
84         </pluginRepositories>
85
86         <profiles>
87                 <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
88                 <profile>
89                         <id>doclint-java8-disable</id>
90                         <activation>
91                                 <jdk>[1.8,)</jdk>
92                         </activation>
93                         <build>
94                                 <plugins>
95                                         <plugin>
96                                                 <groupId>org.apache.maven.plugins</groupId>
97                                                 <artifactId>maven-javadoc-plugin</artifactId>
98                                                 <version>3.0.0-M1</version>
99                                                 <configuration>
100                                                         <additionalparam>-Xdoclint:none</additionalparam>
101                                                 </configuration>
102                                         </plugin>
103                                 </plugins>
104                         </build>
105                 </profile>
106         </profiles>
107
108         <build>
109                 <pluginManagement>
110                         <plugins>
111                                 <!-- Silence Eclipse m2e warnings -->
112                                 <plugin>
113                                         <groupId>org.eclipse.m2e</groupId>
114                                         <artifactId>lifecycle-mapping</artifactId>
115                                         <version>1.0.0</version>
116                                         <configuration>
117                                                 <lifecycleMappingMetadata>
118                                                         <pluginExecutions>
119                                                                 <pluginExecution>
120                                                                         <pluginExecutionFilter>
121                                                                                 <groupId>org.apache.maven.plugins</groupId>
122                                                                                 <artifactId>maven-checkstyle-plugin</artifactId>
123                                                                                 <versionRange>2.17,)</versionRange>
124                                                                                 <goals>
125                                                                                         <goal>check</goal>
126                                                                                 </goals>
127                                                                         </pluginExecutionFilter>
128                                                                         <action>
129                                                                                 <ignore />
130                                                                         </action>
131                                                                 </pluginExecution>
132                                                         </pluginExecutions>
133                                                 </lifecycleMappingMetadata>
134                                         </configuration>
135                                 </plugin>
136                                 <plugin>
137                                         <artifactId>maven-compiler-plugin</artifactId>
138                                         <version>3.1</version>
139                                         <configuration>
140                                                 <source>1.8</source>
141                                                 <target>1.8</target>
142                                         </configuration>
143                                 </plugin>
144                                 <!-- maven-site-plugin config is provided by OParent -->
145                                 <plugin>
146                                         <groupId>org.apache.maven.plugins</groupId>
147                                         <artifactId>maven-site-plugin</artifactId>
148                                         <version>3.6</version>
149                                         <dependencies>
150                                                 <dependency>
151                                                         <groupId>org.apache.maven.wagon</groupId>
152                                                         <artifactId>wagon-webdav-jackrabbit</artifactId>
153                                                         <version>2.10</version>
154                                                 </dependency>
155                                         </dependencies>
156                                 </plugin>
157                         </plugins>
158                 </pluginManagement>
159                 <plugins>
160                         <!-- Jacoco -->
161                         <plugin>
162                                 <groupId>org.jacoco</groupId>
163                                 <artifactId>jacoco-maven-plugin</artifactId>
164                                 <!-- Override OParent version -->
165                                 <version>${jacocoVersion}</version>
166                                 <executions>
167                                         <!-- disable jacoco executions from oparent -->
168                                         <execution>
169                                                 <id>pre-unit-test</id>
170                                                 <phase>none</phase>
171                                         </execution>
172                                         <execution>
173                                                 <id>post-unit-test</id>
174                                                 <phase>none</phase>
175                                         </execution>
176                                         <execution>
177                                                 <id>pre-integration-test</id>
178                                                 <phase>none</phase>
179                                         </execution>
180                                         <execution>
181                                                 <id>post-integration-test</id>
182                                                 <phase>none</phase>
183                                         </execution>
184                                         <!-- Order matters -->
185                                         <execution>
186                                                 <id>portal-prepare-agent</id>
187                                                 <goals>
188                                                         <goal>prepare-agent</goal>
189                                                 </goals>
190                                                 <configuration>
191                                                         <destFile>${sonar.jacoco.reportPath}</destFile>
192                                                 </configuration>
193                                         </execution>
194                                         <!-- offline instrumentation for PowerMock -->
195                                         <execution>
196                                                 <id>portal-offline-instrument</id>
197                                                 <goals>
198                                                         <goal>instrument</goal>
199                                                 </goals>
200                                         </execution>
201                                         <execution>
202                                                 <id>portal-restore-instrumented-classes</id>
203                                                 <phase>test</phase>
204                                                 <goals>
205                                                         <goal>restore-instrumented-classes</goal>
206                                                 </goals>
207                                         </execution>
208                                         <execution>
209                                                 <id>portal-post-unit-test</id>
210                                                 <phase>test</phase>
211                                                 <goals>
212                                                         <goal>report</goal>
213                                                 </goals>
214                                                 <configuration>
215                                                         <dataFile>${sonar.jacoco.reportPath}</dataFile>
216                                                         <outputDirectory>${project.basedir}/target/site/jacoco</outputDirectory>
217                                                 </configuration>
218                                         </execution>
219                                 </executions>
220                         </plugin>
221
222                         <plugin>
223                                 <groupId>org.apache.maven.plugins</groupId>
224                                 <artifactId>maven-surefire-plugin</artifactId>
225                                 <configuration>
226                                         <systemPropertyVariables>
227                                                 <jacoco-agent.destfile>${project.build.directory}/code-coverage/jacoco-ut.exec</jacoco-agent.destfile>
228                                         </systemPropertyVariables>
229                                 </configuration>
230                         </plugin>
231                         <!-- No deployment step for this project -->
232                         <plugin>
233                                 <groupId>org.apache.maven.plugins</groupId>
234                                 <artifactId>maven-deploy-plugin</artifactId>
235                                 <!-- version managed by oparent <version>2.8</version> -->
236                                 <configuration>
237                                         <skip>true</skip>
238                                 </configuration>
239                         </plugin>
240                         <plugin>
241                                 <groupId>org.codehaus.mojo</groupId>
242                                 <artifactId>sonar-maven-plugin</artifactId>
243                                 <version>3.0.2</version>
244                         </plugin>
245                 </plugins>
246         </build>
247
248         <distributionManagement>
249                 <!-- oparent.version defines snapshot and release repositories -->
250                 <site>
251                         <id>ecomp-site</id>
252                         <url>dav:https://nexus.onap.org/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</url>
253                 </site>
254         </distributionManagement>
255 </project>