blob: 165ae5765b3430ebf1912a58d9d366edcd2c128c [file] [log] [blame]
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02001<?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>
Sonsino, Ofir (os0695)8f848c62018-08-12 15:23:14 +03006 <groupId>org.onap.vid</groupId>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02007 <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>
Ittay Stern6ad41e32018-12-31 17:21:27 +020016 <springframework.version>4.3.4.RELEASE</springframework.version>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020017 <hibernate.version>4.3.11.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>
Sonsino, Ofir (os0695)8f848c62018-08-12 15:23:14 +030028
29 <!-- "none" will skip cobertura by default; enable the profile "cobertura" to enable it -->
30 <coberturaBuildPhase>none</coberturaBuildPhase>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020031 </properties>
32
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020033 <profiles>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020034 <profile>
35 <id>onap</id>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020036 <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>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020049 <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>
Sonsino, Ofir (os0695)8f848c62018-08-12 15:23:14 +030057 <id>default</id>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020058 </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>
Sonsino, Ofir (os0695)8f848c62018-08-12 15:23:14 +030081 <id>cobertura</id>
82 <properties>
83 <coberturaBuildPhase>package</coberturaBuildPhase>
84 </properties>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020085 </profile>
kurczews178ff252018-11-14 08:14:58 +010086
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
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200100 </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>
biniek6f2b2082018-12-17 11:18:05 +0100109 <dependency>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200110 <groupId>org.springframework</groupId>
111 <artifactId>spring-web</artifactId>
Ittay Stern6ad41e32018-12-31 17:21:27 +0200112 <version>${springframework.version}</version>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200113 </dependency>
114 <dependency>
115 <groupId>org.springframework</groupId>
116 <artifactId>spring-webmvc</artifactId>
Ittay Stern6ad41e32018-12-31 17:21:27 +0200117 <version>${springframework.version}</version>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200118 </dependency>
biniek6f2b2082018-12-17 11:18:05 +0100119 <dependency>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200120 <groupId>com.fasterxml.jackson.core</groupId>
121 <artifactId>jackson-annotations</artifactId>
122 <version>2.8.7</version>
123 </dependency>
Sonsino, Ofir (os0695)8f848c62018-08-12 15:23:14 +0300124 <dependency>
125 <groupId>javax.xml.bind</groupId>
126 <artifactId>jaxb-api</artifactId>
127 <version>2.2.11</version>
128 </dependency>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200129 </dependencies>
130
131 <build>
132 <finalName>vidSimulator</finalName>
133 <plugins>
134 <plugin>
135 <groupId>org.apache.maven.plugins</groupId>
136 <artifactId>maven-compiler-plugin</artifactId>
137 <version>3.1</version>
138 <configuration>
139 <source>1.8</source>
140 <target>1.8</target>
141 </configuration>
142 </plugin>
kurczews178ff252018-11-14 08:14:58 +0100143
144 <plugin>
145 <groupId>io.fabric8</groupId>
146 <artifactId>docker-maven-plugin</artifactId>
147 <version>0.27.2</version>
148
149 <configuration>
150 <images>
151 <image>
152 <name>onap/vid-simulator</name>
153 <build>
154 <cleanup>remove</cleanup>
155 <dockerFileDir>${project.basedir}</dockerFileDir>
156 <tags>
157 <tag>${project.version}</tag>
158 <tag>latest</tag>
159 </tags>
160 </build>
161 </image>
162 </images>
163 </configuration>
164
165 <executions>
166 <execution>
167 <id>generate-image</id>
168 <phase>package</phase>
169 <goals>
170 <goal>build</goal>
171 </goals>
172 </execution>
173
174 <execution>
175 <id>push-image</id>
176 <phase>deploy</phase>
177 <goals>
178 <goal>build</goal>
179 <goal>push</goal>
180 </goals>
181 </execution>
182 </executions>
183
184 </plugin>
185
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200186 </plugins>
187 </build>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200188</project>