dd962db466e2dbc845c7ef6b67b843e607bfb272
[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>4.3.22.RELEASE</springframework.version>
17         <hibernate.version>5.3.4.Final</hibernate.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 skip docker-maven-plugin by default; enable the profile "docker" to enable it -->
33         <dockerBuildPhase>none</dockerBuildPhase>
34         <dockerPushPhase>none</dockerPushPhase>
35     </properties>
36
37     <profiles>
38         <profile>
39             <id>onap</id>
40             <properties>
41                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42                 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
43                 <epsdk.version>1.1.0-SNAPSHOT</epsdk.version>
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>docker</id>
93             <properties>
94                 <dockerBuildPhase>package</dockerBuildPhase>
95                 <dockerPushPhase>deploy</dockerPushPhase>
96             </properties>
97         </profile>
98
99         <profile>
100             <id>docker-proxy</id>
101             <!-- activate profile if environment variable `http_proxy` is set -->
102             <activation>
103                 <property>
104                     <name>env.http_proxy</name>
105                 </property>
106             </activation>
107             <properties>
108                 <docker.buildArg.http_proxy>${env.http_proxy}</docker.buildArg.http_proxy>
109             </properties>
110         </profile>
111
112     </profiles>
113
114     <dependencies>
115         <!-- mockserver -->
116         <dependency>
117             <groupId>org.mock-server</groupId>
118             <artifactId>mockserver-netty</artifactId>
119             <version>3.11</version>
120         </dependency>
121         <dependency>
122             <groupId>org.springframework</groupId>
123             <artifactId>spring-web</artifactId>
124             <version>${springframework.version}</version>
125         </dependency>
126         <dependency>
127             <groupId>org.springframework</groupId>
128             <artifactId>spring-webmvc</artifactId>
129             <version>${springframework.version}</version>
130         </dependency>
131         <dependency>
132             <groupId>com.fasterxml.jackson.core</groupId>
133             <artifactId>jackson-annotations</artifactId>
134             <version>2.8.7</version>
135         </dependency>
136         <dependency>
137             <groupId>javax.xml.bind</groupId>
138             <artifactId>jaxb-api</artifactId>
139             <version>2.2.11</version>
140         </dependency>
141
142         <dependency>
143             <groupId>org.hibernate</groupId>
144             <artifactId>hibernate-entitymanager</artifactId>
145             <version>${hibernate.version}</version>
146         </dependency>
147         <dependency>
148             <groupId>org.hibernate</groupId>
149             <artifactId>hibernate-core</artifactId>
150             <version>${hibernate.version}</version>
151         </dependency>
152
153         <dependency>
154             <groupId>org.mariadb.jdbc</groupId>
155             <artifactId>mariadb-java-client</artifactId>
156             <version>2.2.6</version>
157         </dependency>
158
159         <dependency>
160             <groupId>org.hibernate.javax.persistence</groupId>
161             <artifactId>hibernate-jpa-2.1-api</artifactId>
162             <version>1.0.0.Final</version>
163         </dependency>
164
165         <dependency>
166             <groupId>com.google.code.gson</groupId>
167             <artifactId>gson</artifactId>
168             <version>2.8.0</version>
169         </dependency>
170
171     </dependencies>
172
173     <build>
174         <finalName>vidSimulator</finalName>
175         <plugins>
176             <plugin>
177                 <groupId>org.apache.maven.plugins</groupId>
178                 <artifactId>maven-compiler-plugin</artifactId>
179                 <version>3.1</version>
180                 <configuration>
181                     <source>1.8</source>
182                     <target>1.8</target>
183                 </configuration>
184             </plugin>
185
186             <plugin>
187                 <groupId>io.fabric8</groupId>
188                 <artifactId>docker-maven-plugin</artifactId>
189                 <version>0.27.2</version>
190
191                 <configuration>
192                     <images>
193                         <image>
194                             <name>onap/vid-simulator</name>
195                             <build>
196                                 <cleanup>remove</cleanup>
197                                 <dockerFileDir>${project.basedir}</dockerFileDir>
198                                 <tags>
199                                     <tag>${project.version}</tag>
200                                     <tag>latest</tag>
201                                 </tags>
202                             </build>
203                         </image>
204                     </images>
205                 </configuration>
206
207                 <executions>
208                     <execution>
209                         <id>generate-image</id>
210                         <phase>${dockerBuildPhase}</phase>
211                         <goals>
212                             <goal>build</goal>
213                         </goals>
214                     </execution>
215
216                     <execution>
217                         <id>push-image</id>
218                         <phase>${dockerPushPhase}</phase>
219                         <goals>
220                             <goal>build</goal>
221                             <goal>push</goal>
222                         </goals>
223                     </execution>
224                 </executions>
225
226             </plugin>
227
228         </plugins>
229     </build>
230 </project>