[RECV-94] Separate docker/robot invoking
[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.1.0-SNAPSHOT</version>
18     <name>AECBlueprintValidationUI 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.8.10</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>AECBlueprintValidationUI</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             <plugin>
148                 <groupId>io.fabric8</groupId>
149                 <artifactId>docker-maven-plugin</artifactId>
150                 <version>${docker-maven-plugin.version}</version>
151                 <configuration>
152                     <verbose>true</verbose>
153                     <images>
154                         <image>
155                             <name>akraino/validation:dev-ui-latest</name>
156                             <build>
157                                 <from>tomcat:8.5.37</from>
158                                 <assembly>
159                                     <descriptorRef>artifact</descriptorRef>
160                                 </assembly>
161                                 <runCmds>
162                                     <!-- must be all on one line; use CDATA
163                                         to turn off the Eclipse formatter -->
164                                     <run><![CDATA[mv /maven/*.war /usr/local/tomcat/webapps]]></run>
165                                 </runCmds>
166                             </build>
167                         </image>
168                         <image>
169                             <name>akraino/validation:dev-mariadb-latest</name>
170                             <build>
171                                 <from>mariadb:10.4.6</from>
172                                 <assembly>
173                                     <descriptorRef>project</descriptorRef>
174                                 </assembly>
175                                 <runCmds>
176                                     <!-- must be all on one line; use CDATA
177                                         to turn off the Eclipse formatter -->
178                                     <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>
179                                 </runCmds>
180                             </build>
181                         </image>
182                     </images>
183                 </configuration>
184             </plugin>
185
186         </plugins>
187     </build>
188
189     <dependencies>
190         <!-- SDK overlay war -->
191         <dependency>
192             <groupId>org.onap.portal.sdk</groupId>
193             <artifactId>epsdk-app-overlay</artifactId>
194             <version>${epsdk.version}</version>
195             <type>war</type>
196         </dependency>
197         <dependency>
198             <groupId>org.onap.portal.sdk</groupId>
199             <artifactId>epsdk-app-common</artifactId>
200             <version>${epsdk.version}</version>
201             <type>jar</type>
202         </dependency>
203         <!-- SDK components -->
204         <dependency>
205             <groupId>org.onap.portal.sdk</groupId>
206             <artifactId>epsdk-core</artifactId>
207             <version>${epsdk.version}</version>
208         </dependency>
209         <dependency>
210             <groupId>org.onap.portal.sdk</groupId>
211             <artifactId>epsdk-analytics</artifactId>
212             <version>${epsdk.version}</version>
213         </dependency>
214         <dependency>
215             <groupId>org.onap.portal.sdk</groupId>
216             <artifactId>epsdk-workflow</artifactId>
217             <version>${epsdk.version}</version>
218         </dependency>
219         <dependency>
220             <groupId>org.onap.portal.sdk</groupId>
221             <artifactId>epsdk-music</artifactId>
222             <version>${epsdk.version}</version>
223         </dependency>
224         <dependency>
225             <groupId>com.att.eelf</groupId>
226             <artifactId>eelf-core</artifactId>
227             <version>${eelf-core-version}</version>
228         </dependency>
229         <!-- Mapper -->
230         <dependency>
231             <groupId>com.fasterxml.jackson.core</groupId>
232             <artifactId>jackson-annotations</artifactId>
233             <version>${jackson.version}</version>
234         </dependency>
235         <dependency>
236             <groupId>com.fasterxml.jackson.core</groupId>
237             <artifactId>jackson-core</artifactId>
238             <version>${jackson.version}</version>
239         </dependency>
240         <dependency>
241             <groupId>com.fasterxml.jackson.core</groupId>
242             <artifactId>jackson-databind</artifactId>
243             <version>${jackson.version}</version>
244         </dependency>
245         <dependency>
246             <groupId>com.mchange</groupId>
247             <artifactId>c3p0</artifactId>
248             <version>${c3p0.version}</version>
249         </dependency>
250         <dependency>
251             <groupId>io.searchbox</groupId>
252             <artifactId>jest</artifactId>
253             <version>${io.searchbox.jest.version}</version>
254             <exclusions>
255                 <exclusion>
256                     <groupId>commons-logging</groupId>
257                     <artifactId>commons-logging</artifactId>
258                 </exclusion>
259             </exclusions>
260         </dependency>
261         <dependency>
262             <groupId>javax.servlet</groupId>
263             <artifactId>javax.servlet-api</artifactId>
264             <version>${javax.servlet-api.version}</version>
265         </dependency>
266         <dependency>
267             <groupId>junit</groupId>
268             <artifactId>junit</artifactId>
269             <version>${junit.version}</version>
270         </dependency>
271         <!-- Elastic Search -->
272         <dependency>
273             <groupId>org.elasticsearch</groupId>
274             <artifactId>elasticsearch</artifactId>
275             <version>${elasticsearch}</version>
276             <exclusions>
277                 <exclusion>
278                     <groupId>org.apache.lucene</groupId>
279                     <artifactId>lucene-queryparser</artifactId>
280                 </exclusion>
281             </exclusions>
282         </dependency>
283         <dependency>
284             <groupId>org.json</groupId>
285             <artifactId>json</artifactId>
286             <version>${org.json.version}</version>
287         </dependency>
288         <dependency>
289             <groupId>org.quartz-scheduler</groupId>
290             <artifactId>quartz</artifactId>
291             <version>${quartz.version}</version>
292             <exclusions>
293                 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
294                 <exclusion>
295                     <groupId>c3p0</groupId>
296                     <artifactId>c3p0</artifactId>
297                 </exclusion>
298             </exclusions>
299         </dependency>
300         <!-- bridge to implement commons-logging using slf4j -->
301         <dependency>
302             <groupId>org.slf4j</groupId>
303             <artifactId>jcl-over-slf4j</artifactId>
304             <version>${jcl-over-slf4j.version}</version>
305         </dependency>
306         <dependency>
307             <groupId>org.springframework</groupId>
308             <artifactId>spring-context-support</artifactId>
309             <version>${springframework-version}</version>
310         </dependency>
311         <dependency>
312             <groupId>org.springframework</groupId>
313             <artifactId>spring-core</artifactId>
314             <version>${springframework-version}</version>
315             <exclusions>
316                 <exclusion>
317                     <groupId>commons-logging</groupId>
318                     <artifactId>commons-logging</artifactId>
319                 </exclusion>
320             </exclusions>
321         </dependency>
322         <dependency>
323             <groupId>org.springframework</groupId>
324             <artifactId>spring-test</artifactId>
325             <version>${springframework-version}</version>
326         </dependency>
327         <dependency>
328             <groupId>org.springframework</groupId>
329             <artifactId>spring-tx</artifactId>
330             <version>${springframework-version}</version>
331         </dependency>
332         <dependency>
333             <groupId>org.springframework</groupId>
334             <artifactId>spring-web</artifactId>
335             <version>${springframework-version}</version>
336         </dependency>
337         <dependency>
338             <groupId>org.springframework</groupId>
339             <artifactId>spring-webmvc</artifactId>
340             <version>${springframework-version}</version>
341         </dependency>
342         <!-- Jacoco for offline instrumentation -->
343         <dependency>
344             <groupId>org.jacoco</groupId>
345             <artifactId>org.jacoco.agent</artifactId>
346             <version>${jacoco.version}</version>
347             <classifier>runtime</classifier>
348         </dependency>
349         <dependency>
350             <groupId>com.sun.jersey</groupId>
351             <artifactId>jersey-json</artifactId>
352             <version>${jersey-version}</version>
353         </dependency>
354         <dependency>
355             <groupId>com.sun.jersey</groupId>
356             <artifactId>jersey-client</artifactId>
357             <version>${jersey-version}</version>
358         </dependency>
359         <dependency>
360             <groupId>com.google.guava</groupId>
361             <artifactId>guava</artifactId>
362             <version>${google.guava-version}</version>
363         </dependency>
364         <dependency>
365             <groupId>org.jsoup</groupId>
366             <artifactId>jsoup</artifactId>
367             <version>${org.jsoup.version}</version>
368         </dependency>
369         <dependency>
370             <groupId>commons-httpclient</groupId>
371             <artifactId>commons-httpclient</artifactId>
372             <version>${commons-httpclient.version}</version>
373         </dependency>
374
375     </dependencies>
376 </project>