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