title: Enabling gZip Compression using tomcat-maven plugin
body: <p>In our spring application, we want to compress the response using gzip compression, from the documentation i found out that we can configure it by modifying /conf/server.xml file in tomcat (http://www.servletworld.com/tomcat/enable-tomcat-gzip-compression.html).</p>
  
  <p>But in our app, we are using embedded tomcat from org.codehaus.mojo plugin, 
  From some research, i can see that we can do such server configurations in pom.xml as below :</p>
  
  <pre><code>    &lt;plugin&gt;
          &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
          &lt;artifactId&gt;tomcat-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;1.1&lt;/version&gt;
          &lt;configuration&gt;
              &lt;port&gt;${tomcat.port}&lt;/port&gt;
              &lt;url&gt;${tomcat.manager}&lt;/url&gt;
              &lt;username&gt;${tomcat.manager.username}&lt;/username&gt;
              &lt;password&gt;${tomcat.manager.password}&lt;/password&gt;
          &lt;/configuration&gt;
      &lt;/plugin&gt;
  </code></pre>
  
  <p>Similarly i wanted to configure the connector attributes for enabling compression, tried out different ways but with no success.</p>
  
  <p>Can someone please help me out.</p>
  
  <p>Thanks</p>
  
  <p>Shri</p>