Fix for Penetration test _ Session and cookie management
[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.2.3.RELEASE</springframework.version>
16         <hibernate.version>5.3.4.Final</hibernate.version>
17         <jaxb.version>2.3.2</jaxb.version>
18         <jackson.version>2.10.2</jackson.version>
19         <jackson.databind.version>2.10.2</jackson.databind.version>
20         <!-- Skip assembling the zip by default -->
21         <skipassembly>true</skipassembly>
22         <!-- Tests usually require some setup that maven cannot do, so skip. -->
23         <skiptests>true</skiptests>
24         <!-- this should be commented for local debugging -->
25         <!-- <deployenv>local</deployenv> -->
26         <nexusproxy>https://nexus.onap.org</nexusproxy>
27         <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
28         <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
29         <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
30
31         <!-- "none" will skip cobertura by default; enable the profile "cobertura" to enable it -->
32         <coberturaBuildPhase>none</coberturaBuildPhase>
33
34         <!-- will build docker-maven-plugin by default; enable the profile "no-docker" to disable it -->
35         <skipDockerBuild>false</skipDockerBuild>
36         <dockerBuildPhase>package</dockerBuildPhase>
37         <dockerPushPhase>deploy</dockerPushPhase>
38     </properties>
39
40     <profiles>
41         <profile>
42             <id>onap</id>
43             <properties>
44                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
45                 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
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.databind.version}</version>
148         </dependency>
149         <!-- https://eclipse-ee4j.github.io/jaxb-ri/#maven-artifacts -->
150         <!-- API -->
151         <dependency>
152             <groupId>jakarta.xml.bind</groupId>
153             <artifactId>jakarta.xml.bind-api</artifactId>
154             <version>${jaxb.version}</version>
155         </dependency>
156         <!-- Runtime -->
157         <dependency>
158             <groupId>org.glassfish.jaxb</groupId>
159             <artifactId>jaxb-runtime</artifactId>
160             <version>${jaxb.version}</version>
161         </dependency>
162
163         <dependency>
164             <groupId>org.hibernate</groupId>
165             <artifactId>hibernate-entitymanager</artifactId>
166             <version>${hibernate.version}</version>
167         </dependency>
168         <dependency>
169             <groupId>org.hibernate</groupId>
170             <artifactId>hibernate-core</artifactId>
171             <version>${hibernate.version}</version>
172         </dependency>
173         <dependency>
174             <groupId>org.hibernate</groupId>
175             <artifactId>hibernate-c3p0</artifactId>
176             <version>${hibernate.version}</version>
177         </dependency>
178
179         <dependency>
180             <groupId>org.mariadb.jdbc</groupId>
181             <artifactId>mariadb-java-client</artifactId>
182             <version>2.2.6</version>
183         </dependency>
184
185         <dependency>
186             <groupId>org.hibernate.javax.persistence</groupId>
187             <artifactId>hibernate-jpa-2.1-api</artifactId>
188             <version>1.0.0.Final</version>
189         </dependency>
190
191         <dependency>
192             <groupId>com.google.code.gson</groupId>
193             <artifactId>gson</artifactId>
194             <version>2.8.0</version>
195         </dependency>
196
197     </dependencies>
198
199     <build>
200         <finalName>vidSimulator</finalName>
201         <plugins>
202             <plugin>
203                 <groupId>org.apache.maven.plugins</groupId>
204                 <artifactId>maven-compiler-plugin</artifactId>
205                 <version>3.8.1</version>
206                 <configuration>
207                     <source>1.8</source>
208                     <target>1.8</target>
209                 </configuration>
210             </plugin>
211
212             <plugin>
213                 <groupId>io.fabric8</groupId>
214                 <artifactId>docker-maven-plugin</artifactId>
215                 <version>0.27.2</version>
216
217                 <configuration>
218                     <skip>${skipDockerBuild}</skip>
219                     <images>
220                         <image>
221                             <name>onap/vid-simulator</name>
222                             <build>
223                                 <cleanup>remove</cleanup>
224                                 <dockerFileDir>${project.basedir}</dockerFileDir>
225                                 <tags>
226                                     <tag>${project.version}</tag>
227                                     <tag>latest</tag>
228                                 </tags>
229                             </build>
230                         </image>
231                     </images>
232                 </configuration>
233
234                 <executions>
235                     <execution>
236                         <id>generate-image</id>
237                         <phase>${dockerBuildPhase}</phase>
238                         <goals>
239                             <goal>build</goal>
240                         </goals>
241                     </execution>
242
243                     <execution>
244                         <id>push-image</id>
245                         <phase>${dockerPushPhase}</phase>
246                         <goals>
247                             <goal>build</goal>
248                             <goal>push</goal>
249                         </goals>
250                     </execution>
251                 </executions>
252
253             </plugin>
254
255         </plugins>
256     </build>
257 </project>