forked from antopraveen/proto-java_hcp_bluegreen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
686 lines (655 loc) · 27.5 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.sap.cloud.sample</groupId>
<artifactId>sdk-samples-parent</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
<description>This is the parent for the samples.</description>
<licenses>
<license>
<name>SAP DEVELOPER LICENSE AGREEMENT</name>
<url>https://tools.hana.ondemand.com/developer-license-3.1.txt</url>
</license>
</licenses>
<properties>
<!-- Properties that hold information on the location, version and plugin of the SAP Cloud Platform SDK -->
<sap.cloud.sdk.path>${project.build.directory}</sap.cloud.sdk.path>
<sap.cloud.sdk.version>3.20.3.1</sap.cloud.sdk.version>
<sap.cloud.sdk.plugin>neo-java-web-maven-plugin</sap.cloud.sdk.plugin>
<!-- Property that holds the supported JDK version for the given SAP Cloud Platform SDK -->
<sap.cloud.jdk.version>1.7</sap.cloud.jdk.version>
<!-- Properties for account, user name, and password that are required to access the SAP Cloud Platform -->
<!-- data center for the cloud integration tests must be provided as Maven properties, e.g.: -->
<!-- mvn clean verify -P cloud-integration-tests -Dsap.cloud.account=... -Dsap.cloud.username=... -Dsap.cloud.password=... -->
<!-- Hint: To avoid retyping the above whenever you call Maven, you can of course add the properties directly, e.g.: -->
<!-- <sap.cloud.username>p0123456789</sap.cloud.username> -->
<!-- Hint: You may like to use environment variables and set the properties based on their values, e.g.: -->
<!-- <sap.cloud.password>${env.SAP_CLOUD_PASSWORD}</sap.cloud.password> -->
<!-- Property that holds the data center host is pre-defined below, but may be overwritten if required, e.g.: -->
<!-- mvn clean verify -P cloud-integration-tests ... -Dsap.cloud.host=hanatrial.ondemand.com -->
<!-- Property that holds the name of the application under which it will later appear in the cloud -->
<sap.cloud.host>${env.SAP_CLOUD_HOST}</sap.cloud.host>
<sap.cloud.account>${env.SAP_CLOUD_ACCOUNT}</sap.cloud.account>
<sap.cloud.username>${env.SAP_CLOUD_USERNAME}</sap.cloud.username>
<sap.cloud.password>${env.SAP_CLOUD_PASSWORD}</sap.cloud.password>
<sap.cloud.application>sample</sap.cloud.application>
<!-- Properties that hold the local server configuration required for local integration-testing -->
<local.server.root>${project.build.directory}/server</local.server.root>
<local.server.host>localhost</local.server.host>
<local.server.shutdown.port>9003</local.server.shutdown.port>
<local.server.jmx.port>9004</local.server.jmx.port>
<local.server.http.port>9080</local.server.http.port>
<local.server.https.port>9443</local.server.https.port>
<local.server.config.service.port>9087</local.server.config.service.port>
<local.server.ajp.port>9009</local.server.ajp.port>
<!-- Property setting source encoding to UTF-8 -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Property setting the selenium test framework version to be use in UI integration tests -->
<selenium.test.framework.version>2.52.0</selenium.test.framework.version>
</properties>
<dependencies>
<!-- The SAP Cloud Platform Java Web Tomcat 8 API -->
<dependency>
<groupId>com.sap.cloud</groupId>
<artifactId>neo-java-web-api</artifactId>
<version>${sap.cloud.sdk.version}</version>
<scope>provided</scope>
</dependency>
<!-- Required for testing -->
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>1.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<version>3.1</version>
<scope>test</scope>
</dependency>
<!-- Required for integration testing -->
<dependency>
<groupId>httpunit</groupId>
<artifactId>httpunit</artifactId>
<version>1.6.2</version> <!-- Do NOT use 1.7 as it submits form twice -->
<scope>test</scope>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xmlParserAPIs</artifactId>
<version>2.2.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.6.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>nekohtml</groupId>
<artifactId>nekohtml</artifactId>
<version>0.9.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>rhino</groupId>
<artifactId>js</artifactId>
<version>1.6R5</version>
<scope>test</scope>
</dependency>
</dependencies>
<modules>
<!--
<module>authentication</module>
<module>connectivity</module>
<module>document-store</module>
<module>explore-ui5</module>
-->
<module>hello-world</module>
<!--
<module>mail</module>
<module>persistence-with-jdbc</module>
<module>persistence-with-jpa</module>
<module>websocket</module>
-->
</modules>
<build>
<!-- Map the Eclipse file system layout to the Maven plug-ins -->
<sourceDirectory>${project.basedir}/src</sourceDirectory>
<testSourceDirectory>${project.basedir}/test</testSourceDirectory>
<outputDirectory>${project.basedir}/war/WEB-INF/classes</outputDirectory>
<testOutputDirectory>${project.basedir}/bin/classes</testOutputDirectory>
<resources>
<resource>
<directory>${project.basedir}/src</directory>
<includes>
<include>**/*</include>
</includes>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<testResources>
<testResource>
<directory>${project.basedir}/test</directory>
<includes>
<include>**/*</include>
</includes>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</testResource>
</testResources>
<plugins>
<!-- Map the Eclipse file system layout to the Maven plug-ins -->
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.1</version>
<configuration>
<warName>${project.artifactId}</warName>
<warSourceDirectory>WebContent</warSourceDirectory>
<archive>
<manifestFile>WebContent/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
<!-- Set compiler to officially supported JDK version for the given SAP Cloud Platform SDK -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<source>${sap.cloud.jdk.version}</source>
<target>${sap.cloud.jdk.version}</target>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
</configuration>
</plugin>
<!-- Include only unit tests for maven-surefire-plugin that is run in test phase -->
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version>
<configuration>
<excludes>
<exclude>**/integrationtest/**/*Test.java</exclude>
</excludes>
<includes>
<include>**/test/**/*Test.java</include>
</includes>
</configuration>
</plugin>
<!-- Include only integration tests for maven-failsafe-plugin that is run in integration-test phase -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.12</version>
<configuration>
<excludes>
<exclude>**/test/**/*Test.java</exclude>
</excludes>
<includes>
<include>**/integrationtest/**/*Test.java</include>
</includes>
</configuration>
</plugin>
<!-- Enforce officially supported JDK and validated Maven version or higher -->
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.0.1</version>
<executions>
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<version>[${sap.cloud.jdk.version},2.0)</version>
</requireJavaVersion>
<requireMavenVersion>
<version>[3.0.3, 4.0.0)</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!-- Define the version of the Maven Plugin for SAP Cloud Platform we want to use -->
<plugin>
<groupId>com.sap.cloud</groupId>
<artifactId>${sap.cloud.sdk.plugin}</artifactId>
<version>${sap.cloud.sdk.version}</version>
</plugin>
<!-- Force m2e to ignore plugin goal that it doesn't support naturally -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-enforcer-plugin
</artifactId>
<versionRange>
[0.0.1,)
</versionRange>
<goals>
<goal>enforce</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<!-- Skip integration tests for the parent project -->
<profile>
<id>skip-integration-test-for-parent</id>
<activation>
<activeByDefault>false</activeByDefault>
<file>
<missing>WebContent/WEB-INF/web.xml</missing>
</file>
</activation>
<properties>
<skipIntegrationTests>true</skipIntegrationTests>
</properties>
</profile>
<!-- Activate compiler warnings when matching JDK is present (compiler then doesn't generate bootstrap warnings) -->
<profile>
<id>compiler-warnings</id>
<activation>
<activeByDefault>false</activeByDefault>
<jdk>1.6</jdk>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<compilerArguments>
<Werror />
</compilerArguments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<!-- The cloud integration tests will stop a currently running sample application (cleanup-cloud-application), deploy
the sample application (deploy-cloud-application), allow samples to run sample specific application configurations (prepare-cloud-application),
start the cloud application and wait for it to become available (start-cloud-application), run the integration tests with
the maven-failsafe-plugin (execute-cloud-integration-tests) and finally stop the cloud application (stop-cloud-application) -->
<!-- Note that you need to provide Maven properties sap.cloud.account, sap.cloud.username, and sap.cloud.password
for the operations to pass successfully and https.proxyHost and possibly https.proxyPort if you have a proxy! -->
<profile>
<id>cloud-integration-tests</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.0.1</version>
<executions>
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireProperty>
<property>sap.cloud.account</property>
<message>Maven property for SAP Cloud Platform account
(-Dsap.cloud.account=...) is missing, but required!</message>
</requireProperty>
<requireProperty>
<property>sap.cloud.username</property>
<message>Maven property for SAP Cloud Platform user name
(-Dsap.cloud.username=...) is missing, but required!</message>
</requireProperty>
<requireProperty>
<property>sap.cloud.password</property>
<message>Maven property for SAP Cloud Platform password
(-Dsap.cloud.password=...) is missing, but required!</message>
</requireProperty>
</rules>
</configuration>
</execution>
</executions>
<configuration>
<skip>${skipIntegrationTests}</skip>
</configuration>
</plugin>
<plugin>
<groupId>com.sap.cloud</groupId>
<artifactId>${sap.cloud.sdk.plugin}</artifactId>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>install-sdk</goal>
</goals>
</execution>
<execution>
<id>deploying-application</id>
<phase>package</phase>
<goals>
<goal>run-console-command</goal>
</goals>
<configuration>
<!-- Following console command is used to deploy the application to the QA environment -->
<consoleCommand>deploy -a ${sap.cloud.account} -b ${sap.cloud.application} -h ${sap.cloud.host} -u ${sap.cloud.username} -p ${sap.cloud.password} -source ${project.build.directory}/${project.artifactId}.war</consoleCommand>
</configuration>
</execution>
<execution>
<id>restart-application</id>
<phase>package</phase>
<goals>
<goal>run-console-command</goal>
</goals>
<configuration>
<!-- The console commandis used to restart the application inorder to reflect the changes -->
<consoleCommand>restart -a ${sap.cloud.account} -b ${sap.cloud.application} -h ${sap.cloud.host} -u ${sap.cloud.username} -p ${sap.cloud.password}</consoleCommand>
</configuration>
</execution>
<execution>
<id>cleanup-cloud-application</id>
<phase>pre-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
<execution>
<id>deploy-cloud-application</id>
<phase>pre-integration-test</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
<!-- This execution can be overridden in the sample pom.xml in order to execute additional steps
between deployment and start of the sample application. The additional execution must be specified with the neo-java-web-maven-plugin
and the same id "prepare-cloud-application" and phase "pre-integration-test" -->
<execution>
<id>prepare-cloud-application</id>
<phase>pre-integration-test</phase>
</execution>
<execution>
<id>start-cloud-application</id>
<phase>integration-test</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>stop-cloud-application</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
<configuration>
<skip>${skipIntegrationTests}</skip>
<sdkInstallPath>${sap.cloud.sdk.path}</sdkInstallPath>
<host>${sap.cloud.host}</host>
<user>${sap.cloud.username}</user>
<password>${sap.cloud.password}</password>
<account>${sap.cloud.account}</account>
<application>${sap.cloud.application}</application>
<source>${project.build.directory}/${project.artifactId}.war</source>
<synchronous>true</synchronous>
<javaVersion>8</javaVersion>
</configuration>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<id>execute-cloud-integration-tests</id>
<phase>integration-test</phase>
<goals>
<goal>integration-test</goal>
</goals>
<configuration>
<systemPropertyVariables>
<sap.cloud.username>${sap.cloud.username}</sap.cloud.username>
<sap.cloud.password>${sap.cloud.password}</sap.cloud.password>
<integration.test.server.url>https://${sap.cloud.application}${sap.cloud.account}.${sap.cloud.host}</integration.test.server.url>
</systemPropertyVariables>
</configuration>
</execution>
<execution>
<id>verify-cloud-integration-tests</id>
<goals>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<skip>${skipIntegrationTests}</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<!-- The local integration tests will install a local server from the repository that is contained inside the SAP Cloud
Platform SDK (install-local-server), deploy the sample application (deploy-local-application), allow samples to run
sample specific application configurations (prepare-local-application), start the local server and wait for the deployed
sample application to become available (start-local-server), run the integration tests with the maven-failsafe-plugin (execute-local-integration-tests)
and finally stop the local server (stop-local-server) -->
<!-- Note that you need to provide Maven properties https.proxyHost and possibly https.proxyPort if you have a proxy! -->
<profile>
<id>local-integration-tests</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.sap.cloud</groupId>
<artifactId>${sap.cloud.sdk.plugin}</artifactId>
<executions>
<execution>
<id>install-local-server</id>
<phase>pre-integration-test</phase>
<goals>
<goal>install-local</goal>
</goals>
</execution>
<execution>
<id>deploy-local-application</id>
<phase>pre-integration-test</phase>
<goals>
<goal>deploy-local</goal>
</goals>
</execution>
<!-- The maven-antrun-plugin execution prepare-local-application defined farther below will run
between this deploy-local-application and start-local-server executions -->
<execution>
<id>start-local-server</id>
<phase>integration-test</phase>
<goals>
<goal>start-local</goal>
</goals>
</execution>
<execution>
<id>stop-local-server</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop-local</goal>
</goals>
</execution>
</executions>
<configuration>
<skip>${skipIntegrationTests}</skip>
<sdkInstallPath>${sap.cloud.sdk.path}</sdkInstallPath>
<location>${local.server.root}</location>
<shutdownPort>${local.server.shutdown.port}</shutdownPort>
<configServicePort>${local.server.config.service.port}</configServicePort>
<httpPort>${local.server.http.port}</httpPort>
<httpsPort>${local.server.https.port}</httpsPort>
<jmxPort>${local.server.jmx.port}</jmxPort>
<ajpPort>${local.server.ajp.port}</ajpPort>
<source>${project.build.directory}/${project.artifactId}.war</source>
<waitUrl>http://${local.server.host}:${local.server.http.port}/${project.artifactId}/</waitUrl>
</configuration>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<!-- This execution can be overridden in the sample pom.xml in order to execute additional steps
between deployment and start of the sample application. The additional execution must be specified with the maven-antrun-plugin
and same id "prepare-local-application" and phase "pre-integration-test" -->
<execution>
<id>prepare-local-application</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<configuration>
<skip>${skipIntegrationTests}</skip>
</configuration>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<id>execute-local-integration-tests</id>
<phase>integration-test</phase>
<goals>
<goal>integration-test</goal>
</goals>
<configuration>
<systemPropertyVariables>
<integration.test.server.url>http://${local.server.host}:${local.server.http.port}</integration.test.server.url>
</systemPropertyVariables>
</configuration>
</execution>
<execution>
<id>verify-local-integration-tests</id>
<goals>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<skip>${skipIntegrationTests}</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<!-- If HTTPS Internet access requires a proxy the Maven Plugin for SAP Cloud Platform and the Failsafe plugin
running the integration tests need to know of it (the profile will auto-activate if https.proxyHost is provided) -->
<profile>
<id>use-https-proxy</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>https.proxyHost</name>
</property>
</activation>
<properties>
<!-- Set default Oracle HTTPS port in case none is defined as profile gets activated on HTTPS host only -->
<https.proxyPort>443</https.proxyPort>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.sap.cloud</groupId>
<artifactId>${sap.cloud.sdk.plugin}</artifactId>
<configuration>
<!-- Make the local server access the Internet through the HTTPS proxy -->
<httpsProxyHost>${https.proxyHost}</httpsProxyHost>
<httpsProxyPort>${https.proxyPort}</httpsProxyPort>
<!-- Make the console access the Internet through the HTTPS proxy -->
<consoleHttpsProxyHost>${https.proxyHost}</consoleHttpsProxyHost>
<consoleHttpsProxyPort>${https.proxyPort}</consoleHttpsProxyPort>
</configuration>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<!-- Make the integration tests access the Internet through the HTTPS proxy -->
<systemPropertyVariables>
<https.proxyHost>${https.proxyHost}</https.proxyHost>
<https.proxyPort>${https.proxyPort}</https.proxyPort>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
<profile>
<id>update</id>
<build>
<plugins>
<plugin>
<groupId>com.sap.cloud</groupId>
<artifactId>${sap.cloud.sdk.plugin}</artifactId>
<executions>
<!-- This Execution is required to install the SDK -->
<execution>
<phase>initialize</phase>
<goals>
<goal>install-sdk</goal>
</goals>
</execution>
<!-- This Execution is used to run the rolling-update command for Blue-Green deployment -->
<execution>
<id>deploying-application</id>
<phase>package</phase>
<goals>
<goal>run-console-command</goal>
</goals>
<configuration>
<consoleCommand>rolling-update -a i061823trial -b helloworld -h hanatrial.ondemand.com -u i061823 -p password -source ${project.build.directory}/${project.artifactId}.war</consoleCommand>
<!--consoleCommand>rolling-update -a ${sap.cloud.account} -b ${sap.cloud.application} -h ${sap.cloud.host} -u ${sap.cloud.username} -p ${sap.cloud.password} -source ${project.build.directory}/${project.artifactId}.war</consoleCommand-->
</configuration>
</execution>
</executions>
<configuration>
<skip>${skipIntegrationTests}</skip>
<sdkInstallPath>${sap.cloud.sdk.path}</sdkInstallPath>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>