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