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