Web工程 使用Maven压缩及发布代码

阅读更多
一、项目需求:
压缩js及css项目,打包到Andrid工程assets目录下,在移动端提供桌面Web服务。

二、代码:
    
	4.0.0
	com.fulan.app
	SparkWebServer
	war
	1.0
	SparkWebServer
	http://maven.apache.org
	
	
		
			
				net.alchim31.maven
				yuicompressor-maven-plugin
				
					
						
							compress
						
					
				
				
					UTF-8
					true
					${basedir}/target
					${basedir}/WebContent
					
						
						
							true
							${project.build.directory}/${project.build.finalName}/all-min.js
							
								**/jquery-ui-1.10.4.custom/js/jquery-1.10.2.js
								**/jquery-ui-1.10.4.custom/js/jquery-ui-1.10.4.custom.js
								**/jquery-ui-1.10.4.custom/js/dialog.js
								**/jquery-ui-1.10.4.custom/js/jquery.mousewheel.js
								**/jquery-ui-1.10.4.custom/js/jquery.mCustomScrollbar.js
								**/jquery-ui-1.10.4.custom/js/hoverIntent.js
								**/jquery-ui-1.10.4.custom/js/superfish.js
								**/jquery-ui-1.10.4.custom/js/jquery-ui-timepicker-addon.min.js
								**/jquery-ui-1.10.4.custom/js/*.js
								**/js/ip.js
								**/js/fixIE.js
								**/js/commands.js
								**/js/states.js
								**/js/multiMediaConstants.js
								**/js/controller.js
								**/js/common.js
							
						
						
						
							true
							${project.build.directory}/${project.build.finalName}/all-min.css
							
								**/jquery-ui-1.10.4.custom/css/*.css
								**/css/common.css
								**/*.css
							
						
					
				
			
			
				com.google.code.maven-replacer-plugin
				replacer
				1.5.2
				
					
						compile1
						compile
						
							replace
						
						
							
								target/SparkWebServer-1.0/*.js
								target/SparkWebServer-1.0/*.css
								WebContent/tabs/*/*.html
							
							target/tmp/
							true
							
								DOTALL
							
							
								
								
									
									
								
								
									
									
								
								
									
									
								
								
									
									
								
								
									
									
								
								
									
									
								
								
								
									
									
								
							
						
					
					
						compile2
						compile
						
							replace
						
						
							
								WebContent/*.html
							
							target/
							true
							
								DOTALL
							
							
								
								
									]]>
									
										
                    
                    

你可能感兴趣的:(web,maven,xml)