title: Maven skip compile
body: <p>I want to use Maven to execute a certain plug-in that only needs the source code but I do not want Maven to compile anything (mostly because the project just doesn't compile).</p>
  
  <p>How do I tell Maven to skip the compile step and just launch its plug-in and then package the generated resources together in a nice JAR? (The procedure of the last step is already known to me.)</p>
  
  <p><strong>Additional Info:</strong></p>
  
  <p>So we tried a lot of things right now, e.g.:</p>
  
  <pre class="lang-xml prettyprint-override"><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;excludes&gt;
              &lt;exclude&gt;**/*&lt;/exclude&gt;
          &lt;/excludes&gt;
          &lt;source&gt;1.7&lt;/source&gt;
              &lt;target&gt;1.7&lt;/target&gt;
      &lt;/configuration&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;phase&gt;deploy&lt;/phase&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>Though when we do a <code>mvn package</code> we get this:</p>
  
  <pre class="lang-none prettyprint-override"><code>[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ project ---
  [INFO] Changes detected - recompiling the module!
  [INFO] Compiling ALOTOF source files to /home/myname/dir/dir/project/target/classes
  </code></pre>
  
  <p>message edited ofc.</p>