Revision 67:19444c2942ad pom.xml

View differences:

pom.xml
121 121
								<copy file="resources/log4j${config.postfix}.xml" tofile="${project.build.outputDirectory}/log4j.xml" />
122 122

  
123 123
								<delete>
124
									<fileset dir="${project.build.outputDirectory}" includes="log4j.*.xml" />
124
									<fileset dir="${project.build.outputDirectory}"
125
										includes="log4j.*.xml" />
125 126
								</delete>
126 127
							</target>
127 128
						</configuration>
......
190 191
			</properties>
191 192
			<build>
192 193
				<plugins>
193
<!--
194
 					<plugin>
195
						<groupId>org.mortbay.jetty</groupId>
196
						<artifactId>maven-jetty-plugin</artifactId>
197
						<configuration>
198
							<webAppSourceDirectory>${basedir}/WebContent</webAppSourceDirectory>
199
							<classesDirectory>${project.build.directory}/generated-classes/cobertura</classesDirectory>
200
						</configuration>
201
						<executions>
202
							<execution>
203
								<id>start-jetty</id>
204
								<phase>pre-integration-test</phase>
205
								<goals>
206
									<goal>run</goal>
207
								</goals>
208
								<configuration>
209
									<scanIntervalSeconds>0</scanIntervalSeconds>
210
									<daemon>true</daemon>
211
								</configuration>
212
							</execution>
213
							<execution>
214
								<id>stop-jetty</id>
215
								<phase>post-integration-test</phase>
216
								<goals>
217
									<goal>stop</goal>
218
								</goals>
219
							</execution>
220
						</executions>
221
						<dependencies>
222
							<dependency>
223
								<groupId>net.sourceforge.cobertura</groupId>
224
								<artifactId>cobertura-runtime</artifactId>
225
								<version>${cobertura.version}</version>
226
								<scope>compile</scope>
227
								<type>pom</type>
228
							</dependency>
229
						</dependencies>
230
					</plugin>
231
 -->
194
					<!-- <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> 
195
						<configuration> <webAppSourceDirectory>${basedir}/WebContent</webAppSourceDirectory> 
196
						<classesDirectory>${project.build.directory}/generated-classes/cobertura</classesDirectory> 
197
						</configuration> <executions> <execution> <id>start-jetty</id> <phase>pre-integration-test</phase> 
198
						<goals> <goal>run</goal> </goals> <configuration> <scanIntervalSeconds>0</scanIntervalSeconds> 
199
						<daemon>true</daemon> </configuration> </execution> <execution> <id>stop-jetty</id> 
200
						<phase>post-integration-test</phase> <goals> <goal>stop</goal> </goals> </execution> 
201
						</executions> <dependencies> <dependency> <groupId>net.sourceforge.cobertura</groupId> 
202
						<artifactId>cobertura-runtime</artifactId> <version>${cobertura.version}</version> 
203
						<scope>compile</scope> <type>pom</type> </dependency> </dependencies> </plugin> -->
232 204
					<plugin>
233 205
						<groupId>org.glassfish</groupId>
234 206
						<artifactId>maven-embedded-glassfish-plugin</artifactId>
......
491 463
									<target>
492 464
										<!-- <echo>Shutting down the Tomcat</echo> <exec dir="${tomcat.home}/bin" 
493 465
											executable="${tomcat.home}/bin/shutdown.sh" /> -->
494
										<copy file="${basedir}/target/${project.artifactId}-${project.version}.war" tofile="${tomcat.home}/webapps/${project.artifactId}.war"
466
										<copy
467
											file="${basedir}/target/${project.artifactId}-${project.version}.war"
468
											tofile="${tomcat.home}/webapps/${project.artifactId}.war"
495 469
											overwrite="true" />
496 470
										<!-- <echo>Starting up the Tomcat</echo> <exec dir="${tomcat.home}/bin" 
497 471
											executable="${tomcat.home}/bin/startup.sh" /> -->
......
520 494
						</configuration>
521 495
					</plugin>
522 496
					<plugin>
497
						<groupId>org.glassfish</groupId>
498
						<artifactId>maven-embedded-glassfish-plugin</artifactId>
499
						<configuration>
500
							<app>${project.build.directory}/${project.artifactId}-${project.version}-${m2u-upass-classifier}.war</app>
501
						</configuration>
502
						<executions>
503
							<execution>
504
								<id>start-glassfish</id>
505
								<phase>pre-integration-test</phase>
506
								<goals>
507
									<goal>start</goal>
508
								</goals>
509
							</execution>
510
							<execution>
511
								<id>glassfish-deploy</id>
512
								<phase>pre-integration-test</phase>
513
								<goals>
514
									<goal>deploy</goal>
515
								</goals>
516
							</execution>
517
							<execution>
518
								<id>glassfish-undeploy</id>
519
								<phase>post-integration-test</phase>
520
								<goals>
521
									<goal>undeploy</goal>
522
								</goals>
523
							</execution>
524
							<execution>
525
								<id>stop-glassfish</id>
526
								<phase>post-integration-test</phase>
527
								<goals>
528
									<goal>stop</goal>
