Subversion Repositories SmartDukaan

Rev

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

Rev 9234 Rev 11050
Line 77... Line 77...
77
    <profile>
77
    <profile>
78
      <id>minify</id>
78
      <id>minify</id>
79
      <build>
79
      <build>
80
        <plugins>
80
        <plugins>
81
          <plugin>
81
          <plugin>
82
            <groupId>org.apache.maven.plugins</groupId>
-
 
83
            <artifactId>maven-resources-plugin</artifactId>
-
 
84
            <version>2.4.3</version>
-
 
85
            <executions>
-
 
86
              <execution>
-
 
87
                <id>copy-resources</id>
-
 
88
                <!-- here the phase you need -->
-
 
89
                <phase>compile</phase>
-
 
90
                <goals>
-
 
91
                  <goal>copy-resources</goal>
-
 
92
                </goals>
-
 
93
                <configuration>
-
 
94
                  <overwrite>true</overwrite>
-
 
95
                  <outputDirectory>${project.build.outputDirectory}</outputDirectory>
-
 
96
                  <resources>          
-
 
97
                    <resource>
-
 
98
                      <directory>src/production/resources</directory>
-
 
99
                      <filtering>true</filtering>
-
 
100
                    </resource>
-
 
101
                  </resources>
-
 
102
                </configuration>
-
 
103
                </execution>                
-
 
104
            </executions>
-
 
105
          </plugin>
-
 
106
          
-
 
107
          <plugin>
-
 
108
            <groupId>org.codehaus.mojo</groupId>
-
 
109
            <artifactId>exec-maven-plugin</artifactId>
-
 
110
            <version>1.1.1</version>
-
 
111
            <executions>
-
 
112
              <execution>
-
 
113
                <id>ImageVersioning</id>
-
 
114
                <phase>generate-resources</phase>
-
 
115
                <goals>
-
 
116
                    <goal>exec</goal>
-
 
117
                </goals>
-
 
118
                <configuration>
-
 
119
                    <executable>${basedir}/scripts/image_version.sh</executable>
-
 
120
                </configuration>
-
 
121
              </execution>
-
 
122
              <execution>
-
 
123
                <id>JsVersioning</id>
-
 
124
                <phase>prepare-package</phase>
-
 
125
                <goals>
-
 
126
                    <goal>exec</goal>
-
 
127
                </goals>
-
 
128
                <configuration>
-
 
129
                    <executable>${basedir}/scripts/js_css_version.sh</executable>
-
 
130
                </configuration>
-
 
131
              </execution>
-
 
132
            </executions>
-
 
133
          </plugin>
-
 
134
          
-
 
135
          <plugin>
-
 
136
	      	<groupId>org.apache.maven.plugins</groupId>
82
	      	<groupId>org.apache.maven.plugins</groupId>
137
	        <artifactId>maven-war-plugin</artifactId>
83
	        <artifactId>maven-war-plugin</artifactId>
138
	        <version>2.1.1</version>
84
	        <version>2.1.1</version>
139
	        <executions>
85
	        <executions>
140
			     <execution>
86
			     <execution>
Line 142... Line 88...
142
			       <phase>prepare-package</phase>
88
			       <phase>prepare-package</phase>
143
			       <goals>
89
			       <goals>
144
			         <goal>war</goal>
90
			         <goal>war</goal>
145
			       </goals>
91
			       </goals>
146
			       <configuration>
92
			       <configuration>
147
					  <warSourceExcludes>js/**,css/**,images/**</warSourceExcludes>
93
					  <warSourceExcludes>js/**,css/**</warSourceExcludes>
148
			          <webResources>
94
			          <webResources>
149
				    	<resource>
-
 
150
			              <directory>${project.build.directory}/js</directory>
-
 
151
			              <targetPath>js</targetPath>
-
 
152
			              <filtering>true</filtering>
-
 
153
			            </resource>
-
 
154
			            <resource>
95
			            <resource>
155
			              <directory>src/main/webapp</directory>
96
			              <directory>src/main/webapp</directory>
156
			              <includes>
97
			              <includes>
157
			                <include>WEB-INF/content/*.vm</include>
98
			                <include>WEB-INF/content/*.vm</include>
158
			                <include>WEB-INF/web.xml</include>
99
			                <include>WEB-INF/web.xml</include>
159
			                <include>js/ga-invoker.js</include>
-
 
160
			                <include>js/facebook.js</include>
-
 
161
			                <include>js/loginregister.js</include>
-
 
162
			                </includes>
100
			                </includes>
163
			              <filtering>true</filtering>
101
			              <filtering>true</filtering>
164
			            </resource>
102
			            </resource>
165
				  	  </webResources>
103
				  	  </webResources>
166
			        </configuration>
104
			        </configuration>