Initial source code
[oam/tr069-adapter.git] / ves-agent / pom.xml
diff --git a/ves-agent/pom.xml b/ves-agent/pom.xml
new file mode 100644 (file)
index 0000000..30c9fdc
--- /dev/null
@@ -0,0 +1,236 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+/*\r
+ * ============LICENSE_START========================================================================\r
+ * ONAP : tr-069-adapter\r
+ * =================================================================================================\r
+ * Copyright (C) 2020 CommScope Inc Intellectual Property.\r
+ * =================================================================================================\r
+ * This tr-069-adapter software file is distributed by CommScope Inc\r
+ * under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * This file is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ * ===============LICENSE_END=======================================================================\r
+*/\r
+-->\r
+<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">\r
+   <parent>\r
+      <groupId>org.commscope.tr069adapter</groupId>\r
+      <artifactId>tr069adapter</artifactId>\r
+      <version>1.0.0</version>\r
+   </parent>\r
+   <modelVersion>4.0.0</modelVersion>\r
+   <groupId>org.commscope.tr069adapter.ves.agent</groupId>\r
+   <artifactId>ves-agent</artifactId>\r
+   <packaging>jar</packaging>\r
+   <name>ves-agent</name>\r
+   <licenses>\r
+      <license>\r
+         <name>The Apache Software License, Version 2.0</name>\r
+         <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>\r
+      </license>\r
+   </licenses>\r
+   <repositories>\r
+      <repository>\r
+         <id>onap-releases</id>\r
+         <name>onap-releases</name>\r
+         <url>https://nexus.onap.org/content/repositories/releases/</url>\r
+      </repository>\r
+   </repositories>\r
+   <properties>\r
+      <docker.image.name>tr069adapter-ves-notifier</docker.image.name>\r
+   </properties>\r
+   <dependencies>\r
+      <dependency>\r
+         <groupId>org.springframework.boot</groupId>\r
+         <artifactId>spring-boot-starter-web</artifactId>\r
+         <exclusions>\r
+            <exclusion>\r
+               <groupId>org.springframework.boot</groupId>\r
+               <artifactId>spring-boot-starter-logging</artifactId>\r
+            </exclusion>\r
+         </exclusions>\r
+      </dependency>\r
+      <dependency>\r
+         <groupId>org.springframework.boot</groupId>\r
+         <artifactId>spring-boot-starter-test</artifactId>\r
+         <scope>test</scope>\r
+      </dependency>\r
+      <dependency>\r
+         <groupId>org.springframework.boot</groupId>\r
+         <artifactId>spring-boot-starter-log4j2</artifactId>\r
+      </dependency>\r
+      <dependency>\r
+         <groupId>com.google.code.gson</groupId>\r
+         <artifactId>gson</artifactId>\r
+         <scope>compile</scope>\r
+      </dependency>\r
+      <dependency>\r
+         <groupId>org.mockito</groupId>\r
+         <artifactId>mockito-core</artifactId>\r
+      </dependency>\r
+      <dependency>\r
+         <groupId>org.springframework.boot</groupId>\r
+         <artifactId>spring-boot-starter-test</artifactId>\r
+         <scope>test</scope>\r
+      </dependency>\r
+      <dependency>\r
+         <groupId>junit</groupId>\r
+         <artifactId>junit</artifactId>\r
+         <scope>test</scope>\r
+      </dependency>\r
+      <dependency>\r
+         <groupId>junit</groupId>\r
+         <artifactId>junit-dep</artifactId>\r
+         <version>4.11</version>\r
+         <scope>test</scope>\r
+      </dependency>\r
+      <dependency>\r
+         <groupId>org.springframework.cloud</groupId>\r
+         <artifactId>spring-cloud-starter-kubernetes-config</artifactId>\r
+         <version>1.1.0.RELEASE</version>\r
+      </dependency>\r
+      <dependency>\r
+         <groupId>org.springframework.boot</groupId>\r
+         <artifactId>spring-boot-actuator-autoconfigure</artifactId>\r
+      </dependency>\r
+      <dependency>\r
+         <groupId>org.apache.httpcomponents</groupId>\r
+         <artifactId>httpclient</artifactId>\r
+      </dependency>\r
+      <dependency>\r
+         <groupId>org.commscope.tr069adapter.acs.common</groupId>\r
+         <artifactId>acs-common</artifactId>\r
+         <version>1.0.0</version>\r
+      </dependency>\r
+      <dependency>\r
+         <groupId>org.commscope.tr069adapter.mapper</groupId>\r
+         <artifactId>mapper</artifactId>\r
+         <version>1.0.0</version>\r
+         <classifier>lib</classifier>\r
+      </dependency>\r
+   </dependencies>\r
+   <build>\r
+      <plugins>\r
+         <plugin>\r
+            <groupId>org.springframework.boot</groupId>\r
+            <artifactId>spring-boot-maven-plugin</artifactId>\r
+         </plugin>\r
+         <plugin>\r
+            <groupId>net.revelc.code.formatter</groupId>\r
+            <artifactId>formatter-maven-plugin</artifactId>\r
+            <version>${formatter-maven-plugin.version}</version>\r
+            <configuration>\r
+               <configFile>${project.parent.basedir}/eclipse-formatter.xml</configFile>\r
+            </configuration>\r
+            <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format\r
+                                        spotless:apply process-sources -->\r
+         </plugin>\r
+         <plugin>\r
+            <groupId>com.diffplug.spotless</groupId>\r
+            <artifactId>spotless-maven-plugin</artifactId>\r
+            <version>${spotless-maven-plugin.version}</version>\r
+            <configuration>\r
+               <java>\r
+                  <removeUnusedImports />\r
+                  <importOrder>\r
+                     <order>com,java,javax,org</order>\r
+                  </importOrder>\r
+               </java>\r
+            </configuration>\r
+            <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use\r
+                                        mvn spotless:apply to rewrite source files use mvn spotless:check to validate\r
+                                        source files -->\r
+         </plugin>\r
+         <plugin>\r
+            <groupId>org.apache.maven.plugins</groupId>\r
+            <artifactId>maven-surefire-plugin</artifactId>\r
+             <version>2.17</version>\r
+            <configuration>\r
+               <skipTests>false</skipTests>\r
+            </configuration>\r
+         </plugin>\r
+         <plugin>\r
+            <artifactId>maven-failsafe-plugin</artifactId>\r
+         </plugin>\r
+         <plugin>\r
+            <groupId>io.fabric8</groupId>\r
+            <artifactId>docker-maven-plugin</artifactId>\r
+            <version>${docker-maven-plugin}</version>\r
+            <inherited>false</inherited>\r
+            <executions>\r
+               <execution>\r
+                  <id>generate-policy-agent-image</id>\r
+                  <phase>package</phase>\r
+                  <goals>\r
+                     <goal>build</goal>\r
+                                <goal>save</goal>\r
+                  </goals>\r
+                  <configuration>\r
+                     <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>\r
+                     <images>\r
+                        <image>\r
+                           <name>${docker.image.name}</name>\r
+                           <build>\r
+                              <cleanup>try</cleanup>\r
+                              <contextDir>${basedir}</contextDir>\r
+                              <dockerFile>Dockerfile</dockerFile>\r
+                              <args>\r
+                                 <JAR>${project.build.finalName}.jar</JAR>\r
+                              </args>\r
+                              <tags>\r
+                                 <tag>${project.version}</tag>\r
+                              </tags>\r
+                           </build>\r
+                        </image>\r
+                     </images>\r
+                  </configuration>\r
+               </execution>\r
+               <execution>\r
+                  <id>push-policy-agent-image</id>\r
+                  <goals>\r
+                     <goal>build</goal>\r
+                     <goal>push</goal>\r
+                  </goals>\r
+                  <configuration>\r
+                     <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>\r
+                     <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>\r
+                     <images>\r
+                        <image>\r
+                           <name>${docker.image.name}:${project.version}</name>\r
+                           <build>\r
+                              <contextDir>${basedir}</contextDir>\r
+                              <dockerFile>Dockerfile</dockerFile>\r
+                              <args>\r
+                                 <JAR>${project.build.finalName}.jar</JAR>\r
+                              </args>\r
+                              <tags>\r
+                                 <tag>latest</tag>\r
+                              </tags>\r
+                           </build>\r
+                        </image>\r
+                     </images>\r
+                  </configuration>\r
+               </execution>\r
+            </executions>\r
+         </plugin>\r
+         <!-- support sonar in multi-module project -->\r
+         <plugin>\r
+            <groupId>org.sonarsource.scanner.maven</groupId>\r
+            <artifactId>sonar-maven-plugin</artifactId>\r
+            <version>${sonar-maven-plugin.version}</version>\r
+         </plugin>\r
+      </plugins>\r
+   </build>\r
+   <issueManagement>\r
+      <system>JIRA</system>\r
+      <url>https://jira.o-ran-sc.org/</url>\r
+   </issueManagement>\r
+</project>
\ No newline at end of file