title: maven-compiler-plugin argument string exceeds OS X Terminal limit
body: <p>I was updating the versions of different dependencies and plugins in the POM of the project I'm working on. One of the updates was bumping maven-compiler-plugin from version 2.3.2 up to 3.1. After doing this, some of the components in the project now no longer builds successfully. The only error given is this:</p>
  
  <pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project project-name: Compilation failure -&gt; [Help 1]
  org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project project-name: Compilation failure
  </code></pre>
  
  <p>When running maven with the -X switch, we also see that there is a huge block of text in the logs. We successfully managed to run this block of text through javac and found that the issue basically boils down to the argument string (ie. the command line options) being too long for the Bash in OS X to process. </p>
  
  <pre><code>-bash: /usr/bin/javac: Argument list too long
  </code></pre>
  
  <p>I have tried to gradually increase the version number as well and the problem begins at  maven-compiler-plugin version 3.0.</p>
  
  <p>This is how the plugin is imported in POM:</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
      &lt;version&gt;3.0&lt;/version&gt;
      &lt;configuration&gt;
          &lt;verbose&gt;true&lt;/verbose&gt;
          &lt;encoding&gt;UTF-8&lt;/encoding&gt;
          &lt;source&gt;1.6&lt;/source&gt;
          &lt;target&gt;1.6&lt;/target&gt;
      &lt;forceJavacCompilerUse&gt;true&lt;/forceJavacCompilerUse&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>There is apparently over 350k characters in the command line options, which the OS X terminal just cannot process. OS X's ARG_MAX is 32 kb, while Linux Ubuntu seems to support 256 kb. The Linux Ubuntu compiles the program with the new version without a hitch, so to me that basically confirms our suspicions.</p>
  
  <p>My question therefore boils down to two things:</p>
  
  <p>1) Can we get Maven to give us a proper error message instead of this huge block of text that needs to be manually run through javac? (Any other errors are cathced as they should be and shown in a proper error message). We have tried a couple of  settings, with no luck.</p>
  
  <p>2) is there a fix that can either a) stop Maven from generating argument strings of this size (<em>something</em> obviously happened from version 2.3.2. to 3.1), or b) increase the MAX_ARG on OS X?</p>