yuicompressor maven plugin and maven-war-plugin

前端 未结 7 1395
走了就别回头了
走了就别回头了 2020-12-24 03:34

I\'ve been struggling with getting this plugin to play nicely with the maven-war-plugin for a couple of hours now and I thought it was time to ask for help. I have the plugi

7条回答
  •  南方客
    南方客 (楼主)
    2020-12-24 03:57

    this is my configuration, and it works fine in my maven web project:

        
    
        net.alchim31.maven
        yuicompressor-maven-plugin
        1.3.2
        
            
                **/*-min.js
                **/*.min.js
                **/*-min.css
                **/*.min.css
            
            false
            true
        
        
            
                compress_js_css
                process-resources
                
                    compress
                
            
        
    
    
    
        org.apache.maven.plugins
        maven-war-plugin
        2.3
        
            
                
                    ${project.build.directory}/${project.build.finalName}/resources
                    /resources
                    false
                
            
            src/main/webapp/WEB-INF/web.xml
        
    
    

提交回复
热议问题