title: Is there any way to run a custom maven clean just for a specific profile?
body: <p>So, I have a maven profile which generates my StaticMetaModel (ClassName_.java) classes for my JPA entities (ClassName.java).</p>
  
  <p>Then, i defined my maven-clean-plugin to delete those generated classes every time I run mvn clean.</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;artifactId&gt;maven-clean-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.5&lt;/version&gt;
      &lt;configuration&gt;
          &lt;filesets&gt;
              &lt;fileset&gt;
                  &lt;directory&gt;${basedir}/src/main/java&lt;/directory&gt;
                  &lt;includes&gt;
                      &lt;include&gt;**/*_.java&lt;/include&gt;
                  &lt;/includes&gt;
              &lt;/fileset&gt;
          &lt;filesets&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>This is the profile that generates the MetaModel.</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.bsc.maven&lt;/groupId&gt;
      &lt;artifactId&gt;maven-processor-plugin&lt;/artifactId&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;goals&gt;
                  &lt;goal&gt;process&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;phase&gt;generate-sources&lt;/phase&gt;
              &lt;configuration&gt;
                  &lt;outputDirectory&gt;src/main/java/&lt;/outputDirectory&gt;
                  &lt;processors&gt;
                       &lt;processor&gt;org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor&lt;/processor&gt;
                  &lt;/processors&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-jpamodelgen&lt;/artifactId&gt;
          &lt;version&gt;${hibernate.version}&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>Everything works as intended, but I would like for maven clean to perform with normal configuration (without deleting those generated classes) when I want to run other profiles. <b>Is there any way to have two methods for cleaning the project and running the custom one just for the generation profile?</b></p>