title: Maven YUI Compressor, concat but don't minify (turn compression off)
body: <p>I am working on a legacy project, it's a Vaadin component which uses Maven YUI plugin to minify and concatenate the javascript files. There are 40 js files.</p>
  
  <p>The YUI plugin works as it should, minifying the 40 js files and concatenating them into one file (which is then referenced with <code>@javascript</code> in Vaadin).</p>
  
  <p>Because of the minification development for new features is painful, but I can't remove the YUI plugin because then I'd need to add a <code>@javascript</code> annotation for all 40 js files.</p>
  
  <p>Is there a way to make YUI aggregate but <strong>not</strong> minify. I had read the docs and tried changing the goals (i.e. to jslint only) but it seems I can't aggregate if I don't use the <code>compress</code> goal.</p>
  
  <p>Am I missing something here?</p>
  
  <p>Here's my YUI config as it stands:</p>
  
  <pre><code>&lt;plugin&gt;
    &lt;groupId&gt;net.alchim31.maven&lt;/groupId&gt;
    &lt;artifactId&gt;yuicompressor-maven-plugin&lt;/artifactId&gt;
    &lt;version&gt;1.5.1&lt;/version&gt;
    &lt;executions&gt;
      &lt;execution&gt;
        &lt;id&gt;jslint&lt;/id&gt;
        &lt;goals&gt;
          &lt;goal&gt;jslint&lt;/goal&gt;
        &lt;/goals&gt;
        &lt;configuration&gt;
        &lt;includes&gt;
          &lt;include&gt;**/*.js&lt;/include&gt;
        &lt;/includes&gt;
        &lt;excludes&gt;
          &lt;exclude&gt;**/VAADIN/js/*.js&lt;/exclude&gt;
          &lt;exclude&gt;**/depends/*.js&lt;/exclude&gt;
        &lt;/excludes&gt;
        &lt;/configuration&gt;
      &lt;/execution&gt;
    &lt;execution&gt;
    &lt;id&gt;minify&lt;/id&gt;
    &lt;goals&gt;
      &lt;goal&gt;compress&lt;/goal&gt;
    &lt;/goals&gt;
    &lt;configuration&gt;
    &lt;nosuffix&gt;true&lt;/nosuffix&gt;
    &lt;force&gt;true&lt;/force&gt;       
    &lt;excludeWarSourceDirectory&gt;true&lt;/excludeWarSourceDirectory&gt;
    &lt;linebreakpos&gt;-1&lt;/linebreakpos&gt;
    &lt;aggregations&gt;
      &lt;aggregation&gt;
        &lt;inputDir&gt;target/classes/[path]/components&lt;/inputDir&gt;
        &lt;removeIncluded&gt;true&lt;/removeIncluded&gt;
        &lt;output&gt;${project.build.directory}/classes/[path].js&lt;/output&gt;
      &lt;includes&gt;
        &lt;include&gt;**/*.js&lt;/include&gt;
        &lt;include&gt;**/Copyright.txt&lt;/include&gt;
      &lt;/includes&gt;
      &lt;excludes&gt;
        &lt;exclude&gt;**/depends/d3_3.4.6.js&lt;/exclude&gt;
      &lt;/excludes&gt;
      &lt;/aggregation&gt;
    &lt;/aggregations&gt;
    &lt;includes&gt;
      &lt;include&gt;**/*.js&lt;/include&gt;
      &lt;include&gt;**/[project.name].css&lt;/include&gt;
    &lt;/includes&gt;
    &lt;excludes&gt;
      &lt;exclude&gt;**/depends/*.js&lt;/exclude&gt;
    &lt;/excludes&gt;
    &lt;/configuration&gt;
    &lt;/execution&gt;
    &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p><strong>N.b.</strong> I've also tried the above with the aggregation config in the jslint goal with no joy.</p>
  
  <p>There must be a way to stop the compression (I know YUI is a compression plugin, but it has other functions (such as lint) so I'd assume you can turn compression off). Also, Vaadin's <code>@javascript</code> annotation takes a comma separated list of js files. I feel adding 40 would be way too much, but maybe there is a way for <code>@javascript</code> to take a directory. (docs don't mention this though)</p>