f14db0cf6eccb9aae82c1ba9f5132f79914f350b
[portal/ric-dashboard.git] / webapp-backend / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--<![CDATA[
3 ========================LICENSE_START=================================
4 O-RAN-SC
5 %%
6 Copyright (C) 2019 AT&T Intellectual Property and Nokia
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 <project xmlns="http://maven.apache.org/POM/4.0.0"
22         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24         <modelVersion>4.0.0</modelVersion>
25         <parent>
26                 <groupId>org.o-ran-sc.portal.ric-dashboard</groupId>
27                 <artifactId>ric-dash-parent</artifactId>
28                 <version>1.0.3-SNAPSHOT</version>
29         </parent>
30         <artifactId>ric-dash-be</artifactId>
31         <name>RIC Dashboard Webapp backend</name>
32         <properties>
33                 <java.version>1.8</java.version>
34                 <springfox.version>2.9.2</springfox.version>
35         </properties>
36         <dependencies>
37                 <dependency>
38                         <groupId>org.o-ran-sc.ric.a1med.client</groupId>
39                         <artifactId>a1-med-client</artifactId>
40                         <version>0.4.0-SNAPSHOT</version>
41                 </dependency>
42                 <dependency>
43                         <groupId>org.o-ran-sc.ric.anrxapp.client</groupId>
44                         <artifactId>anr-xapp-client</artifactId>
45                         <version>0.0.4-SNAPSHOT</version>
46                 </dependency>
47                 <dependency>
48                         <groupId>org.o-ran-sc.ric.e2mgr.client</groupId>
49                         <artifactId>e2-mgr-client</artifactId>
50                         <version>02052019-SNAPSHOT</version>
51                 </dependency>
52                 <dependency>
53                         <groupId>org.o-ran-sc.ric.xappmgr.client</groupId>
54                         <artifactId>xapp-mgr-client</artifactId>
55                         <version>0.1.2-SNAPSHOT</version>
56                 </dependency>
57                 <dependency>
58                         <groupId>org.springframework.boot</groupId>
59                         <artifactId>spring-boot-starter-web</artifactId>
60                 </dependency>
61                 <dependency>
62                         <groupId>org.slf4j</groupId>
63                         <artifactId>slf4j-api</artifactId>
64                 </dependency>
65                 <dependency>
66                         <groupId>ch.qos.logback</groupId>
67                         <artifactId>logback-classic</artifactId>
68                 </dependency>
69                 <dependency>
70                         <groupId>ch.qos.logback</groupId>
71                         <artifactId>logback-core</artifactId>
72                 </dependency>
73                 <dependency>
74                         <groupId>io.springfox</groupId>
75                         <artifactId>springfox-swagger2</artifactId>
76                         <version>${springfox.version}</version>
77                 </dependency>
78                 <dependency>
79                         <groupId>io.springfox</groupId>
80                         <artifactId>springfox-swagger-ui</artifactId>
81                         <version>${springfox.version}</version>
82                 </dependency>
83                 <!-- Mockito supports development, not just testing -->
84                 <dependency>
85                         <groupId>org.mockito</groupId>
86                         <artifactId>mockito-core</artifactId>
87                 </dependency>
88                 <!-- Test dependencies -->
89                 <dependency>
90                         <groupId>org.springframework.boot</groupId>
91                         <artifactId>spring-boot-starter-test</artifactId>
92                         <scope>test</scope>
93                 </dependency>
94         </dependencies>
95         <build>
96                 <plugins>
97                         <!-- do not deploy a jar or pom file -->
98                         <plugin>
99                                 <groupId>org.apache.maven.plugins</groupId>
100                                 <artifactId>maven-deploy-plugin</artifactId>
101                                 <!-- spring sets the <version>2.8</version> -->
102                                 <configuration>
103                                         <skip>true</skip>
104                                 </configuration>
105                         </plugin>
106                         <plugin>
107                                 <groupId>org.codehaus.mojo</groupId>
108                                 <artifactId>license-maven-plugin</artifactId>
109                                 <executions>
110                                         <execution>
111                                                 <goals>
112                                                         <goal>update-file-header</goal>
113                                                 </goals>
114                                                 <phase>process-sources</phase>
115                                                 <configuration>
116                                                         <organizationName>${lmp.organization.name}</organizationName>
117                                                         <inceptionYear>${lmp.inception.year}</inceptionYear>
118                                                         <projectName>${lmp.project.name}</projectName>
119                                                         <licenseName>${lmp.license.name}</licenseName>
120                                                         <processStartTag>${lmp.process.start.tag}</processStartTag>
121                                                         <processEndTag>${lmp.process.end.tag}</processEndTag>
122                                                         <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
123                                                 </configuration>
124                                         </execution>
125                                 </executions>
126                         </plugin>
127                         <plugin>
128                                 <groupId>org.springframework.boot</groupId>
129                                 <artifactId>spring-boot-maven-plugin</artifactId>
130                         </plugin>
131                         <plugin>
132                                 <artifactId>maven-resources-plugin</artifactId>
133                                 <!-- spring-boot sets the <version>3.1.0</version> -->
134                                 <executions>
135                                         <execution>
136                                                 <id>copy-resources</id>
137                                                 <phase>validate</phase>
138                                                 <goals>
139                                                         <goal>copy-resources</goal>
140                                                 </goals>
141                                                 <configuration>
142                                                         <outputDirectory>${project.build.directory}/classes/resources/</outputDirectory>
143                                                         <resources>
144                                                                 <resource>
145                                                                         <directory>${project.parent.basedir}/webapp-frontend/dist/dashApp/</directory>
146                                                                 </resource>
147                                                         </resources>
148                                                 </configuration>
149                                         </execution>
150                                 </executions>
151                         </plugin>
152                         <!-- https://stackoverflow.com/questions/39126226/fabric8-springboot-full-example -->
153                         <plugin>
154                                 <groupId>io.fabric8</groupId>
155                                 <artifactId>docker-maven-plugin</artifactId>
156                                 <version>0.28.0</version>
157                                 <configuration>
158                                         <verbose>true</verbose>
159                                         <!-- environment variables supplied by Jenkins -->
160                                         <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
161                                         <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
162                                         <images>
163                                                 <image>
164                                                         <!-- Specify a tag to avoid default tag "latest" -->
165                                                         <name>${project.artifactId}:${project.version}</name>
166                                                         <build>
167                                                                 <from>openjdk:8-jre-slim</from>
168                                                                 <tags>
169                                                                         <!-- Add tag with build number -->
170                                                                         <tag>${project.version}</tag>
171                                                                 </tags>
172                                                                 <assembly>
173                                                                         <descriptorRef>artifact</descriptorRef>
174                                                                 </assembly>
175                                                                 <runCmds>
176                                                                         <!-- Ensure logs dir exists and is world writable -->
177                                                                         <runCmd>mkdir /maven/logs</runCmd>
178                                                                         <runCmd>chmod -R 777 /maven</runCmd>
179                                                                 </runCmds>
180                                                                 <cmd>
181                                                                         <!-- CDATA prevents Eclipse formatter from breaking line -->
182                                                                         <shell><![CDATA[cd /maven; java -Xms128m -Xmx1024m -Djava.security.egd=file:/dev/./urandom -jar ${project.artifactId}-${project.version}.${project.packaging}]]></shell>
183                                                                 </cmd>
184                                                         </build>
185                                                 </image>
186                                         </images>
187                                 </configuration>
188                                 <!-- build Docker images in install phase, push in deploy phase -->
189                                 <executions>
190                                         <execution>
191                                                 <goals>
192                                                         <goal>build</goal>
193                                                         <goal>push</goal>
194                                                 </goals>
195                                         </execution>
196                                 </executions>
197                         </plugin>
198                 </plugins>
199         </build>
200 </project>