Revision 120:ae1d99468601 pom.xml

View differences:

pom.xml
4 4

  
5 5
	<modelVersion>4.0.0</modelVersion>
6 6

  
7
	<name>M2U UPass Admin</name>
8 7
	<groupId>net.penril</groupId>
9 8
	<artifactId>m2u-upass-admin</artifactId>
10 9
	<version>2.0-SNAPSHOT</version>
11 10
	<packaging>war</packaging>
12

  
11
	<name>M2U UPass Admin</name>
13 12
	<properties>
14 13
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15 14
		<cobertura.version>1.9.4.1</cobertura.version>
16
		<config.postfix></config.postfix>
17
		<m2u-upass-classifier></m2u-upass-classifier>
15
		<config.postfix />
16
		<m2u-upass-classifier />
18 17
	</properties>
19 18
	<reporting>
20 19
		<plugins>
......
25 24
			</plugin>
26 25
		</plugins>
27 26
	</reporting>
28

  
27
	<distributionManagement>
28
		<snapshotRepository>
29
			<id>penril.nexus.repo</id>
30
			<name>Penril Nexus Repo</name>
31
			<url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots</url>
32
			<uniqueVersion>false</uniqueVersion>
33
		</snapshotRepository>
34
	</distributionManagement>
29 35
	<build>
30
		<sourceDirectory>src</sourceDirectory>
31
		<resources>
32
			<resource>
33
				<directory>resource</directory>
34
			</resource>
35
		</resources>
36
		<testSourceDirectory>test</testSourceDirectory>
37
		<!-- <outputDirectory>${basedir}/WebContent/WEB-INF/classes</outputDirectory> -->
38 36
		<pluginManagement>
39 37
			<plugins>
40 38
				<plugin>
39
					<groupId>org.codehaus.mojo</groupId>
40
					<artifactId>cobertura-maven-plugin</artifactId>
41
					<version>2.5.1</version>
42
				</plugin>
43
				<plugin>
41 44
					<groupId>org.apache.maven.plugins</groupId>
42 45
					<artifactId>maven-antrun-plugin</artifactId>
43 46
					<version>1.6</version>
44 47
				</plugin>
45 48
				<plugin>
46
					<groupId>org.apache.maven.plugins</groupId>
47
					<artifactId>maven-compiler-plugin</artifactId>
48
					<version>2.3.2</version>
49
					<configuration>
50
						<source>1.6</source>
51
						<target>1.6</target>
52
					</configuration>
53
				</plugin>
54
				<plugin>
55
					<groupId>org.codehaus.mojo</groupId>
56
					<artifactId>cobertura-maven-plugin</artifactId>
57
					<version>2.5.1</version>
58
				</plugin>
59
				<plugin>
60 49
					<groupId>org.glassfish</groupId>
61 50
					<artifactId>maven-embedded-glassfish-plugin</artifactId>
62 51
					<version>3.1.1</version>
......
70 59
						<contextRoot>${project.artifactId}</contextRoot>
71 60
					</configuration>
72 61
				</plugin>
62
				<plugin>
63
					<groupId>org.apache.maven.plugins</groupId>
64
					<artifactId>maven-compiler-plugin</artifactId>
65
					<version>2.3.2</version>
66
					<configuration>
67
						<source>1.6</source>
68
						<target>1.6</target>
69
					</configuration>
70
				</plugin>
73 71
			</plugins>
74 72
		</pluginManagement>
73
		<sourceDirectory>src</sourceDirectory>
74
		<resources>
75
			<resource>
76
				<directory>resource</directory>
77
			</resource>
78
		</resources>
79
		<testSourceDirectory>test</testSourceDirectory>
80
		<!-- <outputDirectory>${basedir}/WebContent/WEB-INF/classes</outputDirectory> -->
75 81
		<plugins>
76 82
			<plugin>
77 83
				<groupId>org.apache.maven.plugins</groupId>
......
82 88
				</configuration>
83 89
			</plugin>
84 90
			<plugin>