529
								</goals>
530
							</execution>
531
						</executions>
532
						<dependencies>
533
							<dependency>
534
								<groupId>net.sourceforge.cobertura</groupId>
535
								<artifactId>cobertura-runtime</artifactId>
536
								<version>${cobertura.version}</version>
537
								<!-- <scope>provided</scope> -->
538
								<scope>compile</scope>
539
								<type>pom</type>
540
							</dependency>
541
						</dependencies>
542
					</plugin>
543
					<plugin>
523 544
						<artifactId>maven-antrun-plugin</artifactId>
524 545
						<executions>
525 546
							<execution>
......
540 561
					<plugin>
541 562
						<groupId>org.codehaus.mojo</groupId>
542 563
						<artifactId>exec-maven-plugin</artifactId>
543
						<configuration>
544
							<executable>${JMETER_HOME}/bin/jmeter.sh</executable>
545
							<arguments>
546
								<argument>-n</argument>
547
								<argument>-t</argument>
548
								<argument>${basedir}/test/jmeter/UPass-test-plan.jmx</argument>
549
								<argument>-l</argument>
550
								<argument>${project.build.directory}/jmeter/result.jtl</argument>
551
								<argument>-J</argument>
552
								<argument>jmeter.save.saveservice.output_format=xml</argument>
553
								<argument>-J</argument>
554
								<argument>jmeter.save.saveservice.thread_counts=true</argument>
555
								<argument>-j</argument>
556
								<argument>${project.build.directory}/jmeter/jmeter.log</argument>
557
							</arguments>
558
						</configuration>
564
						<executions>
565
							<execution>
566
								<id>upass-load-test</id>
567
								<phase>integration-test</phase>
568
								<goals>
569
									<goal>exec</goal>
570
								</goals>
571
								<configuration>
572
									<executable>${JMETER_HOME}/bin/jmeter.sh</executable>
573
									<arguments>
574
										<argument>-n</argument>
575
										<argument>-t</argument>
576
										<argument>${basedir}/test/jmeter/UPass-test-plan.jmx</argument>
577
										<argument>-l</argument>
578
										<argument>${project.build.directory}/jmeter/result.jtl</argument>
579
										<argument>-J</argument>
580
										<argument>jmeter.save.saveservice.output_format=xml</argument>
581
										<argument>-J</argument>
582
										<argument>jmeter.save.saveservice.thread_counts=true</argument>
583
										<argument>-j</argument>
584
										<argument>${project.build.directory}/jmeter/jmeter.log</argument>
585
									</arguments>
586
								</configuration>
587
							</execution>
588
							<execution>
589
								<id>maybank-load-test</id>
590
								<phase>integration-test</phase>
591
								<goals>
592
									<goal>exec</goal>
593
								</goals>
594
								<configuration>
595
									<executable>${JMETER_HOME}/bin/jmeter.sh</executable>
596
									<arguments>
597
										<argument>-n</argument>
598
										<argument>-t</argument>
599
										<argument>${basedir}/test/jmeter/Maybank-facade-test-plan.jmx</argument>
600
										<argument>-l</argument>
601
										<argument>${project.build.directory}/jmeter/resultMaybank.jtl</argument>
602
										<argument>-J</argument>
603
										<argument>jmeter.save.saveservice.output_format=xml</argument>
604
										<argument>-J</argument>
605
										<argument>jmeter.save.saveservice.thread_counts=true</argument>
606
										<argument>-j</argument>
607
										<argument>${project.build.directory}/jmeter/jmeterMaybank.log</argument>
608
									</arguments>
609
								</configuration>
610
							</execution>
611
						</executions>
559 612
					</plugin>
560 613
				</plugins>
561 614
			</build>
......
584 637
										<mkdir dir="${project.build.directory}/wsdl" />
585 638
										<property name="compile_classpath" refid="maven.compile.classpath" />
586 639
										<taskdef name="wsgen" classname="com.sun.tools.ws.ant.WsGen" />
587
										<wsgen sei="my.com.upass.maybank.MaybankFacadeImpl" classpath="${compile_classpath}" genWsdl="true"
588
											encoding="UTF-8" keep="false" verbose="true" inlineSchemas="false" resourcedestdir="${project.build.directory}/wsdl"
589
											xendorsed="true" />
590
										<replace file="${project.build.directory}/wsdl/MaybankFacade.wsdl" token="REPLACE_WITH_ACTUAL_URL"
591
											value="http://dummy.endpoint.url" />
640
										<wsgen sei="my.com.upass.maybank.MaybankFacadeImpl"
641
											classpath="${compile_classpath}" genWsdl="true" encoding="UTF-8"
642
											keep="false" verbose="true" inlineSchemas="false"
643
											resourcedestdir="${project.build.directory}/wsdl" xendorsed="true" />
644
										<replace file="${project.build.directory}/wsdl/MaybankFacade.wsdl"
645
											token="REPLACE_WITH_ACTUAL_URL" value="http://dummy.endpoint.url" />
592 646
									</target>
593 647
								</configuration>
594 648
								<goals>

Also available in: Unified diff