Containerization feature of SO
[so.git] / adapters / mso-catalog-db-adapter / pom.xml
index 67d81db..df5f3fa 100644 (file)
@@ -4,30 +4,56 @@
        <parent>
                <groupId>org.onap.so</groupId>
                <artifactId>adapters</artifactId>
-               <version>1.2.0-SNAPSHOT</version>
+               <version>1.3.0-SNAPSHOT</version>
        </parent>
 
        <groupId>org.onap.so.adapters</groupId>
        <artifactId>mso-catalog-db-adapter</artifactId>
-       <packaging>war</packaging>
-
+       <packaging>jar</packaging>
+       <properties>
+               <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+               <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+               <java.version>1.8</java.version>
+       </properties>
        <build>
-               <finalName>${project.artifactId}-${project.version}</finalName>
                <plugins>
                        <plugin>
-                               <artifactId>maven-war-plugin</artifactId>
-                               <version>2.4</version>
+                               <groupId>org.springframework.boot</groupId>
+                               <artifactId>spring-boot-maven-plugin</artifactId>
+                               <version>${springboot.version}</version>
                                <configuration>
-                                       <warSourceDirectory>WebContent</warSourceDirectory>
-                                       <failOnMissingWebXml>false</failOnMissingWebXml>
-                                       <attachClasses>true</attachClasses>
+                                       <mainClass>org.onap.so.adapters.catalogdb.CatalogDBApplication</mainClass>
                                </configuration>
+                               <executions>
+                                       <execution>
+                                               <goals>
+                                                       <goal>repackage</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-dependency-plugin</artifactId>
+                               <executions>
+                                       <execution>
+                                               <id>extract-docker-file</id>
+                                       </execution>
+                               </executions>
+                       </plugin>
+                       <plugin>
+                               <groupId>io.fabric8</groupId>
+                               <artifactId>fabric8-maven-plugin</artifactId>
+                               <executions>
+                                       <execution>
+                                               <id>start</id>
+                                       </execution>
+                               </executions>
                        </plugin>
-
                </plugins>
                <pluginManagement>
                        <plugins>
-                               <!--This plugin's configuration is used to store Eclipse m2e settings
+                               <!--This plugin's configuration is used to store Eclipse m2e settings 
                                        only. It has no influence on the Maven build itself. -->
                                <plugin>
                                        <groupId>org.eclipse.m2e</groupId>
@@ -45,7 +71,7 @@
                                                                                        jaxws-maven-plugin
                                                                                </artifactId>
                                                                                <versionRange>
-                                                                                       [2.3.1,)
+                                                                                       [2.3,)
                                                                                </versionRange>
                                                                                <goals>
                                                                                        <goal>wsgen</goal>
                                                </lifecycleMappingMetadata>
                                        </configuration>
                                </plugin>
+
+                               <plugin>
+                                       <groupId>org.jacoco</groupId>
+                                       <artifactId>jacoco-maven-plugin</artifactId>
+                               </plugin>
                        </plugins>
                </pluginManagement>
+               <finalName>${project.artifactId}-${project.version}</finalName>
        </build>
-
+       <dependencyManagement>
+               <dependencies>
+                       <dependency>
+                               <!-- Import dependency management from Spring Boot -->
+                               <groupId>org.springframework.boot</groupId>
+                               <artifactId>spring-boot-dependencies</artifactId>
+                               <version>${springboot.version}</version>
+                               <type>pom</type>
+                               <scope>import</scope>
+                       </dependency>
+               </dependencies>
+       </dependencyManagement>
        <dependencies>
+               <dependency>
+                       <groupId>org.springframework.boot</groupId>
+                       <artifactId>spring-boot-starter-web</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.springframework.boot</groupId>
+                       <artifactId>spring-boot-starter-jdbc</artifactId>
+                       <exclusions>
+                               <exclusion>
+                                       <groupId>org.apache.tomcat</groupId>
+                                       <artifactId>tomcat-jdbc</artifactId>
+                               </exclusion>
+                       </exclusions>
+               </dependency>
+               <dependency>
+                       <groupId>org.apache.commons</groupId>
+                       <artifactId>commons-dbcp2</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>io.swagger</groupId>
+                       <artifactId>swagger-jersey2-jaxrs</artifactId>
+                       <version>1.5.16</version>
+               </dependency>
+               <dependency>
+                       <groupId>org.mariadb.jdbc</groupId>
+                       <artifactId>mariadb-java-client</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.springframework.boot</groupId>
+                       <artifactId>spring-boot-starter-actuator</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.springframework.boot</groupId>
+                       <artifactId>spring-boot-starter-jersey</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.springframework.boot</groupId>
+                       <artifactId>spring-boot-starter-data-jpa</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.springframework.boot</groupId>
+                       <artifactId>spring-boot-starter-test</artifactId>
+                       <scope>test</scope>
+               </dependency>
                <dependency>
                        <groupId>org.onap.so</groupId>
-                       <artifactId>mso-catalog-db</artifactId>
+                       <artifactId>deployment-configs</artifactId>
                        <version>${project.version}</version>
                </dependency>
-               <!--<dependency>
+               <dependency>
                        <groupId>org.onap.so</groupId>
-                       <artifactId>status-control</artifactId>
+                       <artifactId>mso-catalog-db</artifactId>
                        <version>${project.version}</version>
-               </dependency>-->
-               <dependency>
-                   <groupId>javax.json</groupId>
-                   <artifactId>javax.json-api</artifactId>
-                   <version>1.0</version>
-                       <scope>test</scope>    
-               </dependency>
-<dependency>
-    <groupId>org.glassfish</groupId>
-    <artifactId>javax.json</artifactId>
-    <version>1.0.4</version>
-       <scope>test</scope>
-</dependency>
-<dependency>
-    <groupId>javax.servlet</groupId>
-    <artifactId>javax.servlet-api</artifactId>
-    <version>3.1.0</version>
-       <scope>test</scope>
-</dependency>
-       </dependencies>
-
-</project>
+               </dependency>
+               <dependency>
+                       <groupId>janino</groupId>
+                       <artifactId>janino</artifactId>
+                       <version>2.5.15</version>
+               </dependency>
+               <dependency>
+                       <groupId>uk.co.blackpepper.bowman</groupId>
+                       <artifactId>bowman-client</artifactId>
+                       <version>0.3.0</version>
+               </dependency>
+               <dependency>
+                       <groupId>ch.vorburger.mariaDB4j</groupId>
+                       <artifactId>mariaDB4j</artifactId>
+                       <version>2.2.3</version>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.flywaydb</groupId>
+                       <artifactId>flyway-core</artifactId>                    
+               </dependency>
+               <dependency>
+                       <groupId>io.micrometer</groupId>
+                       <artifactId>micrometer-spring-legacy</artifactId>
+                       <version>1.0.5</version>
+               </dependency>
+               <dependency>
+                       <groupId>io.micrometer</groupId>
+                       <artifactId>micrometer-registry-prometheus</artifactId>
+                       <version>1.0.5</version>
+               </dependency>
+    </dependencies>
+</project>
\ No newline at end of file