Add Vuls security test for ubuntu and centos
[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.4.7-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         <mysql-connector.version>8.0.17</mysql-connector.version>
56     </properties>
57
58     <repositories>
59         <repository>
60             <id>onap-releases</id>
61             <name>onap-releases</name>
62             <url>https://nexus.onap.org/content/repositories/releases/</url>
63         </repository>
64     </repositories>
65
66     <build>
67         <!-- The war file name carries no version number -->
68         <finalName>bluvalui</finalName>
69
70         <plugins>
71             <plugin>
72                 <groupId>org.apache.maven.plugins</groupId>
73                 <artifactId>maven-surefire-plugin</artifactId>
74                 <version>${maven-surefire-plugin-version}</version>
75                 <configuration>
76                     <skipTests>${skiptests}</skipTests>
77                     <includes>
78                         <include>**/Test*.java</include>
79                         <include>**/*Test.java</include>
80                         <include>**/*TestCase.java</include>
81                     </includes>
82                     <additionalClasspathElements>
83                         <additionalClasspathElement>${basedir}/war</additionalClasspathElement>
84                     </additionalClasspathElements>
85                     <systemPropertyVariables>
86                         <container.classpath>classpath:</container.classpath>
87                     </systemPropertyVariables>
88                 </configuration>
89             </plugin>
90
91             <!-- add version number to manifest -->
92             <plugin>
93                 <groupId>org.apache.maven.plugins</groupId>
94                 <artifactId>maven-war-plugin</artifactId>
95                 <version>${maven-war-plugin-version}</version>
96                 <configuration>
97                     <archive>
98                         <manifest>
99                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
100                         </manifest>
101                         <manifestEntries>
102                             <Build-Number>${project.version}</Build-Number>
103                             <Build-Time>${maven.build.timestamp}</Build-Time>
104                         </manifestEntries>
105                     </archive>
106                     <overlays>
107                         <overlay>
108                             <groupId>org.onap.portal.sdk</groupId>
109                             <artifactId>epsdk-app-overlay</artifactId>
110                             <excludes>
111                                 <exclude>app/fusion/scripts/DS2-view-models/welcome-content.html</exclude>
112                             </excludes>
113                         </overlay>
114                     </overlays>
115                 </configuration>
116             </plugin>
117
118             <plugin>
119                 <groupId>org.apache.maven.plugins</groupId>
120                 <artifactId>maven-assembly-plugin</artifactId>
121                 <version>${maven-assembly-plugin.version}</version>
122                 <configuration>
123                     <skipAssembly>${skipassembly}</skipAssembly>
124                     <descriptors>
125                         <descriptor>${basedir}/distribution.xml</descriptor>
126                     </descriptors>
127                 </configuration>
128                 <executions>
129                     <execution>
130                         <id>make-assembly</id>
131                         <phase>package</phase>
132                         <goals>
133                             <goal>single</goal>
134                         </goals>
135                     </execution>
136                 </executions>
137             </plugin>
138
139             <plugin>
140                 <groupId>org.apache.maven.plugins</groupId>
141                 <artifactId>maven-deploy-plugin</artifactId>
142                 <version>${maven-deploy-plugin-version}</version>
143                 <configuration>
144                     <skip>true</skip>
145                 </configuration>
146             </plugin>
147
148             <!-- Currently, the docker-maven-plugin is used only for the
149                 development mode -->
150             <plugin>
151                 <groupId>io.fabric8</groupId>
152                 <artifactId>docker-maven-plugin</artifactId>
153                 <version>${docker-maven-plugin.version}</version>
154                 <configuration>
155                     <verbose>true</verbose>
156                     <images>
157                         <image>
158                             <name>akraino/validation:dev-ui-latest</name>
159                             <build>
160                                 <from>tomcat:8.5.37</from>
161                                 <assembly>
162                                     <descriptor>${project.basedir}/ui-docker-assembly.xml</descriptor>
163                                 </assembly>
164                                 <runCmds>
165                                     <!-- must be all on one line; use CDATA
166                                         to turn off the Eclipse formatter -->
167                                     <run><![CDATA[mv /maven/target/*.war /usr/local/tomcat/webapps; mv /maven/docker-files/index.jsp /usr/local/tomcat/webapps/ROOT; mv /maven/docker-files/server.xml /usr/local/tomcat/conf; rm -fr /maven]]></run>
168                                 </runCmds>
169                             </build>
170                         </image>
171                         <image>
172                             <name>akraino/validation:dev-mysql-latest</name>
173                             <build>
174                                 <from>mysql:5.6</from>ll
175                                 <assembly>
176                                     <descriptorRef>project</descriptorRef>
177                                 </assembly>
178                                 <runCmds>
179                                     <!-- must be all on one line; use CDATA
180                                         to turn off the Eclipse formatter -->
181                                     <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>
182                                 </runCmds>
183                             </build>
184                         </image>
185                     </images>
186                 </configuration>
187             </plugin>
188
189         </plugins>
190     </build>
191
192     <dependencies>
193         <!-- SDK overlay war -->
194         <dependency>
195             <groupId>org.onap.portal.sdk</groupId>
196             <artifactId>epsdk-app-overlay</artifactId>
197             <version>${epsdk.version}</version>
198             <type>war</type>
199         </dependency>
200         <dependency>
201             <groupId>org.onap.portal.sdk</groupId>
202             <artifactId>epsdk-app-common</artifactId>
203             <version>${epsdk.version}</version>
204             <type>jar</type>
205         </dependency>
206         <!-- SDK components -->
207         <dependency>
208             <groupId>org.onap.portal.sdk</groupId>
209             <artifactId>epsdk-core</artifactId>
210             <version>${epsdk.version}</version>
211         </dependency>
212         <dependency>
213             <groupId>org.onap.portal.sdk</groupId>
214             <artifactId>epsdk-analytics</artifactId>
215             <version>${epsdk.version}</version>
216         </dependency>
217         <dependency>
218             <groupId>org.onap.portal.sdk</groupId>
219             <artifactId>epsdk-workflow</artifactId>
220             <version>${epsdk.version}</version>
221         </dependency>
222         <dependency>
223             <groupId>org.onap.portal.sdk</groupId>
224             <artifactId>epsdk-music</artifactId>
225             <version>${epsdk.version}</version>
226         </dependency>
227         <dependency>
228             <groupId>com.att.eelf</groupId>
229             <artifactId>eelf-core</artifactId>
230             <version>${eelf-core-version}</version>
231         </dependency>
232         <!-- Mapper -->
233         <dependency>
234             <groupId>com.fasterxml.jackson.core</groupId>
235             <artifactId>jackson-annotations</artifactId>
236             <version>${jackson.version}</version>
237         </dependency>
238         <dependency>
239             <groupId>com.fasterxml.jackson.core</groupId>
240             <artifactId>jackson-core</artifactId>
241             <version>${jackson.version}</version>
242         </dependency>
243         <dependency>
244             <groupId>com.fasterxml.jackson.core</groupId>
245             <artifactId>jackson-databind</artifactId>
246             <version>${jackson.version}</version>
247         </dependency>
248         <dependency>
249             <groupId>com.mchange</groupId>
250             <artifactId>c3p0</artifactId>
251             <version>${c3p0.version}</version>
252         </dependency>
253         <dependency>
254             <groupId>io.searchbox</groupId>
255             <artifactId>jest</artifactId>
256             <version>${io.searchbox.jest.version}</version>
257             <exclusions>
258                 <exclusion>
259                     <groupId>commons-logging</groupId>
260                     <artifactId>commons-logging</artifactId>
261                 </exclusion>
262             </exclusions>
263         </dependency>
264         <dependency>
265             <groupId>javax.servlet</groupId>
266             <artifactId>javax.servlet-api</artifactId>
267             <version>${javax.servlet-api.version}</version>
268         </dependency>
269         <dependency>
270             <groupId>junit</groupId>
271             <artifactId>junit</artifactId>
272             <version>${junit.version}</version>
273         </dependency>
274         <!-- Elastic Search -->
275         <dependency>
276             <groupId>org.elasticsearch</groupId>
277             <artifactId>elasticsearch</artifactId>
278             <version>${elasticsearch}</version>
279             <exclusions>
280                 <exclusion>
281                     <groupId>org.apache.lucene</groupId>
282                     <artifactId>lucene-queryparser</artifactId>
283                 </exclusion>
284             </exclusions>
285         </dependency>
286         <dependency>
287             <groupId>org.json</groupId>
288             <artifactId>json</artifactId>
289             <version>${org.json.version}</version>
290         </dependency>
291         <dependency>
292             <groupId>org.quartz-scheduler</groupId>
293             <artifactId>quartz</artifactId>
294             <version>${quartz.version}</version>
295             <exclusions>
296                 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
297                 <exclusion>
298                     <groupId>c3p0</groupId>
299                     <artifactId>c3p0</artifactId>
300                 </exclusion>
301             </exclusions>
302         </dependency>
303         <!-- bridge to implement commons-logging using slf4j -->
304         <dependency>
305             <groupId>org.slf4j</groupId>
306             <artifactId>jcl-over-slf4j</artifactId>
307             <version>${jcl-over-slf4j.version}</version>
308         </dependency>
309         <dependency>
310             <groupId>org.springframework</groupId>
311             <artifactId>spring-context-support</artifactId>
312             <version>${springframework-version}</version>
313         </dependency>
314         <dependency>
315             <groupId>org.springframework</groupId>
316             <artifactId>spring-core</artifactId>
317             <version>${springframework-version}</version>
318             <exclusions>
319                 <exclusion>
320                     <groupId>commons-logging</groupId>
321                     <artifactId>commons-logging</artifactId>
322                 </exclusion>
323             </exclusions>
324         </dependency>
325         <dependency>
326             <groupId>org.springframework</groupId>
327             <artifactId>spring-test</artifactId>
328             <version>${springframework-version}</version>
329         </dependency>
330         <dependency>
331             <groupId>org.springframework</groupId>
332             <artifactId>spring-tx</artifactId>
333             <version>${springframework-version}</version>
334         </dependency>
335         <dependency>
336             <groupId>org.springframework</groupId>
337             <artifactId>spring-web</artifactId>
338             <version>${springframework-version}</version>
339         </dependency>
340         <dependency>
341             <groupId>org.springframework</groupId>
342             <artifactId>spring-webmvc</artifactId>
343             <version>${springframework-version}</version>
344         </dependency>
345         <!-- Jacoco for offline instrumentation -->
346         <dependency>
347             <groupId>org.jacoco</groupId>
348             <artifactId>org.jacoco.agent</artifactId>
349             <version>${jacoco.version}</version>
350             <classifier>runtime</classifier>
351         </dependency>
352         <dependency>
353             <groupId>com.sun.jersey</groupId>
354             <artifactId>jersey-json</artifactId>
355             <version>${jersey-version}</version>
356         </dependency>
357         <dependency>
358             <groupId>com.sun.jersey</groupId>
359             <artifactId>jersey-client</artifactId>
360             <version>${jersey-version}</version>
361         </dependency>
362         <dependency>
363             <groupId>com.google.guava</groupId>
364             <artifactId>guava</artifactId>
365             <version>${google.guava-version}</version>
366         </dependency>
367         <dependency>
368             <groupId>org.jsoup</groupId>
369             <artifactId>jsoup</artifactId>
370             <version>${org.jsoup.version}</version>
371         </dependency>
372         <dependency>
373             <groupId>commons-httpclient</groupId>
374             <artifactId>commons-httpclient</artifactId>
375             <version>${commons-httpclient.version}</version>
376         </dependency>
377         <dependency>
378             <groupId>mysql</groupId>
379             <artifactId>mysql-connector-java</artifactId>
380             <version>${mysql-connector.version}</version>
381         </dependency>
382
383     </dependencies>
384 </project>