Merge "Enable sonar code coverage with oparent"
[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>0.1.1</version>
10                 <relativePath />
11         </parent>
12
13         <groupId>org.onap.portal</groupId>
14         <artifactId>onap-portal-parent</artifactId>
15         <version>1.3.0</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         </modules>
26
27         <properties>
28                 <!-- Jenkins SHOULD invoke mvn with argument -Dbuild.number=${BUILD_NUMBER} -->
29                 <build.number>0</build.number>
30                 <epsdk.version>1.3.0</epsdk.version>
31                 <springframework.version>4.2.0.RELEASE</springframework.version>
32                 <hibernate.version>4.3.11.Final</hibernate.version>
33                 <fasterxml.version>2.7.4</fasterxml.version>
34                 <eelf.version>1.0.0</eelf.version>
35                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36                 <encoding>UTF-8</encoding>
37                 <sonar.exclusions>**/scripts/**/*,**.js</sonar.exclusions>
38                 <sonar.test.exclusions>**/test/**/*,**/tests/**/*</sonar.test.exclusions>
39         </properties>
40
41         <!-- Specify the repositories here to avoid coordination of ~/.m2/settings.xml 
42                 files among all developers. Also use values (not properties) so oparent can 
43                 be resolved. -->
44         <repositories>
45                 <repository>
46                         <id>onap-releases</id>
47                         <name>ONAP - Release Repository</name>
48                         <url>https://nexus.onap.org/content/repositories/releases</url>
49                 </repository>
50                 <repository>
51                         <id>onap-staging</id>
52                         <name>ONAP - Staging Repository</name>
53                         <url>https://nexus.onap.org/content/repositories/staging</url>
54                 </repository>
55                 <repository>
56                         <id>onap-snapshots</id>
57                         <name>ONAP - Snapshot Repository</name>
58                         <url>https://nexus.onap.org/content/repositories/snapshots</url>
59                 </repository>
60                 <repository>
61                         <id>onap-public</id>
62                         <url>https://nexus.onap.org/content/groups/public</url>
63                 </repository>
64         </repositories>
65
66         <!-- Specify the repositories here to avoid coordination of ~/.m2/settings.xml 
67                 files among all developers. -->
68         <pluginRepositories>
69                 <pluginRepository>
70                         <id>onap-plugin-release</id>
71                         <url>https://nexus.onap.org/content/repositories/releases/</url>
72                 </pluginRepository>
73                 <pluginRepository>
74                         <id>onap-plugin-staging</id>
75                         <url>https://nexus.onap.org/content/repositories/staging/</url>
76                 </pluginRepository>
77                 <pluginRepository>
78                         <id>onap-plugin-snapshots</id>
79                         <url>https://nexus.onap.org/content/repositories/snapshots/</url>
80                 </pluginRepository>
81         </pluginRepositories>
82
83         <profiles>
84                 <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
85                 <profile>
86                         <id>doclint-java8-disable</id>
87                         <activation>
88                                 <jdk>[1.8,)</jdk>
89                         </activation>
90                         <build>
91                                 <plugins>
92                                         <plugin>
93                                                 <groupId>org.apache.maven.plugins</groupId>
94                                                 <artifactId>maven-javadoc-plugin</artifactId>
95                                                 <version>3.0.0-M1</version>
96                                                 <configuration>
97                                                         <additionalparam>-Xdoclint:none</additionalparam>
98                                                 </configuration>
99                                         </plugin>
100                                 </plugins>
101                         </build>
102                 </profile>
103
104         </profiles>
105
106         <build>
107                 <pluginManagement>
108                         <plugins>
109                                 <!-- Silence Eclipse m2e warnings -->
110                                 <plugin>
111                                         <groupId>org.eclipse.m2e</groupId>
112                                         <artifactId>lifecycle-mapping</artifactId>
113                                         <version>1.0.0</version>
114                                         <configuration>
115                                                 <lifecycleMappingMetadata>
116                                                         <pluginExecutions>
117                                                                 <pluginExecution>
118                                                                         <pluginExecutionFilter>
119                                                                                 <groupId>org.apache.maven.plugins</groupId>
120                                                                                 <artifactId>maven-checkstyle-plugin</artifactId>
121                                                                                 <versionRange>2.17,)</versionRange>
122                                                                                 <goals>
123                                                                                         <goal>check</goal>
124                                                                                 </goals>
125                                                                         </pluginExecutionFilter>
126                                                                         <action>
127                                                                                 <ignore />
128                                                                         </action>
129                                                                 </pluginExecution>
130                                                         </pluginExecutions>
131                                                 </lifecycleMappingMetadata>
132                                         </configuration>
133                                 </plugin>
134                                 <plugin>
135                                         <artifactId>maven-compiler-plugin</artifactId>
136                                         <version>3.1</version>
137                                         <configuration>
138                                                 <source>1.8</source>
139                                                 <target>1.8</target>
140                                         </configuration>
141                                 </plugin>
142                         </plugins>
143                 </pluginManagement>
144                 <plugins>
145                         <!-- No deployment step for this project -->
146                         <plugin>
147                                 <groupId>org.apache.maven.plugins</groupId>
148                                 <artifactId>maven-deploy-plugin</artifactId>
149                                 <version>2.8</version>
150                                 <configuration>
151                                         <skip>true</skip>
152                                 </configuration>
153                         </plugin>
154                 </plugins>
155         </build>
156
157         <distributionManagement>
158                 <!-- oparent.version defines snapshot and release repositories -->
159                 <site>
160                         <id>ecomp-site</id>
161                         <url>dav:https://nexus.onap.org/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</url>
162                 </site>
163         </distributionManagement>
164
165 </project>