adding the SNAPSHOT in pom
[oam/tr069-adapter.git] / factory / 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>${project.version}</version>
29    </parent>
30    <groupId>org.commscope.tr069adapter.factory</groupId>
31    <artifactId>factory</artifactId>
32    <name>factory</name>
33    <description>Factory 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-factorydb</docker.image.name>
49    </properties>
50    <dependencies>
51       <dependency>
52          <groupId>org.springframework.boot</groupId>
53          <artifactId>spring-boot-starter-web</artifactId>
54          <exclusions>
55             <exclusion>
56                <groupId>org.springframework.boot</groupId>
57                <artifactId>spring-boot-starter-logging</artifactId>
58             </exclusion>
59          </exclusions>
60       </dependency>
61       <dependency>
62          <groupId>org.springframework.boot</groupId>
63          <artifactId>spring-boot-starter-log4j2</artifactId>
64       </dependency>
65       <dependency>
66          <groupId>org.springframework.boot</groupId>
67          <artifactId>spring-boot-starter-test</artifactId>
68          <scope>test</scope>
69       </dependency>
70       <dependency>
71          <groupId>com.fasterxml.jackson.core</groupId>
72          <artifactId>jackson-databind</artifactId>
73       </dependency>
74       <dependency>
75          <groupId>org.commscope.tr069adapter.acs.common</groupId>
76          <artifactId>acs-common</artifactId>
77          <version>${project.version}</version>
78       </dependency>
79    </dependencies>
80    <build>
81       <plugins>
82          <plugin>
83             <groupId>org.springframework.boot</groupId>
84             <artifactId>spring-boot-maven-plugin</artifactId>
85          </plugin>
86          <plugin>
87             <groupId>net.revelc.code.formatter</groupId>
88             <artifactId>formatter-maven-plugin</artifactId>
89             <version>${formatter-maven-plugin.version}</version>
90             <configuration>
91                <configFile>${project.parent.basedir}/eclipse-formatter.xml</configFile>
92             </configuration>
93             <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
94                                         spotless:apply process-sources -->
95          </plugin>
96          <plugin>
97             <groupId>com.diffplug.spotless</groupId>
98             <artifactId>spotless-maven-plugin</artifactId>
99             <version>${spotless-maven-plugin.version}</version>
100             <configuration>
101                <java>
102                   <removeUnusedImports />
103                   <importOrder>
104                      <order>com,java,javax,org</order>
105                   </importOrder>
106                </java>
107             </configuration>
108             <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
109                                         mvn spotless:apply to rewrite source files use mvn spotless:check to validate
110                                         source files -->
111          </plugin>
112          <plugin>
113             <groupId>org.apache.maven.plugins</groupId>
114             <artifactId>maven-surefire-plugin</artifactId>
115             <configuration>
116                <skipTests>false</skipTests>
117             </configuration>
118          </plugin>
119          <plugin>
120             <groupId>org.jacoco</groupId>
121             <artifactId>jacoco-maven-plugin</artifactId>
122             <executions>
123                <execution>
124                   <goals>
125                      <goal>prepare-agent</goal>
126                   </goals>
127                </execution>
128                <!-- attached to Maven test phase -->
129                <execution>
130                   <id>report</id>
131                   <phase>test</phase>
132                   <goals>
133                      <goal>report</goal>
134                   </goals>
135                </execution>
136             </executions>
137          </plugin>
138          <plugin>
139             <artifactId>maven-failsafe-plugin</artifactId>
140          </plugin>
141          <plugin>
142             <groupId>io.fabric8</groupId>
143             <artifactId>docker-maven-plugin</artifactId>
144             <version>${docker-maven-plugin}</version>
145             <inherited>false</inherited>
146             <executions>
147                <execution>
148                   <id>generate-policy-agent-image</id>
149                   <phase>package</phase>
150                   <goals>
151                      <goal>build</goal>
152                                          <goal>save</goal>
153                   </goals>
154                   <configuration>
155                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
156                      <images>
157                         <image>
158                            <name>${docker.image.name}:${build.version}</name>
159                            <build>
160                               <cleanup>try</cleanup>
161                               <contextDir>${basedir}</contextDir>
162                               <dockerFile>Dockerfile</dockerFile>
163                               <args>
164                                  <JAR>${project.build.finalName}.jar</JAR>
165                               </args>
166                               <tags>
167                                  <tag>${project.version}</tag>
168                               </tags>
169                            </build>
170                         </image>
171                      </images>
172                   </configuration>
173                </execution>
174                <execution>
175                   <id>push-policy-agent-image</id>
176                   <goals>
177                      <goal>build</goal>
178                      <goal>push</goal>
179                   </goals>
180                   <configuration>
181                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
182                      <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
183                      <images>
184                         <image>
185                            <name>${docker.image.name}:${project.version}</name>
186                            <build>
187                               <contextDir>${basedir}</contextDir>
188                               <dockerFile>Dockerfile</dockerFile>
189                               <args>
190                                  <JAR>${project.build.finalName}.jar</JAR>
191                               </args>
192                               <tags>
193                                  <tag>latest</tag>
194                               </tags>
195                            </build>
196                         </image>
197                      </images>
198                   </configuration>
199                </execution>
200             </executions>
201          </plugin>
202          <!-- support sonar in multi-module project -->
203          <plugin>
204             <groupId>org.sonarsource.scanner.maven</groupId>
205             <artifactId>sonar-maven-plugin</artifactId>
206             <version>${sonar-maven-plugin.version}</version>
207          </plugin>
208       </plugins>
209    </build>
210    <issueManagement>
211       <system>JIRA</system>
212       <url>https://jira.o-ran-sc.org/</url>
213    </issueManagement>
214 </project>