830ffa764bdf8d3435b25c37e7e2140b85ba6288
[oam/tr069-adapter.git] / config-data / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 /*
4  * ============LICENSE_START========================================================================
5  * O-RAN-SC : tr-069-adapter
6  * =================================================================================================
7  * Copyright (C) 2020 CommScope Inc Intellectual Property.
8  * =================================================================================================
9  * This tr-069-adapter software file is distributed by CommScope Inc
10  * under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * This file is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * ===============LICENSE_END=======================================================================
21 */
22 -->
23 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
24    <modelVersion>4.0.0</modelVersion>
25    <parent>
26       <groupId>org.commscope.tr069adapter</groupId>
27       <artifactId>tr069adapter</artifactId>
28       <version>1.0.0</version>
29    </parent>
30    <groupId>org.commscope.tr069adapter.config</groupId>
31    <artifactId>config-data</artifactId>
32    <name>config-data</name>
33    <description>Configuration data import project for Spring Boot</description>
34    <licenses>
35       <license>
36          <name>The Apache Software License, Version 2.0</name>
37          <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
38       </license>
39    </licenses>
40    <repositories>
41       <repository>
42          <id>onap-releases</id>
43          <name>onap-releases</name>
44          <url>https://nexus.onap.org/content/repositories/releases/</url>
45       </repository>
46    </repositories>
47    <properties>
48       <docker.image.name>o-ran-sc/tr069adapter-acs-initialpnpdb</docker.image.name>
49    </properties>
50    <dependencies>
51       <dependency>
52          <groupId>org.springframework.boot</groupId>
53          <artifactId>spring-boot-starter-data-jpa</artifactId>
54       </dependency>
55       <dependency>
56          <groupId>org.springframework.boot</groupId>
57          <artifactId>spring-boot-starter-web</artifactId>
58          <exclusions>
59             <exclusion>
60                <groupId>org.springframework.boot</groupId>
61                <artifactId>spring-boot-starter-logging</artifactId>
62             </exclusion>
63          </exclusions>
64       </dependency>
65       <dependency>
66          <groupId>org.springframework.boot</groupId>
67          <artifactId>spring-boot-starter-log4j2</artifactId>
68       </dependency>
69       <dependency>
70          <groupId>org.mariadb.jdbc</groupId>
71          <artifactId>mariadb-java-client</artifactId>
72       </dependency>
73       <dependency>
74          <groupId>org.springframework.boot</groupId>
75          <artifactId>spring-boot-starter-test</artifactId>
76          <scope>test</scope>
77       </dependency>
78       <dependency>
79          <groupId>com.h2database</groupId>
80          <artifactId>h2</artifactId>
81          <scope>test</scope>
82       </dependency>
83       <dependency>
84          <groupId>junit</groupId>
85          <artifactId>junit</artifactId>
86       </dependency>
87       <dependency>
88          <groupId>junit</groupId>
89          <artifactId>junit-dep</artifactId>
90          <version>4.11</version>
91       </dependency>
92       <dependency>
93          <groupId>org.springframework.boot</groupId>
94          <artifactId>spring-boot-starter-test</artifactId>
95          <scope>test</scope>
96       </dependency>
97       <dependency>
98          <groupId>org.commscope.tr069adapter.acs.common</groupId>
99          <artifactId>acs-common</artifactId>
100          <version>1.0.0</version>
101       </dependency>
102    </dependencies>
103    <build>
104       <plugins>
105          <plugin>
106             <groupId>org.springframework.boot</groupId>
107             <artifactId>spring-boot-maven-plugin</artifactId>
108          </plugin>
109          <plugin>
110             <groupId>net.revelc.code.formatter</groupId>
111             <artifactId>formatter-maven-plugin</artifactId>
112             <version>${formatter-maven-plugin.version}</version>
113             <configuration>
114                <configFile>${project.parent.basedir}/eclipse-formatter.xml</configFile>
115             </configuration>
116             <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
117                                         spotless:apply process-sources -->
118          </plugin>
119          <plugin>
120             <groupId>com.diffplug.spotless</groupId>
121             <artifactId>spotless-maven-plugin</artifactId>
122             <version>${spotless-maven-plugin.version}</version>
123             <configuration>
124                <java>
125                   <removeUnusedImports />
126                   <importOrder>
127                      <order>com,java,javax,org</order>
128                   </importOrder>
129                </java>
130             </configuration>
131             <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
132                                         mvn spotless:apply to rewrite source files use mvn spotless:check to validate
133                                         source files -->
134          </plugin>
135          <plugin>
136             <groupId>org.apache.maven.plugins</groupId>
137             <artifactId>maven-surefire-plugin</artifactId>
138             <configuration>
139                <skipTests>false</skipTests>
140             </configuration>
141          </plugin>
142          <plugin>
143             <artifactId>maven-failsafe-plugin</artifactId>
144          </plugin>
145          <plugin>
146             <groupId>io.fabric8</groupId>
147             <artifactId>docker-maven-plugin</artifactId>
148             <version>${docker-maven-plugin}</version>
149             <inherited>false</inherited>
150             <executions>
151                <execution>
152                   <id>generate-policy-agent-image</id>
153                   <phase>package</phase>
154                   <goals>
155                      <goal>build</goal>
156                      <goal>save</goal>
157                   </goals>
158                   <configuration>
159                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
160                      <images>
161                         <image>
162                            <name>${docker.image.name}:${build.version}</name>
163                            <build>
164                               <cleanup>try</cleanup>
165                               <contextDir>${basedir}</contextDir>
166                               <dockerFile>Dockerfile</dockerFile>
167                               <args>
168                                  <JAR>${project.build.finalName}.jar</JAR>
169                               </args>
170                               <tags>
171                                  <tag>${project.version}</tag>
172                               </tags>
173                            </build>
174                         </image>
175                      </images>
176                   </configuration>
177                </execution>
178                <execution>
179                   <id>push-policy-agent-image</id>
180                   <goals>
181                      <goal>build</goal>
182                      <goal>push</goal>
183                   </goals>
184                   <configuration>
185                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
186                      <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
187                      <images>
188                         <image>
189                            <name>${docker.image.name}:${project.version}</name>
190                            <build>
191                               <contextDir>${basedir}</contextDir>
192                               <dockerFile>Dockerfile</dockerFile>
193                               <args>
194                                  <JAR>${project.build.finalName}.jar</JAR>
195                               </args>
196                               <tags>
197                                  <tag>latest</tag>
198                               </tags>
199                            </build>
200                         </image>
201                      </images>
202                   </configuration>
203                </execution>
204             </executions>
205          </plugin>
206          <!-- support sonar in multi-module project -->
207          <plugin>
208             <groupId>org.sonarsource.scanner.maven</groupId>
209             <artifactId>sonar-maven-plugin</artifactId>
210             <version>${sonar-maven-plugin.version}</version>
211          </plugin>
212       </plugins>
213    </build>
214    <issueManagement>
215       <system>JIRA</system>
216       <url>https://jira.o-ran-sc.org/</url>
217    </issueManagement>
218 </project>