Subversion Repositories SmartDukaan

Rev

Rev 5626 | Rev 5650 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5626 Rev 5633
Line 191... Line 191...
191
                      <directory>src/production/resources</directory>
191
                      <directory>src/production/resources</directory>
192
                      <filtering>true</filtering>
192
                      <filtering>true</filtering>
193
                    </resource>
193
                    </resource>
194
                  </resources>
194
                  </resources>
195
                </configuration>
195
                </configuration>
-
 
196
                </execution>
-
 
197
                
-
 
198
             
-
 
199
              <execution>
-
 
200
                <id>copy-images</id>
-
 
201
                <!-- here the phase you need -->
-
 
202
                <phase>compile</phase>
-
 
203
                <goals>
-
 
204
                  <goal>copy-resources</goal>
-
 
205
                </goals>
-
 
206
                <configuration>
-
 
207
                  <overwrite>true</overwrite>
-
 
208
                  <outputDirectory>${project.build.outputDirectory}/images</outputDirectory>
-
 
209
                  <resources>          
-
 
210
                    <resource>
-
 
211
                      <directory>src/main/webapp/images/$env</directory>
-
 
212
                      <filtering>true</filtering>
-
 
213
                    </resource>
-
 
214
                  </resources>
-
 
215
                </configuration>
-
 
216
                </execution>
-
 
217
                
-
 
218
            </executions>
-
 
219
          </plugin>
-
 
220
          
-
 
221
          <plugin>
-
 
222
            <groupId>org.codehaus.mojo</groupId>
-
 
223
            <artifactId>exec-maven-plugin</artifactId>
-
 
224
            <version>1.1.1</version>
-
 
225
            <executions>
-
 
226
              <execution>
-
 
227
                <id>ImageVersioning</id>
-
 
228
                <phase>generate-resources</phase>
-
 
229
                <goals>
-
 
230
                    <goal>exec</goal>
-
 
231
                </goals>
-
 
232
                <configuration>
-
 
233
                    <executable>${basedir}/scripts/image_version.sh</executable>
-
 
234
                </configuration>
-
 
235
              </execution>
-
 
236
              <execution>
-
 
237
                <id>JsVersioning</id>
-
 
238
                <phase>prepare-package</phase>
-
 
239
                <goals>
-
 
240
                    <goal>exec</goal>
-
 
241
                </goals>
-
 
242
                <configuration>
-
 
243
                    <executable>${basedir}/scripts/js_css_version.sh</executable>
-
 
244
                </configuration>
196
              </execution>
245
              </execution>
197
            </executions>
246
            </executions>
198
          </plugin>
247
          </plugin>
-
 
248
          
199
          <plugin>
249
          <plugin>
200
	      	<groupId>org.apache.maven.plugins</groupId>
250
	      	<groupId>org.apache.maven.plugins</groupId>
201
	        <artifactId>maven-war-plugin</artifactId>
251
	        <artifactId>maven-war-plugin</artifactId>
202
	        <version>2.1.1</version>
252
	        <version>2.1.1</version>
203
	        <executions>
253
	        <executions>
Line 218... Line 268...
218
			            <resource>
268
			            <resource>
219
			              <directory>src/main/webapp</directory>
269
			              <directory>src/main/webapp</directory>
220
			              <includes>
270
			              <includes>
221
			                <include>WEB-INF/content/*.vm</include>
271
			                <include>WEB-INF/content/*.vm</include>
222
			                <include>WEB-INF/web.xml</include>
272
			                <include>WEB-INF/web.xml</include>
223
			              </includes>
273
			                </includes>
224
			              <filtering>true</filtering>
274
			              <filtering>true</filtering>
225
			            </resource>
275
			            </resource>
226
				  	  </webResources>
276
				  	  </webResources>
227
			        </configuration>
277
			        </configuration>
228
			     </execution>
278
			     </execution>
Line 236... Line 286...
236
                        <warSourceExcludes>**</warSourceExcludes>
286
                        <warSourceExcludes>**</warSourceExcludes>
237
                    </configuration>
287
                    </configuration>
238
                 </execution>
288
                 </execution>
239
	        </executions>
289
	        </executions>
240
	        <configuration>
290
	        <configuration>
241
                        <useCache>true</useCache>
291
           <useCache>true</useCache>
242
            </configuration>
292
            </configuration>
243
	      </plugin>
293
	      </plugin>
244
	      <plugin>
-
 
245
            <groupId>org.codehaus.mojo</groupId>
-
 
246
            <artifactId>exec-maven-plugin</artifactId>
-
 
247
            <version>1.1.1</version>
-
 
248
            <executions>
-
 
249
              <execution>
-
 
250
                <id>ImageVersioning</id>
-
 
251
                <phase>generate-resources</phase>
-
 
252
                <goals>
-
 
253
                    <goal>exec</goal>
-
 
254
                </goals>
-
 
255
                <configuration>
-
 
256
                    <executable>${basedir}/scripts/image_version.sh</executable>
-
 
257
                </configuration>
-
 
258
              </execution>
-
 
259
              <execution>
-
 
260
                <id>JsVersioning</id>
-
 
261
                <phase>prepare-package</phase>
-
 
262
                <goals>
-
 
263
                    <goal>exec</goal>
-
 
264
                </goals>
-
 
265
                <configuration>
-
 
266
                    <executable>${basedir}/scripts/js_css_version.sh</executable>
-
 
267
                </configuration>
-
 
268
              </execution>
-
 
269
            </executions>
-
 
270
          </plugin>
-
 
271
        </plugins>
294
        </plugins>
272
      </build>
295
      </build>
273
    </profile>
296
    </profile>
274
  </profiles>
297
  </profiles>
275
  
298