85
				<groupId>org.mortbay.jetty</groupId>
86
				<artifactId>maven-jetty-plugin</artifactId>
87
				<version>6.1.16</version>
91
				<groupId>org.apache.maven.plugins</groupId>
92
				<artifactId>maven-compiler-plugin</artifactId>
93
				<version>2.3.2</version>
88 94
				<configuration>
89
					<webAppSourceDirectory>${basedir}/WebContent</webAppSourceDirectory>
95
					<source>1.6</source>
96
					<target>1.6</target>
90 97
				</configuration>
91 98
			</plugin>
99
			<plugin>
100
				<artifactId>maven-failsafe-plugin</artifactId>
101
				<version>2.6</version>
102
				<executions>
103
					<execution>
104
						<goals>
105
							<goal>integration-test</goal>
106
							<goal>verify</goal>
107
						</goals>
108
					</execution>
109
				</executions>
110
				<configuration>
111
				<includes>
112
					<include>**/FirstTestWithSeleniumBuilder.java</include>
113
					<include>**/AnotherTestWithSeleniumBuilder.java</include>
114
				</includes>
115
				</configuration>
116
				<dependencies>
117
					<dependency>
118
						<groupId>net.sourceforge.cobertura</groupId>
119
						<artifactId>cobertura-runtime</artifactId>
120
						<version>${cobertura.version}</version>
121
						<!-- <scope>provided</scope> -->
122
						<scope>compile</scope>
123
						<type>pom</type>
124
					</dependency>
125
				</dependencies>
126
			</plugin>
92 127
		</plugins>
93 128
	</build>
129

  
130

  
131

  
94 132
	<profiles>
95 133
		<profile>
96
			<id>env-dev-penril</id>
134
			<id>env-staging-ci</id>
97 135
			<activation>
98 136
				<property>
99 137
					<name>env</name>
100
					<value>dev-penril</value>
138
					<value>staging-ci</value>
101 139
				</property>
102 140
			</activation>
103
			<distributionManagement>
104
				<snapshotRepository>
105
					<id>penril.nexus.repo</id>
106
					<name>Penril Nexus Repo</name>
107
					<url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots</url>
108
				</snapshotRepository>
109
			</distributionManagement>
110 141
			<properties>
111
				<config.postfix>.dev-penril</config.postfix>
142
				<config.postfix>.staging-ci</config.postfix>
112 143
			</properties>
144
			<build>
145
				<plugins>
146
					<plugin>
147
						<groupId>org.glassfish</groupId>
148
						<artifactId>maven-embedded-glassfish-plugin</artifactId>
149
						<configuration>
150
							<app>${project.build.directory}/${project.artifactId}-${project.version}-${m2u-upass-classifier}.war</app>
151
							<!-- <app>${project.build.directory}/${project.artifactId}-${project.version}</app> -->
152
						</configuration>
153
						<executions>
154
							<execution>
155
								<id>start-glassfish</id>
156
								<phase>pre-integration-test</phase>
157
								<goals>
158
									<goal>start</goal>
159
								</goals>
160
							</execution>
161
							<execution>
162
								<id>glassfish-deploy</id>
163
								<phase>pre-integration-test</phase>
164
								<goals>
165
									<goal>deploy</goal>
166
								</goals>
167
							</execution>
168
						</executions>
169
						<dependencies>
170
							<dependency>
171
								<groupId>net.sourceforge.cobertura</groupId>
172
								<artifactId>cobertura-runtime</artifactId>
173
								<version>${cobertura.version}</version>
174
								<!-- <scope>provided</scope> -->
175
								<scope>compile</scope>
176
								<type>pom</type>
177
							</dependency>
178
						</dependencies>
179
					</plugin>
180
					<plugin>
181
						<artifactId>maven-surefire-plugin</artifactId>
182
						<configuration>
183
							<classesDirectory>${project.build.directory}/generated-classes/cobertura</classesDirectory>
184
							<forkMode>none</forkMode>
