Subversion Repositories SmartDukaan

Rev

Rev 9103 | Rev 9234 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
9103 anupam.sin 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
  <modelVersion>4.0.0</modelVersion>
4
  <groupId>in.shop2020</groupId>
5
  <artifactId>MobileWebsiteApi</artifactId>
6
  <packaging>war</packaging>
7
  <version>1.0-SNAPSHOT</version>
8
 
9
  <name>API for m.saholic.com</name>
10
 
11
  <parent>
12
    <groupId>in.shop2020</groupId>
13
    <artifactId>parent</artifactId>
14
    <version>1.0-SNAPSHOT</version>
15
  </parent>
16
 
17
  <properties>
18
    <env>dev</env>
19
  </properties>
20
 
21
  <build>
22
    <filters>
23
      <filter>src/main/filters/${env}/filters.properties</filter>
24
    </filters>
25
    <resources>
26
      <resource>
27
        <directory>src/main/resources</directory>
28
        <filtering>true</filtering>
29
      </resource>
30
    </resources>
31
    <plugins>
32
      <plugin>
33
        <groupId>org.apache.maven.plugins</groupId>
34
        <artifactId>maven-compiler-plugin</artifactId>
35
        <version>2.3.2</version>
36
        <configuration>
37
          <debug>true</debug>
38
          <optimize>true</optimize>
39
          <source>1.6</source>
40
          <target>1.6</target>
41
        </configuration>
42
      </plugin>
43
    </plugins>
44
  </build>
45
 
46
  <profiles>
47
    <profile>
48
      <activation>
49
        <property>
50
          <name>env</name>
51
          <value>dev</value>
52
        </property>
53
      </activation>
54
      <build>
55
        <plugins>
56
          <plugin>
57
	      	<groupId>org.apache.maven.plugins</groupId>
58
	        <artifactId>maven-war-plugin</artifactId>
59
	        <version>2.1.1</version>
60
		    <configuration>
61
	          <webResources>
62
                <resource>
63
	              <directory>src/main/webapp/js</directory>
64
	              <targetPath>js</targetPath>
65
	              <filtering>true</filtering>
66
	            </resource>
67
	            <resource>
68
	              <directory>src/main/webapp</directory>
69
	              <includes>
