My Quotes


When U were born , you cried and the world rejoiced
Live U'r life in such a way that when you go
THE WORLD SHOULD CRY






Wednesday, August 6, 2014

Remove unwanted folders from Maven WAR


When you are using activemq-all.jar file in your maven, you could see that there are lots of folders added to the WAR file especially the bigger ones are

  • [INFO] Processing overlay [ id org.apache.activemq:activemq-fileserver]
  • [INFO] Processing overlay [ id org.apache.activemq:activemq-web-demo]
  • [INFO] Processing overlay [ id org.apache.activemq:activemq-web-console]
    In order to remove them from your WAR here is an easier technique

  • 
      WarFileName
      
       
        maven-compiler-plugin
        2.2
        
         1.6
         1.6
        
       
       
        org.apache.maven.plugins
        maven-war-plugin
        2.2
         
         
         **
        
        
         
          war
          package
          
           war
          
          
           true
          
         
        
       
      
     
    


    No comments :