Containerization feature of SO
[so.git] / adapters / mso-catalog-db-adapter / pom.xml
index 4459660..df5f3fa 100644 (file)
@@ -2,32 +2,58 @@
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <parent>
-               <groupId>org.openecomp.so</groupId>
+               <groupId>org.onap.so</groupId>
                <artifactId>adapters</artifactId>
-               <version>1.1.0-SNAPSHOT</version>
+               <version>1.3.0-SNAPSHOT</version>
        </parent>
 
-       <groupId>org.openecomp.so.adapters</groupId>
+       <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>
                                                </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.openecomp.so</groupId>
-                       <artifactId>mso-catalog-db</artifactId>
-                       <version>${project.version}</version>
+                       <groupId>org.springframework.boot</groupId>
+                       <artifactId>spring-boot-starter-web</artifactId>
                </dependency>
                <dependency>
-                       <groupId>org.jboss.resteasy</groupId>
-                       <artifactId>resteasy-jaxrs</artifactId>
-                       <version>3.0.19.Final</version>
-                       <scope>provided</scope>
+                       <groupId>org.springframework.boot</groupId>
+                       <artifactId>spring-boot-starter-jdbc</artifactId>
                        <exclusions>
                                <exclusion>
-                                       <groupId>org.slf4j</groupId>
-                                       <artifactId>slf4j-api</artifactId>
-                               </exclusion>
-                               <exclusion>
-                                       <groupId>org.slf4j</groupId>
-                                       <artifactId>slf4j-simple</artifactId>
-                               </exclusion>
-                               <exclusion>
-                                       <groupId>org.apache.httpcomponents</groupId>
-                                       <artifactId>httpclient</artifactId>
+                                       <groupId>org.apache.tomcat</groupId>
+                                       <artifactId>tomcat-jdbc</artifactId>
                                </exclusion>
                        </exclusions>
                </dependency>
                <dependency>
-                       <groupId>org.jboss.resteasy</groupId>
-                       <artifactId>resteasy-jackson-provider</artifactId>
-                       <version>3.0.16.Final</version>
+                       <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.openecomp.so</groupId>
-                       <artifactId>status-control</artifactId>
+               <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>deployment-configs</artifactId>
                        <version>${project.version}</version>
-               </dependency>-->
-       </dependencies>
-
+               </dependency>
+               <dependency>
+                       <groupId>org.onap.so</groupId>
+                       <artifactId>mso-catalog-db</artifactId>
+                       <version>${project.version}</version>
+               </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