Fix sonarqube code Bug
[policy/gui.git] / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3   ONAP Policy GUI
4   ================================================================================
5   Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
6   Modifications Copyright (C) 2020 Nordix Foundation.
7   ================================================================================
8   Licensed under the Apache License, Version 2.0 (the "License");
9   you may not use this file except in compliance with the License.
10   You may obtain a copy of the License at
11
12        http://www.apache.org/licenses/LICENSE-2.0
13
14   Unless required by applicable law or agreed to in writing, software
15   distributed under the License is distributed on an "AS IS" BASIS,
16   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   See the License for the specific language governing permissions and
18   limitations under the License.
19   ============LICENSE_END=========================================================
20   -->
21
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
24     <modelVersion>4.0.0</modelVersion>
25
26     <parent>
27         <groupId>org.onap.policy.parent</groupId>
28         <artifactId>integration</artifactId>
29         <version>3.3.1-SNAPSHOT</version>
30         <relativePath />
31     </parent>
32
33     <groupId>org.onap.policy.gui</groupId>
34     <artifactId>policy-gui</artifactId>
35     <version>2.1.0-SNAPSHOT</version>
36
37     <packaging>pom</packaging>
38
39     <name>${project.artifactId}</name>
40     <description>Code for all the Policy GUI's.</description>
41
42     <properties>
43         <policy.common.version>1.8.1-SNAPSHOT</policy.common.version>
44         <policy.models.version>2.4.2-SNAPSHOT</policy.models.version>
45         <jacoco.dataFile>${project.basedir}/../../target/code-coverage/jacoco-ut.exec</jacoco.dataFile>
46         <sonar.javascript.lcov.reportPaths>${project.basedir}/target/code-coverage/lcov.info</sonar.javascript.lcov.reportPaths>
47     </properties>
48
49     <modules>
50         <module>gui-common</module>
51         <module>gui-pdp-monitoring</module>
52         <module>gui-editors</module>
53     </modules>
54
55     <dependencies>
56         <dependency>
57             <groupId>junit</groupId>
58             <artifactId>junit</artifactId>
59             <scope>test</scope>
60         </dependency>
61         <dependency>
62             <groupId>org.assertj</groupId>
63             <artifactId>assertj-core</artifactId>
64             <scope>test</scope>
65         </dependency>
66         <dependency>
67             <groupId>org.awaitility</groupId>
68             <artifactId>awaitility</artifactId>
69             <scope>test</scope>
70         </dependency>
71     </dependencies>
72
73     <distributionManagement>
74         <site>
75             <id>ecomp-site</id>
76             <url>dav:${nexusproxy}${sitePath}</url>
77         </site>
78     </distributionManagement>
79
80     <dependencyManagement>
81         <dependencies>
82             <dependency>
83                 <groupId>org.onap.policy.common</groupId>
84                 <artifactId>utils</artifactId>
85                 <version>${policy.common.version}</version>
86             </dependency>
87             <dependency>
88                 <groupId>org.onap.policy.common</groupId>
89                 <artifactId>policy-endpoints</artifactId>
90                 <version>${policy.common.version}</version>
91             </dependency>
92         </dependencies>
93     </dependencyManagement>
94
95     <build>
96         <pluginManagement>
97             <plugins>
98                 <plugin>
99                     <groupId>org.eclipse.m2e</groupId>
100                     <artifactId>lifecycle-mapping</artifactId>
101                     <version>1.0.0</version>
102                     <configuration>
103                         <lifecycleMappingMetadata>
104                             <pluginExecutions>
105                                 <pluginExecution>
106                                     <pluginExecutionFilter>
107                                         <groupId>org.apache.maven.plugins</groupId>
108                                         <artifactId>maven-checkstyle-plugin</artifactId>
109                                         <versionRange>2.17,)</versionRange>
110                                         <goals>
111                                             <goal>check</goal>
112                                         </goals>
113                                     </pluginExecutionFilter>
114                                     <action>
115                                         <ignore />
116                                     </action>
117                                 </pluginExecution>
118                             </pluginExecutions>
119                         </lifecycleMappingMetadata>
120                     </configuration>
121                 </plugin>
122             </plugins>
123         </pluginManagement>
124     </build>
125
126     <profiles>
127         <profile>
128             <!--This profile is used to store Eclipse m2e settings only. It has no 
129                 influence on the Maven build itself. -->
130             <id>only-eclipse</id>
131             <activation>
132                 <property>
133                     <name>m2e.version</name>
134                 </property>
135             </activation>
136             <build>
137                 <pluginManagement>
138                     <plugins>
139                         <plugin>
140                             <groupId>org.eclipse.m2e</groupId>
141                             <artifactId>lifecycle-mapping</artifactId>
142                             <version>1.0.0</version>
143                             <configuration>
144                                 <lifecycleMappingMetadata>
145                                     <pluginExecutions>
146                                         <pluginExecution>
147                                             <pluginExecutionFilter>
148                                                 <groupId>org.codehaus.mojo</groupId>
149                                                 <artifactId>exec-maven-plugin</artifactId>
150                                                 <versionRange>[1.6.0,)</versionRange>
151                                                 <goals>
152                                                     <goal>java</goal>
153                                                     <goal>exec</goal>
154                                                 </goals>
155                                             </pluginExecutionFilter>
156                                             <action>
157                                                 <execute />
158                                             </action>
159                                         </pluginExecution>
160                                         <pluginExecution>
161                                             <pluginExecutionFilter>
162                                                 <groupId>org.commonjava.maven.plugins</groupId>
163                                                 <artifactId>directory-maven-plugin</artifactId>
164                                                 <versionRange>0.2</versionRange>
165                                                 <goals>
166                                                     <goal>directory-of</goal>
167                                                 </goals>
168                                             </pluginExecutionFilter>
169                                             <action>
170                                                 <execute />
171                                             </action>
172                                         </pluginExecution>
173                                         <pluginExecution>
174                                             <pluginExecutionFilter>
175                                                 <groupId>org.apache.maven.plugins</groupId>
176                                                 <artifactId>maven-dependency-plugin</artifactId>
177                                                 <versionRange>[2.0,)</versionRange>
178                                                 <goals>
179                                                     <goal>unpack</goal>
180                                                     <goal>unpack-dependencies</goal>
181                                                 </goals>
182                                             </pluginExecutionFilter>
183                                             <action>
184                                                 <execute />
185                                             </action>
186                                         </pluginExecution>
187                                         <pluginExecution>
188                                             <pluginExecutionFilter>
189                                                 <groupId>org.apache.maven.plugins</groupId>
190                                                 <artifactId>maven-antrun-plugin</artifactId>
191                                                 <versionRange>[1.0,)</versionRange>
192                                                 <goals>
193                                                     <goal>run</goal>
194                                                 </goals>
195                                             </pluginExecutionFilter>
196                                             <action>
197                                                 <ignore />
198                                             </action>
199                                         </pluginExecution>
200                                     </pluginExecutions>
201                                 </lifecycleMappingMetadata>
202                             </configuration>
203                         </plugin>
204                     </plugins>
205                 </pluginManagement>
206             </build>
207         </profile>
208     </profiles>
209 </project>