8596b973c965f4c6b053fbd71ad08620bfdff92f
[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     </properties>
32
33     <profiles>
34         <profile>
35             <id>onap</id>
36             <properties>
37                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38                 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
39                 <epsdk.version>1.1.0-SNAPSHOT</epsdk.version>
40                 <nexusproxy>https://nexus.onap.org</nexusproxy>
41                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
42                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
43                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
44                 <sitePath>/content/sites/site/org/openecomp/vid/${project.version}</sitePath>
45             </properties>
46
47             <repositories>
48                 <repository>
49                     <id>oss-snapshots</id>
50                     <name>oss Central - Snapshots</name>
51                     <url>https://oss.sonatype.org/service/local/repositories/releases/content/</url>
52                 </repository>
53             </repositories>
54         </profile>
55
56         <profile>
57             <id>default</id>
58         </profile>
59
60         <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
61         <profile>
62             <id>doclint-java8-disable</id>
63             <activation>
64                 <jdk>[1.8,)</jdk>
65             </activation>
66             <build>
67                 <plugins>
68                     <plugin>
69                         <groupId>org.apache.maven.plugins</groupId>
70                         <artifactId>maven-javadoc-plugin</artifactId>
71                         <version>2.10.4</version>
72                         <configuration>
73                             <additionalparam>-Xdoclint:none</additionalparam>
74                         </configuration>
75                     </plugin>
76                 </plugins>
77             </build>
78         </profile>
79
80         <profile>
81             <id>cobertura</id>
82             <properties>
83                 <coberturaBuildPhase>package</coberturaBuildPhase>
84             </properties>
85         </profile>
86
87         <profile>
88             <id>docker-proxy</id>
89             <!-- activate profile if environment variable `http_proxy` is set -->
90             <activation>
91                 <property>
92                     <name>env.http_proxy</name>
93                 </property>
94             </activation>
95             <properties>
96                 <docker.buildArg.http_proxy>${env.http_proxy}</docker.buildArg.http_proxy>
97             </properties>
98         </profile>
99
100     </profiles>
101
102     <dependencies>
103         <!-- mockserver -->
104         <dependency>
105             <groupId>org.mock-server</groupId>
106             <artifactId>mockserver-netty</artifactId>
107             <version>3.11</version>
108         </dependency>
109         <dependency>
110             <groupId>org.springframework</groupId>
111             <artifactId>spring-web</artifactId>
112             <version>${springframework.version}</version>
113         </dependency>
114         <dependency>
115             <groupId>org.springframework</groupId>
116             <artifactId>spring-webmvc</artifactId>
117             <version>${springframework.version}</version>
118         </dependency>
119         <dependency>
120             <groupId>com.fasterxml.jackson.core</groupId>
121             <artifactId>jackson-annotations</artifactId>
122             <version>2.8.7</version>
123         </dependency>
124         <dependency>
125             <groupId>javax.xml.bind</groupId>
126             <artifactId>jaxb-api</artifactId>
127             <version>2.2.11</version>
128         </dependency>
129
130         <dependency>
131             <groupId>org.hibernate</groupId>
132             <artifactId>hibernate-entitymanager</artifactId>
133             <version>${hibernate.version}</version>
134         </dependency>
135         <dependency>
136             <groupId>org.hibernate</groupId>
137             <artifactId>hibernate-core</artifactId>
138             <version>${hibernate.version}</version>
139         </dependency>
140
141         <dependency>
142             <groupId>org.mariadb.jdbc</groupId>
143             <artifactId>mariadb-java-client</artifactId>
144             <version>2.2.6</version>
145         </dependency>
146
147         <dependency>
148             <groupId>org.hibernate.javax.persistence</groupId>
149             <artifactId>hibernate-jpa-2.1-api</artifactId>
150             <version>1.0.0.Final</version>
151         </dependency>
152
153         <dependency>
154             <groupId>com.google.code.gson</groupId>
155             <artifactId>gson</artifactId>
156             <version>2.8.0</version>
157         </dependency>
158
159     </dependencies>
160
161     <build>
162         <finalName>vidSimulator</finalName>
163         <plugins>
164             <plugin>
165                 <groupId>org.apache.maven.plugins</groupId>
166                 <artifactId>maven-compiler-plugin</artifactId>
167                 <version>3.1</version>
168                 <configuration>
169                     <source>1.8</source>
170                     <target>1.8</target>
171                 </configuration>
172             </plugin>
173
174             <plugin>
175                 <groupId>io.fabric8</groupId>
176                 <artifactId>docker-maven-plugin</artifactId>
177                 <version>0.27.2</version>
178
179                 <configuration>
180                     <images>
181                         <image>
182                             <name>onap/vid-simulator</name>
183                             <build>
184                                 <cleanup>remove</cleanup>
185                                 <dockerFileDir>${project.basedir}</dockerFileDir>
186                                 <tags>
187                                     <tag>${project.version}</tag>
188                                     <tag>latest</tag>
189                                 </tags>
190                             </build>
191                         </image>
192                     </images>
193                 </configuration>
194
195                 <executions>
196                     <execution>
197                         <id>generate-image</id>
198                         <phase>package</phase>
199                         <goals>
200                             <goal>build</goal>
201                         </goals>
202                     </execution>
203
204                     <execution>
205                         <id>push-image</id>
206                         <phase>deploy</phase>
207                         <goals>
208                             <goal>build</goal>
209                             <goal>push</goal>
210                         </goals>
211                     </execution>
212                 </executions>
213
214             </plugin>
215
216         </plugins>
217     </build>
218 </project>