Jelajahi Sumber

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@1167 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d

administrator 10 tahun lalu
induk
melakukan
b4d866156c
1 mengubah file dengan 31 tambahan dan 27 penghapusan
  1. 31 27
      pom.xml

+ 31 - 27
pom.xml

@@ -208,26 +208,11 @@
 				</goals> 远程服务器的相关配置 <configuration> <hostname>60.host</hostname> <port>9999</port> 
 				用户名和密码为jboss as 中添加的用户名和密码 <username>administrator</username> <password>select111***</password> 
 				</configuration> </execution> </executions> </plugin> -->
-			<!-- <plugin>
-				<groupId>org.apache.tomcat.maven</groupId>
-				<artifactId>tomcat7-maven-plugin</artifactId>
-				<version>2.2</version>
-				<executions>
-					<execution>
-						<phase>install</phase>
-						<goals>
-							<goal>deploy</goal>
-						</goals>
-						<configuration>
-							<url>http://60.host:9090/manager/text</url>
-							<username>administrator</username>
-							<password>select111***</password>
-							<path>/platform-b2b</path>
-							<update>true</update>
-						</configuration>
-					</execution>
-				</executions>
-			</plugin> -->
+			<plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> 
+				<version>2.2</version> <executions> <execution> <phase>install</phase> <goals> 
+				<goal>deploy</goal> </goals> <configuration> <url>http://60.host:9090/manager/text</url> 
+				<username>administrator</username> <password>select111***</password> <path>/platform-b2b</path> 
+				<update>true</update> </configuration> </execution> </executions> </plugin>
 			<plugin>
 				<groupId>com.samaxes.maven</groupId>
 				<artifactId>minify-maven-plugin</artifactId>
@@ -244,18 +229,16 @@
 							<closureAngularPass>true</closureAngularPass>
 							<nosuffix>true</nosuffix>
 							<webappTargetDir>${project.build.directory}/minify</webappTargetDir>
-							<cssSourceDir>/</cssSourceDir>
+							<cssSourceDir>resources</cssSourceDir>
 							<cssEngine>YUI</cssEngine>
 							<jsSourceDir>resources</jsSourceDir>
 							<jsEngine>CLOSURE</jsEngine>
 							<cssSourceIncludes>
-								<cssSourceInclude>resources/css/**/*.css</cssSourceInclude>
-								<cssSourceInclude>resources/tpl/**/*.html</cssSourceInclude>
-								<cssSourceInclude>WEB-INF/views/**/*.html</cssSourceInclude>
-								<cssSourceInclude>resources/data/**/*.json</cssSourceInclude>
+								<cssSourceInclude>css/**/*.css</cssSourceInclude>
+								<cssSourceInclude>data/**/*.json</cssSourceInclude>
 							</cssSourceIncludes>
 							<cssSourceExcludes>
-								<cssSourceExclude>resources/css/**/*.min.css</cssSourceExclude>
+								<cssSourceExclude>css/**/*.min.css</cssSourceExclude>
 							</cssSourceExcludes>
 							<jsSourceIncludes>
 								<jsSourceInclude>js/**/*.js</jsSourceInclude>
@@ -270,7 +253,28 @@
 					</execution>
 				</executions>
 			</plugin>
- 			<plugin>
+			<plugin>
+				<artifactId>maven-resources-plugin</artifactId>
+				<executions>
+					<execution>
+						<id>copy-resources</id>
+						<phase>prepare-package</phase>
+						<goals>
+							<goal>copy-resources</goal>
+						</goals>
+						<configuration>
+							<outputDirectory>${project.build.directory}/minify</outputDirectory>
+							<overwrite>false</overwrite>
+							<resources>
+								<resource>
+									<directory>${basedir}/src/main/webapp</directory>
+								</resource>
+							</resources>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
+			<plugin>
 				<groupId>com.uas.plugins</groupId>
 				<artifactId>static-maven-plugin</artifactId>
 				<version>0.0.1-SNAPSHOT</version>