Merge "Allow sub directories for graphs"
[sdnc/oam.git] / SdncReports / SdncReportsApi / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0"
2         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4         <modelVersion>4.0.0</modelVersion>
5         <packaging>jar</packaging>
6         <artifactId>SdncReportsApi</artifactId>
7         <groupId>org.onap.sdnc.oam</groupId>
8         <version>1.4.1-SNAPSHOT</version>
9         <name>sdnc-oam :: SdncReports :: SdncReportsApi</name>
10         <parent>
11                 <groupId>org.onap.sdnc.oam</groupId>
12                 <artifactId>SdncReports</artifactId>
13                 <version>1.4.1-SNAPSHOT</version>
14         </parent>
15
16
17         <properties>
18                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19                 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
20                 <java.version>1.8</java.version>
21         </properties>
22
23         <dependencies>
24
25                 <!-- <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> 
26                         <scope>test</scope> <version>1.4.194</version> </dependency> -->
27
28                 <dependency>
29                         <groupId>ch.vorburger.mariaDB4j</groupId>
30                         <artifactId>mariaDB4j</artifactId>
31                         <version>2.2.3</version>
32                 </dependency>
33
34                 <!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
35                 <dependency>
36                         <groupId>com.google.code.gson</groupId>
37                         <artifactId>gson</artifactId>
38                         <version>2.8.2</version>
39                 </dependency>
40
41                 <!-- <dependency> <groupId>com.sdnc.reports</groupId> <artifactId>sdnc_reports_certification</artifactId> 
42                         <version>0.0.1-SNAPSHOT</version> <scope>test</scope> <classifier>exec</classifier> 
43                         </dependency> -->
44
45                 <dependency>
46                         <groupId>${project.groupId}</groupId>
47                         <artifactId>SdncReportsDao</artifactId>
48                         <version>${project.version}</version>
49                 </dependency>
50
51                 <dependency>
52                         <groupId>org.mariadb.jdbc</groupId>
53                         <artifactId>mariadb-java-client</artifactId>
54                         <version>1.1.9</version>
55                 </dependency>
56
57                 <dependency>
58                         <groupId>org.springframework.boot</groupId>
59                         <artifactId>spring-boot-starter-web</artifactId>
60                         <version>1.5.4.RELEASE</version>
61                 </dependency>
62
63                 <dependency>
64                         <groupId>org.springframework</groupId>
65                         <artifactId>spring-context</artifactId>
66                         <version>4.3.9.RELEASE</version>
67                 </dependency>
68
69                 <dependency>
70                         <groupId>org.springframework.boot</groupId>
71                         <artifactId>spring-boot-starter-tomcat</artifactId>
72                         <scope>provided</scope>
73                 </dependency>
74
75                 <dependency>
76                         <groupId>org.apache.tomcat.embed</groupId>
77                         <artifactId>tomcat-embed-jasper</artifactId>
78                         <scope>provided</scope>
79                 </dependency>
80
81
82                 <dependency>
83                         <groupId>org.springframework.boot</groupId>
84                         <artifactId>spring-boot-devtools</artifactId>
85                         <optional>true</optional>
86                 </dependency>
87
88                 <dependency>
89                         <groupId>org.springframework.boot</groupId>
90                         <artifactId>spring-boot-starter-test</artifactId>
91                         <scope>test</scope>
92                         <version>1.5.3.RELEASE</version>
93                 </dependency>
94
95                 <dependency>
96                         <groupId>org.springframework.boot</groupId>
97                         <artifactId>spring-boot-starter-data-jpa</artifactId>
98                 </dependency>
99
100                 <!-- Add Log4j2 Dependency -->
101                 <dependency>
102                         <groupId>org.springframework.boot</groupId>
103                         <artifactId>spring-boot-starter-log4j2</artifactId>
104                 </dependency>
105
106
107         </dependencies>
108
109         <build>
110
111                 <plugins>
112
113                         <plugin>
114                                 <groupId>org.springframework.boot</groupId>
115                                 <artifactId>spring-boot-maven-plugin</artifactId>
116                                 <configuration>
117                                         <executable>true</executable>
118                                 </configuration>
119                                 <!-- <configuration> <mainClass>${start-class}</mainClass> <layout>ZIP</layout> 
120                                         </configuration> <executions> <execution> <goals> <goal>repackage</goal> 
121                                         </goals> </execution> </executions> -->
122                         </plugin>
123
124                         <plugin>
125                                 <groupId>org.apache.maven.plugins</groupId>
126                                 <artifactId>maven-surefire-plugin</artifactId>
127                                 <configuration>
128                                         <skipTests>true</skipTests>
129                                 </configuration>
130                         </plugin>
131
132                         <plugin>
133                                 <groupId>org.jacoco</groupId>
134                                 <artifactId>jacoco-maven-plugin</artifactId>
135                                 <version>0.7.5.201505241946</version>
136                                 <executions>
137                                         <!-- Prepares the property pointing to the JaCoCo runtime agent which 
138                                                 is passed as VM argument when Maven the Surefire plugin is executed. -->
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                                         <!-- Ensures that the code coverage report for unit tests is created 
153                                                 after unit tests have been run. -->
154                                         <execution>
155                                                 <id>post-unit-test</id>
156                                                 <phase>test</phase>
157                                                 <goals>
158                                                         <goal>report</goal>
159                                                 </goals>
160                                                 <configuration>
161                                                         <!-- Sets the path to the file which contains the execution data. -->
162                                                         <dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile>
163                                                         <!-- Sets the output directory for the code coverage report. -->
164                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
165                                                 </configuration>
166                                         </execution>
167                                 </executions>
168                         </plugin>
169
170                         <plugin>
171                                 <groupId>io.fabric8</groupId>
172                                 <artifactId>docker-maven-plugin</artifactId>
173                                 <version>0.15.3</version>
174                                 <configuration>
175                                         <dockerHost>http://127.0.0.1:9092</dockerHost>
176                                         <verbose>true</verbose>
177                                         <images>
178                                                 <image>
179                                                         <name>vishal/sdnc_report</name>
180                                                         <build>
181                                                                 <dockerFile>Dockerfile</dockerFile>
182                                                                 <assembly>
183                                                                         <descriptorRef>artifact</descriptorRef>
184                                                                 </assembly>
185                                                         </build>
186                                                 </image>
187                                         </images>
188                                 </configuration>
189                         </plugin>
190                 </plugins>
191
192         </build>
193 </project>