70
	                <include>WEB-INF/content/*.vm</include>
71
	                <include>WEB-INF/web.xml</include>
72
	                <include>js/ga-invoker.js</include>
73
	                <include>js/facebook.js</include>
74
	                <include>js/loginregister.js</include>
75
	              </includes>
76
	              <filtering>true</filtering>
77
	            </resource>
78
		      </webResources>
79
	        </configuration>
80
	      </plugin>
81
        </plugins>
82
      </build>
83
    </profile>
84
 
85
    <profile>
86
      <id>minify</id>
87
      <build>
88
        <plugins>
89
          <plugin>
90
            <groupId>org.apache.maven.plugins</groupId>
91
            <artifactId>maven-resources-plugin</artifactId>
92
            <version>2.4.3</version>
93
            <executions>
94
              <execution>
95
                <id>copy-resources</id>
96
                <!-- here the phase you need -->
97
                <phase>compile</phase>
98
                <goals>
99
                  <goal>copy-resources</goal>
100
                </goals>
101
                <configuration>
102
                  <overwrite>true</overwrite>
103
                  <outputDirectory>${project.build.outputDirectory}</outputDirectory>
104
                  <resources>          
105
                    <resource>
106
                      <directory>src/production/resources</directory>
107
                      <filtering>true</filtering>
108
                    </resource>
109
                  </resources>
110
                </configuration>
111
                </execution>                
112
            </executions>
113
          </plugin>
114
 
115
          <plugin>
116
            <groupId>org.codehaus.mojo</groupId>
117
            <artifactId>exec-maven-plugin</artifactId>
118
            <version>1.1.1</version>
119
            <executions>
120
              <execution>
121
                <id>ImageVersioning</id>
122
                <phase>generate-resources</phase>
123
                <goals>
124
                    <goal>exec</goal>
125
                </goals>
126
                <configuration>
127
                    <executable>${basedir}/scripts/image_version.sh</executable>
128
                </configuration>
129
              </execution>
130
              <execution>
131
                <id>JsVersioning</id>
132
                <phase>prepare-package</phase>
133
                <goals>
134
                    <goal>exec</goal>
135
                </goals>
136
                <configuration>
137
                    <executable>${basedir}/scripts/js_css_version.sh</executable>
138
                </configuration>
139
              </execution>
140
            </executions>
141
          </plugin>
142
 
143
          <plugin>
144
	      	<groupId>org.apache.maven.plugins</groupId>
145
	        <artifactId>maven-war-plugin</artifactId>
146
	        <version>2.1.1</version>
147
	        <executions>
148
			     <execution>
149
			       <id>default-war</id>
150
			       <phase>prepare-package</phase>
151
			       <goals>
152
			         <goal>war</goal>
153
			       </goals>
154
			       <configuration>
155
					  <warSourceExcludes>js/**,css/**,images/**</warSourceExcludes>
156
			          <webResources>
157
				    	<resource>
158
			              <directory>${project.build.directory}/js</directory>
159
			              <targetPath>js</targetPath>
160
			              <filtering>true</filtering>
161
			            </resource>
162
			            <resource>
163
			              <directory>src/main/webapp</directory>
164
			              <includes>
165
			                <include>WEB-INF/content/*.vm</include>
166
			                <include>WEB-INF/web.xml</include>
167
			                <include>js/ga-invoker.js</include>
168
			                <include>js/facebook.js</include>
169
			                <include>js/loginregister.js</include>
170
			                </includes>
171
			              <filtering>true</filtering>
172
			            </resource>
173
				  	  </webResources>
174
			        </configuration>
175
			     </execution>
176
			     <execution>
177
                    <id>build-war</id>
178
                    <phase>package</phase>
179
                    <goals>
180
                    	<goal>war</goal>
181
                    </goals>
182
                     <configuration>
183
                        <warSourceExcludes>**</warSourceExcludes>
184
                    </configuration>
185
                 </execution>
186
	        </executions>
187
	        <configuration>
188
           <useCache>true</useCache>
189
            </configuration>
190
	      </plugin>
191
        </plugins>
192
      </build>
193
    </profile>
194
  </profiles>
195
 
196
  <dependencies>
197
	<!-- Servlet API is only required at compile time. It
198
	 should be provided by the container at the run time. -->
199
    <dependency>
200
      <groupId>readonly.apache</groupId>
201
      <artifactId>servlet-api</artifactId>
202
      <version>2.5</version>
203
      <scope>provided</scope>
204
    </dependency>
205
 
206
	<!-- Internal Dependencies -->
207
    <dependency>
208
      <groupId>in.shop2020</groupId>
209
      <artifactId>ThriftConfig</artifactId>
210
      <version>1.0-SNAPSHOT</version>
211
    </dependency>
212
    <dependency>
213
      <groupId>in.shop2020</groupId>
214
      <artifactId>Common</artifactId>
215
      <version>1.0-SNAPSHOT</version>
216
    </dependency>
217
 
9220 amit.gupta 218
    <dependency>
219
      <groupId>in.shop2020</groupId>
220
      <artifactId>ContentStore</artifactId>
221
      <version>1.0-SNAPSHOT</version>
222
    </dependency>
223
 
9103 anupam.sin 224
	<!-- All the other dependencies. -->
225
	<dependency>
226
      <groupId>readonly.apache</groupId>
227
      <artifactId>commons-codec</artifactId>
228
      <version>1.4</version>
229
    </dependency>
230
    <dependency>
231
      <groupId>readonly.apache</groupId>
232
      <artifactId>commons-collections</artifactId>
233
      <version>3.2.1</version>
234
    </dependency>
235
    <dependency>
236
      <groupId>readonly.apache</groupId>
237
      <artifactId>commons-digester</artifactId>
238
      <version>2.0</version>
239
    </dependency>
240
    <dependency>
241
      <groupId>readonly.apache</groupId>
242
      <artifactId>commons-fileupload</artifactId>
243
      <version>1.2.1</version>
244
    </dependency>
245
    <dependency>
246
      <groupId>readonly.apache</groupId>
247
      <artifactId>commons-io</artifactId>
248
      <version>1.3.2</version>
249
    </dependency>
250
    <dependency>
251
      <groupId>readonly.apache</groupId>
252
      <artifactId>commons-lang</artifactId>
253
      <version>2.4</version>
254
    </dependency>
255
    <dependency>
256
      <groupId>readonly.apache</groupId>
257
      <artifactId>commons-logging</artifactId>
258
      <version>1.0.4</version>
259
    </dependency>
260
    <dependency>
261
      <groupId>readonly.apache</groupId>
262
      <artifactId>commons-logging-api</artifactId>
263
      <version>1.1</version>
264
    </dependency>
265
    <dependency>
266
      <groupId>readonly.apache</groupId>
267
      <artifactId>commons-validator</artifactId>
268
      <version>1.3.1</version>
269
    </dependency>
270
    <dependency>
271
      <groupId>readonly.apache</groupId>
272
      <artifactId>ezmorph</artifactId>
273
      <version>1.0.3</version>
274
    </dependency>
275
    <dependency>
276
      <groupId>readonly.apache</groupId>
277
      <artifactId>json-lib</artifactId>
278
      <version>2.1-jdk15</version>
279
    </dependency>
280
    <dependency>
281
      <groupId>readonly.apache</groupId>
282
      <artifactId>jsp-api</artifactId>
283
      <version>2.1</version>
284
    </dependency>
285
    <dependency>
286
      <groupId>readonly.apache</groupId>
287
      <artifactId>log4j</artifactId>
288
      <version>1.2.16</version>
289
    </dependency>
290
    <dependency>
291
      <groupId>readonly.apache</groupId>
292
      <artifactId>ognl</artifactId>
293
      <version>2.7.3</version>
294
    </dependency>
295
    <dependency>
296
      <groupId>readonly.apache.struts</groupId>
297
      <artifactId>struts2-convention-plugin</artifactId>
298
      <version>2.1.8.1</version>
299
    </dependency>
300
    <dependency>
301
      <groupId>readonly.apache.struts</groupId>
302
      <artifactId>struts2-core</artifactId>
303
      <version>2.1.8.1</version>
304
    </dependency>
305
    <dependency>
306
      <groupId>readonly.apache.struts</groupId>
307
      <artifactId>struts2-rest-plugin</artifactId>
308
      <version>2.1.8.1</version>
309
    </dependency>
310
    <dependency>
311
      <groupId>readonly.apache.struts</groupId>
312
      <artifactId>xstream</artifactId>
313
      <version>1.2.2</version>
314
    </dependency>
315
    <dependency>
316
      <groupId>readonly.apache.struts</groupId>
317
      <artifactId>xwork-core</artifactId>
318
      <version>2.1.6</version>
319
    </dependency>
320
    <dependency>
321
  		<groupId>org.apache.thrift</groupId>
322
  		<artifactId>libthrift</artifactId>
323
  		<version>0.7.0</version>
324
        <exclusions>
325
        <exclusion>
326
		    <groupId>commons-codec</groupId>
327
  			<artifactId>commons-codec</artifactId>
328
        </exclusion>
329
        </exclusions>
330
	</dependency>
331
    <dependency>
332
      <groupId>readonly.apache</groupId>
333
      <artifactId>velocity</artifactId>
334
      <version>1.6.3</version>
335
    </dependency>
336
    <dependency>
337
      <groupId>readonly.apache</groupId>
338
      <artifactId>velocity-tools</artifactId>
339
      <version>1.4</version>
340
    </dependency>
341
    <dependency>
342
      <groupId>readonly.apache</groupId>
343
      <artifactId>xpp3_min</artifactId>
344
      <version>1.1.3.4.O</version>
345
    </dependency>
346
    <dependency>
347
      <groupId>readonly</groupId>
348
      <artifactId>freemarker</artifactId>
349
      <version>2.3.15</version>
350
    </dependency>
351
    <dependency>
352
      <groupId>readonly.slf4j</groupId>
353
      <artifactId>slf4j-api</artifactId>
354
      <version>1.5.8</version>
355
    </dependency>
356
    <dependency>
357
      <groupId>readonly.slf4j</groupId>
358
      <artifactId>slf4j-simple</artifactId>
359
      <version>1.5.8</version>
360
    </dependency>
361
    <dependency>
362
      <groupId>readonly</groupId>
363
      <artifactId>hdfc-payment</artifactId>
364
      <version>2.0</version>
365
    </dependency>
366
    <dependency>
367
      <groupId>readonly</groupId>
368
      <artifactId>yuicompressor</artifactId>
369
      <version>2.4.2</version>
370
    </dependency>
371
    <dependency>
372
        <groupId>org.json</groupId>
373
        <artifactId>json</artifactId>
374
        <version>20090211</version>
375
    </dependency>
376
    <dependency>
377
    	<groupId>com.google.code.gson</groupId>
378
    	<artifactId>gson</artifactId>
379
    	<version>1.7.1</version>
380
    </dependency>
381
    <dependency>
382
        <groupId>net.sf.ehcache</groupId>
383
        <artifactId>ehcache</artifactId>
384
        <version>2.4.4</version>
385
        <type>pom</type>
386
    </dependency>
387
    <dependency>
388
	    <groupId>net.tanesha.recaptcha4j</groupId>
389
	    <artifactId>recaptcha4j</artifactId>
390
	    <version>0.0.7</version>
391
	</dependency>
392
	<!-- Captcha Dependencies -->
393
	<dependency>
394
		<groupId>readonly.nl.captcha</groupId>
395
		<artifactId>SimpleCaptcha</artifactId>
396
		<version>1.2.1</version>
397
	</dependency>
398
        <dependency>
399
	<groupId>com.jcraft</groupId>
400
	<artifactId>jsch</artifactId>
401
	<version>0.1.48</version>
402
</dependency>
403
      <dependency>
404
	<groupId>ant</groupId>
405
	<artifactId>ant-jsch</artifactId>
406
	<version>1.6.5</version>
407
</dependency>
408
    <dependency>
409
	<groupId>org.apache.ant</groupId>
410
	<artifactId>ant</artifactId>
411
	<version>1.7.0</version>
412
</dependency>
413
    <dependency>
414
	<groupId>org.codehaus.groovy.maven.support</groupId>
415
	<artifactId>ant-launcher-1.7.0</artifactId>
416
	<version>1.0-rc-2</version>
417
</dependency>
418
    <dependency>
419
    	<groupId>TrackWebServiceClient</groupId>
420
    	<artifactId>TrackWebServiceClient</artifactId>
421
    	<version>1.0-SNAPSHOT</version>
422
    </dependency>
423
    <dependency>
424
    	<groupId>ShipDEWebServiceClient</groupId>
425
    	<artifactId>ShipDEWebServiceClient</artifactId>
426
    	<version>1.0-SNAPSHOT</version>
427
    </dependency>
428
  </dependencies>
429
</project>