Merge "Moving report button up, and setting feature flag on"
[vid.git] / vid-ext-services-simulator / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0"
3          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5     <modelVersion>4.0.0</modelVersion>
6     <groupId>org.onap.vid</groupId>
7     <artifactId>vid-ext-services-simulator</artifactId>
8     <version>1.0.0</version>
9     <name>VID Simulator</name>
10     <packaging>war</packaging>
11     <description>VID Simulator for mocking external peers</description>
12
13     <properties>
14         <encoding>UTF-8</encoding>
15         <springframework.version>5.1.6.RELEASE</springframework.version>
16         <hibernate.version>5.3.4.Final</hibernate.version>
17         <jackson.version>2.9.8</jackson.version>
18         <!-- Skip assembling the zip by default -->
19         <skipassembly>true</skipassembly>
20         <!-- Tests usually require some setup that maven cannot do, so skip. -->
21         <skiptests>true</skiptests>
22         <!-- this should be commented for local debugging -->
23         <!-- <deployenv>local</deployenv> -->
24         <nexusproxy>https://nexus.onap.org</nexusproxy>
25         <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
26         <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
27         <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
28
29         <!-- "none" will skip cobertura by default; enable the profile "cobertura" to enable it -->
30         <coberturaBuildPhase>none</coberturaBuildPhase>
31
32         <!-- will build docker-maven-plugin by default; enable the profile "no-docker" to disable it -->
33         <skipDockerBuild>false</skipDockerBuild>
34         <dockerBuildPhase>package</dockerBuildPhase>
35         <dockerPushPhase>deploy</dockerPushPhase>
36     </properties>
37
38     <profiles>
39         <profile>
40             <id>onap</id>
41             <properties>
42                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
43                 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
44                 <nexusproxy>https://nexus.onap.org</nexusproxy>
45                 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
46                 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
47                 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
48                 <sitePath>content/sites/site/org/openecomp/vid/${project.version}</sitePath>
49             </properties>
50
51             <repositories>
52                 <repository>
53                     <id>oss-snapshots</id>
54                     <name>oss Central - Snapshots</name>
55                     <url>https://oss.sonatype.org/service/local/repositories/releases/content/</url>
56                 </repository>
57             </repositories>
58         </profile>
59
60         <profile>
61             <id>default</id>
62         </profile>
63
64         <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
65         <profile>
66             <id>doclint-java8-disable</id>
67             <activation>
68                 <jdk>[1.8,)</jdk>
69             </activation>
70             <build>
71                 <plugins>
72                     <plugin>
73                         <groupId>org.apache.maven.plugins</groupId>
74                         <artifactId>maven-javadoc-plugin</artifactId>
75                         <version>2.10.4</version>
76                         <configuration>
77                             <additionalparam>-Xdoclint:none</additionalparam>
78                         </configuration>
79                     </plugin>
80                 </plugins>
81             </build>
82         </profile>
83
84         <profile>
85             <id>cobertura</id>
86             <properties>
87                 <coberturaBuildPhase>package</coberturaBuildPhase>
88             </properties>
89         </profile>
90
91         <profile>
92             <id>no-docker</id>
93             <properties>
94                 <skipDockerBuild>true</skipDockerBuild>
95                 <dockerBuildPhase>none</dockerBuildPhase>
96                 <dockerPushPhase>none</dockerPushPhase>
97             </properties>
98         </profile>
99
100         <profile>
101             <id>docker-proxy</id>
102             <!-- activate profile if environment variable `http_proxy` is set -->
103             <activation>
104                 <property>
105                     <name>env.http_proxy</name>
106                 </property>
107             </activation>
108             <properties>
109                 <docker.buildArg.http_proxy>${env.http_proxy}</docker.buildArg.http_proxy>
110             </properties>
111         </profile>
112
113     </profiles>
114
115     <dependencies>
116         <!-- mockserver -->
117         <dependency>
118             <groupId>org.mock-server</groupId>
119             <artifactId>mockserver-netty</artifactId>
120             <version>3.11</version>
121         </dependency>
122         <dependency>
123             <groupId>org.springframework</groupId>
124             <artifactId>spring-web</artifactId>
125             <version>${springframework.version}</version>
126         </dependency>
127         <dependency>
128             <groupId>org.springframework</groupId>
129             <artifactId>spring-webmvc</artifactId>
130             <version>${springframework.version}</version>
131         </dependency>
132         <dependency>
133             <groupId>com.fasterxml.jackson.core</groupId>
134             <artifactId>jackson-core</artifactId>
135             <version>${jackson.version}</version>
136         </dependency>
137         <dependency>
138             <groupId>com.fasterxml.jackson.core</groupId>
139             <artifactId>jackson-annotations</artifactId>
140             <version>${jackson.version}</version>
141         </dependency>
142         <dependency>
143             <groupId>com.fasterxml.jackson.core</groupId>
144             <artifactId>jackson-databind</artifactId>
145             <version>${jackson.version}</version>
146         </dependency>
147         <dependency>
148             <groupId>javax.xml.bind</groupId>
149             <artifactId>jaxb-api</artifactId>
150             <version>2.2.11</version>
151         </dependency>
152
153         <dependency>
154             <groupId>org.hibernate</groupId>
155             <artifactId>hibernate-entitymanager</artifactId>
156             <version>${hibernate.version}</version>
157         </dependency>
158         <dependency>
159             <groupId>org.hibernate</groupId>
160             <artifactId>hibernate-core</artifactId>
161             <version>${hibernate.version}</version>
162         </dependency>
163
164         <dependency>
165             <groupId>org.mariadb.jdbc</groupId>
166             <artifactId>mariadb-java-client</artifactId>
167             <version>2.2.6</version>
168         </dependency>
169
170         <dependency>
171             <groupId>org.hibernate.javax.persistence</groupId>
172             <artifactId>hibernate-jpa-2.1-api</artifactId>
173             <version>1.0.0.Final</version>
174         </dependency>
175
176         <dependency>
177             <groupId>com.google.code.gson</groupId>
178             <artifactId>gson</artifactId>
179             <version>2.8.0</version>
180         </dependency>
181
182     </dependencies>
183
184     <build>
185         <finalName>vidSimulator</finalName>
186         <plugins>
187             <plugin>
188                 <groupId>org.apache.maven.plugins</groupId>
189                 <artifactId>maven-compiler-plugin</artifactId>
190                 <version>3.1</version>
191                 <configuration>
192                     <source>1.8</source>
193                     <target>1.8</target>
194                 </configuration>
195             </plugin>
196
197             <plugin>
198                 <groupId>io.fabric8</groupId>
199                 <artifactId>docker-maven-plugin</artifactId>
200                 <version>0.27.2</version>
201
202                 <configuration>
203                     <skip>${skipDockerBuild}</skip>
204                     <images>
205                         <image>
206                             <name>onap/vid-simulator</name>
207                             <build>
208                                 <cleanup>remove</cleanup>
209                                 <dockerFileDir>${project.basedir}</dockerFileDir>
210                                 <tags>
211                                     <tag>${project.version}</tag>
212                                     <tag>latest</tag>
213                                 </tags>
214                             </build>
215                         </image>
216                     </images>
217                 </configuration>
218
219                 <executions>
220                     <execution>
221                         <id>generate-image</id>
222                         <phase>${dockerBuildPhase}</phase>
223                         <goals>
224                             <goal>build</goal>
225                         </goals>
226                     </execution>
227
228                     <execution>
229                         <id>push-image</id>
230                         <phase>${dockerPushPhase}</phase>
231                         <goals>
232                             <goal>build</goal>
233                             <goal>push</goal>
234                         </goals>
235                     </execution>
236                 </executions>
237
238             </plugin>
239
240         </plugins>
241     </build>
242 </project>