185
							<skipTests>true</skipTests>
186
						</configuration>
187
					</plugin>
188
				</plugins>
189
			</build>
190
			<dependencies>
191
				<dependency>
192
					<groupId>axis</groupId>
193
					<artifactId>axis</artifactId>
194
					<version>1.4</version>
195
					<type>jar</type>
196
					<scope>compile</scope>
197
				</dependency>
198
			</dependencies>
113 199
		</profile>
114 200
		<profile>
115 201
			<id>env-dev-m2u</id>
......
180 266
			</build>
181 267
		</profile>
182 268
		<profile>
183
			<id>env-staging-ci</id>
269
			<id>env-dev-penril</id>
184 270
			<activation>
185 271
				<property>
186 272
					<name>env</name>
187
					<value>staging-ci</value>
273
					<value>dev-penril</value>
188 274
				</property>
189 275
			</activation>
190 276
			<properties>
191
				<config.postfix>.staging-ci</config.postfix>
277
				<config.postfix>.dev-penril</config.postfix>
278
			</properties>
279
		</profile>
280
		<profile>
281
			<id>env-maybank-dev</id>
282
			<activation>
283
				<property>
284
					<name>env</name>
285
					<value>maybank-dev</value>
286
				</property>
287
			</activation>
288
			<properties>
289
				<config.postfix>.maybank-dev</config.postfix>
192 290
			</properties>
193 291
			<build>
194 292
				<plugins>
......
196 294
						<groupId>org.glassfish</groupId>
197 295
						<artifactId>maven-embedded-glassfish-plugin</artifactId>
198 296
						<configuration>
199
							<!-- <app>${project.build.directory}/${project.artifactId}-${project.version}-${m2u-upass-classifier}.war</app> -->
200
							<app>${project.build.directory}/${project.artifactId}-${project.version}</app>
201
						</configuration>
202
						<executions>
203
							<execution>
204
								<id>start-glassfish</id>
205
								<phase>pre-integration-test</phase>
206
								<goals>
207
									<goal>start</goal>
208
								</goals>
209
							</execution>
210
							<execution>
211
								<id>glassfish-deploy</id>
212
								<phase>pre-integration-test</phase>
213
								<goals>
214
									<goal>deploy</goal>
215
								</goals>
216
							</execution>
217
						</executions>
218
						<dependencies>
219
							<dependency>
220
								<groupId>net.sourceforge.cobertura</groupId>
221
								<artifactId>cobertura-runtime</artifactId>
222
								<version>${cobertura.version}</version>
223
								<!-- <scope>provided</scope> -->
224
								<scope>compile</scope>
225
								<type>pom</type>
226
							</dependency>
227
						</dependencies>
228
					</plugin>
229
					<plugin>
230
						<artifactId>maven-surefire-plugin</artifactId>
231
						<configuration>
232
							<classesDirectory>${project.build.directory}/generated-classes/cobertura</classesDirectory>
233
							<forkMode>none</forkMode>
297
							<app>${project.build.directory}/${project.artifactId}-${project.version}.war</app>
234 298
						</configuration>
235 299
					</plugin>
236 300
				</plugins>
237 301
			</build>
238
			<dependencies>
239
				<dependency>
240
					<groupId>axis</groupId>
241
					<artifactId>axis</artifactId>
242
					<version>1.4</version>
243
					<type>jar</type>
244
					<scope>compile</scope>
245
				</dependency>
246
			</dependencies>
247 302
		</profile>
303

  
304

  
305

  
248 306
		<profile>
249 307
			<id>env-staging-penril</id>
250 308
			<activation>
......
253 311
					<value>staging-penril</value>
254 312
				</property>
255 313
			</activation>
256
			<distributionManagement>
257
				<snapshotRepository>
258
					<id>penril.nexus.repo</id>
259
					<name>Penril Nexus Repo</name>
260
					<url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots</url>
261
				</snapshotRepository>
262
			</distributionManagement>
263 314
			<properties>
