add https support to simulato
[sdc.git] / utils / webseal-simulator / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
4         <modelVersion>4.0.0</modelVersion>
5         <groupId>org.openecomp.sdc</groupId>
6         <artifactId>webseal-simulator</artifactId>
7         <packaging>war</packaging>
8         <version>0.1.0-SNAPSHOT</version>
9
10         <properties>
11                 <jetty-version>9.2.10.v20150310</jetty-version>
12                 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
13                 <nexus.proxy>https://nexus.onap.org</nexus.proxy>
14                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15                 <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
16                 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
17         </properties>
18
19         <dependencies>
20                 <dependency>
21                         <groupId>junit</groupId>
22                         <artifactId>junit</artifactId>
23                         <version>4.12</version>
24                         <scope>test</scope>
25                 </dependency>
26
27                 <dependency>
28                         <groupId>javax.servlet</groupId>
29                         <artifactId>servlet-api</artifactId>
30                         <version>2.5</version>
31                         <scope>compile</scope>
32                 </dependency>
33
34                 <dependency>
35                         <groupId>commons-httpclient</groupId>
36                         <artifactId>commons-httpclient</artifactId>
37                         <version>3.1</version>
38                 </dependency>
39
40                 <dependency>
41                         <groupId>commons-logging</groupId>
42                         <artifactId>commons-logging-api</artifactId>
43                         <version>1.0.4</version>
44                 </dependency>
45
46                 <dependency>
47                         <groupId>commons-io</groupId>
48                         <artifactId>commons-io</artifactId>
49                         <version>2.4</version>
50                 </dependency>
51
52                 <dependency>
53                         <groupId>commons-codec</groupId>
54                         <artifactId>commons-codec</artifactId>
55                         <version>1.9</version>
56                         <scope>compile</scope>
57                 </dependency>
58
59                 <dependency>
60                         <groupId>org.eclipse.jetty</groupId>
61                         <artifactId>jetty-proxy</artifactId>
62                         <version>9.2.10.v20150310</version>
63                         <scope>compile</scope>
64                 </dependency>
65
66                 <dependency>
67                         <groupId>org.eclipse.jetty</groupId>
68                         <artifactId>jetty-servlets</artifactId>
69             <version>${jetty-version}</version>
70                         <scope>compile</scope>
71                 </dependency>
72
73                 <!-- Proxy servlet -->
74                 <dependency>
75                         <groupId>com.typesafe</groupId>
76                         <artifactId>config</artifactId>
77                         <version>1.0.2</version>
78                         <scope>compile</scope>
79                 </dependency>
80
81         </dependencies>
82         <build>
83                 <finalName>WSSimulator-${project.version}</finalName>
84                 <plugins>
85                         <!-- ================================================== -->
86                         <!-- Set the JDK compiler version. -->
87                         <!-- ================================================== -->
88                         <plugin>
89                                 <groupId>org.apache.maven.plugins</groupId>
90                                 <artifactId>maven-compiler-plugin</artifactId>
91                                 <version>2.5.1</version>
92                                 <inherited>true</inherited>
93                                 <configuration>
94                                         <source>1.8</source>
95                                         <target>1.8</target>
96                                 </configuration>
97                         </plugin>
98
99                 </plugins>
100         </build>
101         
102         <repositories>
103                 <!-- LF repositories -->
104                 <repository>
105                         <id>ecomp-releases</id>
106                         <name>Release Repository</name>
107                         <url>${nexus.proxy}/content/repositories/releases/</url>
108                 </repository>
109                 <repository>
110                         <id>ecomp-snapshots</id>
111                         <name>Snapshots Repository</name>
112                         <url>${nexus.proxy}/content/repositories/snapshots/</url>
113                 </repository>
114                 <repository>
115                         <id>ecomp-public</id>
116                         <name>Public Repository</name>
117                         <url>${nexus.proxy}/content/repositories/public/</url>
118                 </repository>
119                 <!-- LF repositories END-->
120         </repositories>
121         
122         <profiles>
123                 <profile>
124                         <id>docker</id>
125                         <activation>
126                                 <activeByDefault>false</activeByDefault>
127                         </activation>
128                         <build>
129                                 <plugins>
130                                         
131                                         <plugin>
132                                                 <artifactId>maven-clean-plugin</artifactId>
133                                                 <version>3.0.0</version>
134                                                 <executions>
135                                                         <execution>
136                                                                 <id>clean-static-files</id>
137                                                                 <phase>clean</phase>
138                                                                 <goals>
139                                                                         <goal>clean</goal>
140                                                                 </goals>
141                                                                 <configuration>
142                                                                         <filesets>
143                                                                                 <fileset>
144                                                                                         <directory>${project.basedir}/sdc-simulator</directory>
145                                                                                         <includes>
146                                                                                                 <include>*.war</include>
147                                                                                         </includes>
148                                                                                         <followSymlinks>false</followSymlinks>
149                                                                                 </fileset>
150                                                                                 <fileset>
151                                                                                         <directory>${project.basedir}/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default</directory>
152                                                                                         <includes>logback.xml</includes>
153                                                                                         <followSymlinks>false</followSymlinks>
154                                                                                 </fileset>
155                                                                         </filesets>
156                                                                 </configuration>
157                                                         </execution>
158                                                 </executions>
159                                         </plugin>
160                                         
161                                         <plugin>
162                                                 <artifactId>maven-resources-plugin</artifactId>
163                                                 <version>3.0.2</version>
164                                                 <executions>
165                                                         <execution>
166                                                                 <id>copy-resources-simulator</id>
167                                                                 <phase>verify</phase>
168                                                                 <goals>
169                                                                         <goal>copy-resources</goal>
170                                                                 </goals>
171                                                                 <configuration>
172                                                                         <outputDirectory>${project.basedir}/sdc-simulator</outputDirectory>
173                                                                         <resources>
174                                                                                 <resource>
175                                                                                         <directory>${project.basedir}/target</directory>
176                                                                                         <includes>
177                                                                                                 <include>WSSimulator*.war</include>
178                                                                                         </includes>
179                                                                                 </resource>
180                                                                         </resources>
181                                                                 </configuration>
182                                                         </execution>
183                                                         <execution>
184                                                                 <id>copy-configurations-simulator</id>
185                                                                 <phase>verify</phase>
186                                                                 <goals>
187                                                                         <goal>copy-resources</goal>
188                                                                 </goals>
189                                                                 <configuration>
190                                                                         <outputDirectory>${basedir}/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default</outputDirectory>
191                                                                         <resources>
192                                                                                 <resource>
193                                                                                         <directory>${basedir}/src/main/resources</directory>
194                                                                                         <includes>
195                                                                                                 <include>logback.xml</include>
196                                                                                         </includes>
197                                                                                 </resource>
198                                                                         </resources>
199                                                                 </configuration>
200                                                         </execution>
201                                                 </executions>
202                                         </plugin>
203
204
205
206                                         <plugin>
207                                                 <groupId>io.fabric8</groupId>
208                                                 <artifactId>docker-maven-plugin</artifactId>
209                                                 <version>0.24.0</version>
210
211                                                 <configuration>
212                                                         <verbose>true</verbose>
213                                                         <apiVersion>1.23</apiVersion>
214                                                         <registry>nexus3.onap.org:10001</registry>
215                             <authConfig>
216                                 <pull>
217                                                     <username>docker</username>
218                                                     <password>docker</password>
219                                             </pull>
220                                     </authConfig>
221                                                         <images>
222
223                                                                 <!-- Build simulator image -->
224                                                                 <image>
225                                                                         <name>openecomp/sdc-simulator</name>
226                                                                         <alias>sdc-simulator</alias>
227                                                                         <build>
228                                                                                 <cleanup>try</cleanup>
229                                                                                 <dockerFileDir>${basedir}/sdc-simulator</dockerFileDir>
230                                                                                 <tags>
231                                                                                         <tag>${docker.tag}</tag>
232                                                                                         <tag>${docker.latest.tag}</tag>
233                                                                                 </tags>
234                                                                         </build>
235                                                                 </image>
236                                                         </images>
237                                                 </configuration>
238                                                 <executions>
239                                                         <execution>
240                                                                 <id>clean-images</id>
241                                                                 <phase>pre-clean</phase>
242                                                                 <goals>
243                                                                         <goal>remove</goal>
244                                                                 </goals>
245                                                         </execution>
246                                                         <execution>
247                                                                 <id>generate-images</id>
248                                                                 <phase>install</phase>
249                                                                 <goals>
250                                                                         <goal>build</goal>
251                                                                 </goals>
252                                                         </execution>
253                                                         <execution>
254                                 <id>push-images</id>
255                                 <phase>deploy</phase>
256                                 <goals>
257                                                                         <goal>push</goal>
258                                 </goals>
259                                                         </execution>
260                                                 </executions>
261                                         </plugin>
262                                 </plugins>
263                         </build>
264                 </profile>
265         </profiles>
266 </project>