d7922b22306e0822470aa23eb1d4f040b4acd0f6
[sdnc/oam.git] / SdncReports / SdncReportsApi / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3     <modelVersion>4.0.0</modelVersion>
4
5     <parent>
6         <groupId>org.onap.sdnc.oam</groupId>
7         <artifactId>SdncReports</artifactId>
8         <version>2.0.1-SNAPSHOT</version>
9     </parent>
10
11     <groupId>org.onap.sdnc.oam</groupId>
12     <artifactId>SdncReportsApi</artifactId>
13     <version>2.0.1-SNAPSHOT</version>
14     <packaging>jar</packaging>
15
16     <name>sdnc-oam :: SdncReports :: SdncReportsApi</name>
17
18     <properties>
19         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
20         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
21         <java.version>1.8</java.version>
22     </properties>
23
24     <dependencies>
25
26         <dependency>
27             <groupId>ch.vorburger.mariaDB4j</groupId>
28             <artifactId>mariaDB4j</artifactId>
29             <version>2.2.3</version>
30         </dependency>
31
32         <!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
33         <dependency>
34             <groupId>com.google.code.gson</groupId>
35             <artifactId>gson</artifactId>
36             <version>2.8.2</version>
37         </dependency>
38
39         <dependency>
40             <groupId>${project.groupId}</groupId>
41             <artifactId>SdncReportsDao</artifactId>
42             <version>${project.version}</version>
43         </dependency>
44
45         <dependency>
46             <groupId>org.mariadb.jdbc</groupId>
47             <artifactId>mariadb-java-client</artifactId>
48             <version>1.1.9</version>
49         </dependency>
50
51         <dependency>
52             <groupId>org.springframework.boot</groupId>
53             <artifactId>spring-boot-starter-web</artifactId>
54             <version>1.5.4.RELEASE</version>
55         </dependency>
56
57         <dependency>
58             <groupId>org.springframework</groupId>
59             <artifactId>spring-context</artifactId>
60             <version>4.3.9.RELEASE</version>
61         </dependency>
62
63         <dependency>
64             <groupId>org.springframework.boot</groupId>
65             <artifactId>spring-boot-starter-tomcat</artifactId>
66             <scope>provided</scope>
67         </dependency>
68
69         <dependency>
70             <groupId>org.apache.tomcat.embed</groupId>
71             <artifactId>tomcat-embed-jasper</artifactId>
72             <scope>provided</scope>
73         </dependency>
74
75
76         <dependency>
77             <groupId>org.springframework.boot</groupId>
78             <artifactId>spring-boot-devtools</artifactId>
79             <optional>true</optional>
80         </dependency>
81
82         <dependency>
83             <groupId>org.springframework.boot</groupId>
84             <artifactId>spring-boot-starter-test</artifactId>
85             <version>1.5.3.RELEASE</version>
86             <scope>test</scope>
87         </dependency>
88
89         <dependency>
90             <groupId>org.springframework.boot</groupId>
91             <artifactId>spring-boot-starter-data-jpa</artifactId>
92         </dependency>
93
94         <!-- Add Log4j2 Dependency -->
95         <dependency>
96             <groupId>org.springframework.boot</groupId>
97             <artifactId>spring-boot-starter-log4j2</artifactId>
98         </dependency>
99
100         <!-- Add Web jars, instead of dist folder  -->
101         <dependency>
102             <groupId>org.webjars</groupId>
103             <artifactId>bootstrap</artifactId>
104             <version>3.3.7</version>
105         </dependency>
106
107         <dependency>
108             <groupId>org.webjars</groupId>
109             <artifactId>bootstrap-datepicker</artifactId>
110             <version>1.0.1</version>
111         </dependency>
112
113     </dependencies>
114
115     <build>
116         <plugins>
117
118             <plugin>
119                 <groupId>org.springframework.boot</groupId>
120                 <artifactId>spring-boot-maven-plugin</artifactId>
121                 <configuration>
122                     <executable>true</executable>
123                 </configuration>
124             </plugin>
125
126             <plugin>
127                 <groupId>org.apache.maven.plugins</groupId>
128                 <artifactId>maven-surefire-plugin</artifactId>
129                 <configuration>
130                     <skipTests>true</skipTests>
131                 </configuration>
132             </plugin>
133
134             <plugin>
135                 <groupId>org.jacoco</groupId>
136                 <artifactId>jacoco-maven-plugin</artifactId>
137                 <version>0.7.5.201505241946</version>
138                 <executions>
139                     <execution>
140                         <id>pre-unit-test</id>
141                         <goals>
142                             <goal>prepare-agent</goal>
143                         </goals>
144                         <configuration>
145                             <!-- Sets the path to the file which contains the execution data. -->
146                             <destFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</destFile>
147                             <!-- Sets the name of the property containing the settings for JaCoCo
148                                 runtime agent. -->
149                             <propertyName>surefireArgLine</propertyName>
150                         </configuration>
151                     </execution>
152
153                     <execution>
154                         <id>post-unit-test</id>
155                         <phase>test</phase>
156                         <goals>
157                             <goal>report</goal>
158                         </goals>
159                         <configuration>
160                             <!-- Sets the path to the file which contains the execution data. -->
161                             <dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile>
162                             <!-- Sets the output directory for the code coverage report. -->
163                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
164                         </configuration>
165                     </execution>
166                 </executions>
167             </plugin>
168
169             <plugin>
170                 <groupId>io.fabric8</groupId>
171                 <artifactId>docker-maven-plugin</artifactId>
172                 <version>0.15.3</version>
173                 <configuration>
174                     <dockerHost>http://127.0.0.1:9092</dockerHost>
175                     <verbose>true</verbose>
176                     <images>
177                         <image>
178                             <name>vishal/sdnc_report</name>
179                             <build>
180                                 <dockerFile>Dockerfile</dockerFile>
181                                 <assembly>
182                                     <descriptorRef>artifact</descriptorRef>
183                                 </assembly>
184                             </build>
185                         </image>
186                     </images>
187                 </configuration>
188             </plugin>
189         </plugins>
190     </build>
191 </project>