[UI] Prevent UI from XSS
[validation.git] / ui / pom.xml
1 <?xml version="1.0"?>
2 <!-- Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
3     Licensed under the Apache License, Version 2.0 (the "License"); you may not
4     use this file except in compliance with the License. You may obtain a copy
5     of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
6     by applicable law or agreed to in writing, software distributed under the
7     License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
8     OF ANY KIND, either express or implied. See the License for the specific
9     language governing permissions and limitations under the License. -->
10 <project xmlns="http://maven.apache.org/POM/4.0.0"
11     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
12     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
13     <modelVersion>4.0.0</modelVersion>
14
15     <groupId>org.akraino.validation</groupId>
16     <artifactId>ui</artifactId>
17     <version>0.3.4-SNAPSHOT</version>
18     <name>Bluval UI Maven Webapp</name>
19     <packaging>war</packaging>
20
21     <properties>
22         <maven.compiler.source>1.8</maven.compiler.source>
23         <maven.compiler.target>1.8</maven.compiler.target>
24         <java-version>1.8</java-version>
25         <encoding>UTF-8</encoding>
26         <!-- Skip assembling the zip; assemble via mvn -Dskipassembly=false
27             .. -->
28         <skipassembly>true</skipassembly>
29         <!-- Tests usually require some setup that maven cannot do, so skip. -->
30         <skiptests>false</skiptests>
31         <epsdk.version>2.4.0</epsdk.version>
32         <jacoco.version>0.7.9</jacoco.version>
33         <springframework-version>4.2.3.RELEASE</springframework-version>
34         <maven-surefire-plugin-version>2.19.1</maven-surefire-plugin-version>
35         <maven-war-plugin-version>2.0.2</maven-war-plugin-version>
36         <maven-deploy-plugin-version>2.8</maven-deploy-plugin-version>
37         <eelf-core-version>1.0.0</eelf-core-version>
38         <jackson.version>2.9.9</jackson.version>
39         <c3p0.version>0.9.5.2</c3p0.version>
40         <io.searchbox.jest.version>2.0.0</io.searchbox.jest.version>
41         <javax.servlet-api.version>3.1.0</javax.servlet-api.version>
42         <junit.version>4.12</junit.version>
43         <elasticsearch>2.2.0</elasticsearch>
44         <org.json.version>20180813</org.json.version>
45         <quartz.version>2.2.1</quartz.version>
46         <jcl-over-slf4j.version>1.7.12</jcl-over-slf4j.version>
47         <jersey-version>1.19.4</jersey-version>
48         <google.guava-version>27.1-jre</google.guava-version>
49         <org.jsoup.version>1.12.1</org.jsoup.version>
50         <commons-httpclient.version>3.1</commons-httpclient.version>
51         <docker-maven-plugin.version>0.22.0</docker-maven-plugin.version>
52         <tomcat.download.path>http://archive.apache.org/dist/tomcat/tomcat-8/v8.0.37/bin</tomcat.download.path>
53         <tomcat.download.name>apache-tomcat-8.0.37</tomcat.download.name>
54         <maven-assembly-plugin.version>3.0.0</maven-assembly-plugin.version>
55     </properties>
56
57     <repositories>
58         <repository>
59             <id>onap-releases</id>
60             <name>onap-releases</name>
61             <url>https://nexus.onap.org/content/repositories/releases/</url>
62         </repository>
63     </repositories>
64
65     <build>
66         <!-- The war file name carries no version number -->
67         <finalName>bluvalui</finalName>
68
69         <plugins>
70             <plugin>
71                 <groupId>org.apache.maven.plugins</groupId>
72                 <artifactId>maven-surefire-plugin</artifactId>
73                 <version>${maven-surefire-plugin-version}</version>
74                 <configuration>
75                     <skipTests>${skiptests}</skipTests>
76                     <includes>
77                         <include>**/Test*.java</include>
78                         <include>**/*Test.java</include>
79                         <include>**/*TestCase.java</include>
80                     </includes>
81                     <additionalClasspathElements>
82                         <additionalClasspathElement>${basedir}/war</additionalClasspathElement>
83                     </additionalClasspathElements>
84                     <systemPropertyVariables>
85                         <container.classpath>classpath:</container.classpath>
86                     </systemPropertyVariables>
87                 </configuration>
88             </plugin>
89
90             <!-- add version number to manifest -->
91             <plugin>
92                 <groupId>org.apache.maven.plugins</groupId>
93                 <artifactId>maven-war-plugin</artifactId>
94                 <version>${maven-war-plugin-version}</version>
95                 <configuration>
96                     <archive>
97                         <manifest>
98                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
99                         </manifest>
100                         <manifestEntries>
101                             <Build-Number>${project.version}</Build-Number>
102                             <Build-Time>${maven.build.timestamp}</Build-Time>
103                         </manifestEntries>
104                     </archive>
105                     <overlays>
106                         <overlay>
107                             <groupId>org.onap.portal.sdk</groupId>
108                             <artifactId>epsdk-app-overlay</artifactId>
109                             <excludes>
110                                 <exclude>app/fusion/scripts/DS2-view-models/welcome-content.html</exclude>
111                             </excludes>
112                         </overlay>
113                     </overlays>
114                 </configuration>
115             </plugin>
116
117             <plugin>
118                 <groupId>org.apache.maven.plugins</groupId>
119                 <artifactId>maven-assembly-plugin</artifactId>
120                 <version>${maven-assembly-plugin.version}</version>
121                 <configuration>
122                     <skipAssembly>${skipassembly}</skipAssembly>
123                     <descriptors>
124                         <descriptor>${basedir}/distribution.xml</descriptor>
125                     </descriptors>
126                 </configuration>
127                 <executions>
128                     <execution>
129                         <id>make-assembly</id>
130                         <phase>package</phase>
131                         <goals>
132                             <goal>single</goal>
133                         </goals>
134                     </execution>
135                 </executions>
136             </plugin>
137
138             <plugin>
139                 <groupId>org.apache.maven.plugins</groupId>
140                 <artifactId>maven-deploy-plugin</artifactId>
141                 <version>${maven-deploy-plugin-version}</version>
142                 <configuration>
143                     <skip>true</skip>
144                 </configuration>
145             </plugin>
146
147             <!-- Currently, the docker-maven-plugin is used only for the
148                 development mode -->
149             <plugin>
150                 <groupId>io.fabric8</groupId>
151                 <artifactId>docker-maven-plugin</artifactId>
152                 <version>${docker-maven-plugin.version}</version>
153                 <configuration>
154                     <verbose>true</verbose>
155                     <images>
156                         <image>
157                             <name>akraino/validation:dev-ui-latest</name>
158                             <build>
159                                 <from>tomcat:8.5.37</from>
160                                 <assembly>
161                                     <descriptorRef>artifact</descriptorRef>
162                                 </assembly>
163                                 <runCmds>
164                                     <!-- must be all on one line; use CDATA
165                                         to turn off the Eclipse formatter -->
166                                     <run><![CDATA[mv /maven/*.war /usr/local/tomcat/webapps]]></run>
167                                 </runCmds>
168                             </build>
169                         </image>
170                         <image>
171                             <name>akraino/validation:dev-mariadb-latest</name>
172                             <build>
173                                 <from>mariadb:10.4.6</from>
174                                 <assembly>
175                                     <descriptorRef>project</descriptorRef>
176                                 </assembly>
177                                 <runCmds>
178                                     <!-- must be all on one line; use CDATA
179                                         to turn off the Eclipse formatter -->
180                                     <run><![CDATA[mv /maven/db-scripts/EcompSdkDDLMySql_2_4_Common.sql /docker-entrypoint-initdb.d ; mv /maven/db-scripts/EcompSdkDDLMySql_2_4_OS.sql /docker-entrypoint-initdb.d ; mv /maven/db-scripts/EcompSdkDMLMySql_2_4_Common.sql /docker-entrypoint-initdb.d ; mv /maven/db-scripts/EcompSdkDMLMySql_2_4_OS.sql /docker-entrypoint-initdb.d ; mv /maven/db-scripts/akraino_blueprint_validation_db.sql /docker-entrypoint-initdb.d ; rm -fr /maven]]></run>
181                                 </runCmds>
182                             </build>
183                         </image>
184                     </images>
185                 </configuration>
186             </plugin>
187
188         </plugins>
189     </build>
190
191     <dependencies>
192         <!-- SDK overlay war -->
193         <dependency>
194             <groupId>org.onap.portal.sdk</groupId>
195             <artifactId>epsdk-app-overlay</artifactId>
196             <version>${epsdk.version}</version>
197             <type>war</type>
198         </dependency>
199         <dependency>
200             <groupId>org.onap.portal.sdk</groupId>
201             <artifactId>epsdk-app-common</artifactId>
202             <version>${epsdk.version}</version>
203             <type>jar</type>
204         </dependency>
205         <!-- SDK components -->
206         <dependency>
207             <groupId>org.onap.portal.sdk</groupId>
208             <artifactId>epsdk-core</artifactId>
209             <version>${epsdk.version}</version>
210         </dependency>
211         <dependency>
212             <groupId>org.onap.portal.sdk</groupId>
213             <artifactId>epsdk-analytics</artifactId>
214             <version>${epsdk.version}</version>
215         </dependency>
216         <dependency>
217             <groupId>org.onap.portal.sdk</groupId>
218             <artifactId>epsdk-workflow</artifactId>
219             <version>${epsdk.version}</version>
220         </dependency>
221         <dependency>
222             <groupId>org.onap.portal.sdk</groupId>
223             <artifactId>epsdk-music</artifactId>
224             <version>${epsdk.version}</version>
225         </dependency>
226         <dependency>
227             <groupId>com.att.eelf</groupId>
228             <artifactId>eelf-core</artifactId>
229             <version>${eelf-core-version}</version>
230         </dependency>
231         <!-- Mapper -->
232         <dependency>
233             <groupId>com.fasterxml.jackson.core</groupId>
234             <artifactId>jackson-annotations</artifactId>
235             <version>${jackson.version}</version>
236         </dependency>
237         <dependency>
238             <groupId>com.fasterxml.jackson.core</groupId>
239             <artifactId>jackson-core</artifactId>
240             <version>${jackson.version}</version>
241         </dependency>
242         <dependency>
243             <groupId>com.fasterxml.jackson.core</groupId>
244             <artifactId>jackson-databind</artifactId>
245             <version>${jackson.version}</version>
246         </dependency>
247         <dependency>
248             <groupId>com.mchange</groupId>
249             <artifactId>c3p0</artifactId>
250             <version>${c3p0.version}</version>
251         </dependency>
252         <dependency>
253             <groupId>io.searchbox</groupId>
254             <artifactId>jest</artifactId>
255             <version>${io.searchbox.jest.version}</version>
256             <exclusions>
257                 <exclusion>
258                     <groupId>commons-logging</groupId>
259                     <artifactId>commons-logging</artifactId>
260                 </exclusion>
261             </exclusions>
262         </dependency>
263         <dependency>
264             <groupId>javax.servlet</groupId>
265             <artifactId>javax.servlet-api</artifactId>
266             <version>${javax.servlet-api.version}</version>
267         </dependency>
268         <dependency>
269             <groupId>junit</groupId>
270             <artifactId>junit</artifactId>
271             <version>${junit.version}</version>
272         </dependency>
273         <!-- Elastic Search -->
274         <dependency>
275             <groupId>org.elasticsearch</groupId>
276             <artifactId>elasticsearch</artifactId>
277             <version>${elasticsearch}</version>
278             <exclusions>
279                 <exclusion>
280                     <groupId>org.apache.lucene</groupId>
281                     <artifactId>lucene-queryparser</artifactId>
282                 </exclusion>
283             </exclusions>
284         </dependency>
285         <dependency>
286             <groupId>org.json</groupId>
287             <artifactId>json</artifactId>
288             <version>${org.json.version}</version>
289         </dependency>
290         <dependency>
291             <groupId>org.quartz-scheduler</groupId>
292             <artifactId>quartz</artifactId>
293             <version>${quartz.version}</version>
294             <exclusions>
295                 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
296                 <exclusion>
297                     <groupId>c3p0</groupId>
298                     <artifactId>c3p0</artifactId>
299                 </exclusion>
300             </exclusions>
301         </dependency>
302         <!-- bridge to implement commons-logging using slf4j -->
303         <dependency>
304             <groupId>org.slf4j</groupId>
305             <artifactId>jcl-over-slf4j</artifactId>
306             <version>${jcl-over-slf4j.version}</version>
307         </dependency>
308         <dependency>
309             <groupId>org.springframework</groupId>
310             <artifactId>spring-context-support</artifactId>
311             <version>${springframework-version}</version>
312         </dependency>
313         <dependency>
314             <groupId>org.springframework</groupId>
315             <artifactId>spring-core</artifactId>
316             <version>${springframework-version}</version>
317             <exclusions>
318                 <exclusion>
319                     <groupId>commons-logging</groupId>
320                     <artifactId>commons-logging</artifactId>
321                 </exclusion>
322             </exclusions>
323         </dependency>
324         <dependency>
325             <groupId>org.springframework</groupId>
326             <artifactId>spring-test</artifactId>
327             <version>${springframework-version}</version>
328         </dependency>
329         <dependency>
330             <groupId>org.springframework</groupId>
331             <artifactId>spring-tx</artifactId>
332             <version>${springframework-version}</version>
333         </dependency>
334         <dependency>
335             <groupId>org.springframework</groupId>
336             <artifactId>spring-web</artifactId>
337             <version>${springframework-version}</version>
338         </dependency>
339         <dependency>
340             <groupId>org.springframework</groupId>
341             <artifactId>spring-webmvc</artifactId>
342             <version>${springframework-version}</version>
343         </dependency>
344         <!-- Jacoco for offline instrumentation -->
345         <dependency>
346             <groupId>org.jacoco</groupId>
347             <artifactId>org.jacoco.agent</artifactId>
348             <version>${jacoco.version}</version>
349             <classifier>runtime</classifier>
350         </dependency>
351         <dependency>
352             <groupId>com.sun.jersey</groupId>
353             <artifactId>jersey-json</artifactId>
354             <version>${jersey-version}</version>
355         </dependency>
356         <dependency>
357             <groupId>com.sun.jersey</groupId>
358             <artifactId>jersey-client</artifactId>
359             <version>${jersey-version}</version>
360         </dependency>
361         <dependency>
362             <groupId>com.google.guava</groupId>
363             <artifactId>guava</artifactId>
364             <version>${google.guava-version}</version>
365         </dependency>
366         <dependency>
367             <groupId>org.jsoup</groupId>
368             <artifactId>jsoup</artifactId>
369             <version>${org.jsoup.version}</version>
370         </dependency>
371         <dependency>
372             <groupId>commons-httpclient</groupId>
373             <artifactId>commons-httpclient</artifactId>
374             <version>${commons-httpclient.version}</version>
375         </dependency>
376     </dependencies>
377 </project>