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