264 315
				<config.postfix>.staging-penril</config.postfix>
265 316
			</properties>
......
286 337
				</plugins>
287 338
			</build>
288 339
		</profile>
289
		<profile>
290
			<id>env-maybank-dev</id>
291
			<activation>
292
				<property>
293
					<name>env</name>
294
					<value>maybank-dev</value>
295
				</property>
296
			</activation>
297
			<properties>
298
				<config.postfix>.maybank-dev</config.postfix>
299
			</properties>
300
		</profile>
340

  
341

  
342

  
301 343
		<profile>
302 344
			<id>cobertura-instrument</id>
303 345
			<activation>
......
406 448
			</dependencies>
407 449
		</profile>
408 450
	</profiles>
451

  
452

  
453

  
409 454
	<dependencies>
410 455
		<dependency>
456
			<groupId>junit</groupId>
457
			<artifactId>junit</artifactId>
458
			<version>4.8.2</version>
459
			<type>jar</type>
460
			<scope>test</scope>
461
		</dependency>
462
		<dependency>
463
			<groupId>net.penril</groupId>
464
			<artifactId>m2u-upass-core</artifactId>
465
			<version>2.0-SNAPSHOT</version>
466
			<classifier>${m2u-upass-classifier}</classifier>
467
		</dependency>
468
		<dependency>
469
			<groupId>net.penril</groupId>
470
			<artifactId>m2u-upass-admin-core</artifactId>
471
			<version>2.0-SNAPSHOT</version>
472
			<exclusions>
473
				<exclusion>
474
					<artifactId>saaj-api</artifactId>
475
					<groupId>javax.xml.soap</groupId>
476
				</exclusion>
477
				<exclusion>
478
					<artifactId>axis-jaxrpc</artifactId>
479
					<groupId>org.apache.axis</groupId>
480
				</exclusion>
481
				<exclusion>
482
					<artifactId>axis-saaj</artifactId>
483
					<groupId>org.apache.axis</groupId>
484
				</exclusion>
485
			</exclusions>
486
		</dependency>
487
		<dependency>
411 488
			<groupId>net.penril.onlineapps</groupId>
412 489
			<artifactId>oa-mailbox</artifactId>
413 490
			<version>0.9-SNAPSHOT</version>
......
599 676
			<scope>compile</scope>
600 677
		</dependency>
601 678
		<dependency>
602
			<groupId>junit</groupId>
603
			<artifactId>junit</artifactId>
604
			<version>4.8.2</version>
605
			<type>jar</type>
606
			<scope>test</scope>
607
		</dependency>
608
		<dependency>
609 679
			<groupId>javax.sql</groupId>
610 680
			<artifactId>jdbc-stdext</artifactId>
611 681
			<version>2.0</version>
......
664 734
			<version>0.2a-20111103</version>
665 735
		</dependency>
666 736
		<dependency>
667
			<groupId>net.penril</groupId>
668
			<artifactId>m2u-upass-core</artifactId>
669
			<version>2.0-SNAPSHOT</version>
670
		</dependency>
671
		<dependency>
672
			<groupId>net.penril</groupId>
673
			<artifactId>m2u-upass-admin-core</artifactId>
674
			<version>2.0-SNAPSHOT</version>
675
			<exclusions>
676
				<exclusion>
677
					<artifactId>saaj-api</artifactId>
678
					<groupId>javax.xml.soap</groupId>
679
				</exclusion>
680
				<exclusion>
681
					<artifactId>axis-jaxrpc</artifactId>
682
					<groupId>org.apache.axis</groupId>
683
				</exclusion>
684
				<exclusion>
685
					<artifactId>axis-saaj</artifactId>
686
					<groupId>org.apache.axis</groupId>
687
				</exclusion>
688
			</exclusions>
689
		</dependency>
690
		<dependency>
691 737
			<groupId>org.seleniumhq.selenium</groupId>
692 738
			<artifactId>selenium-server</artifactId>
693 739
			<version>2.35.0</version>

Also available in: Unified diff