jira-importer commented on issue #213:
URL: 
https://github.com/apache/maven-clean-plugin/issues/213#issuecomment-2690315621

   **[Barrie 
Treloar](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=baerrach)**
 commented
   
   A workaround is to use the antrun plugin.
   
   Something like this (I have not tested this properly)
   
   ```xml
   <plugin>
     <groupId>org.apache.maven.plugins</groupId>
     <artifactId>maven-antrun-plugin</artifactId>
     <executions>
       <execution>
         <id>gensrc</id>
         <phase>clean</phase>
         <goals>
           <goal>run</goal>
         </goals>
         <configuration>
           <tasks>
             <delete>
               <fileset dir="generated-sources" includes="**/*" />
             </delete>
           </tasks>
         </configuration>
       </execution>
     </executions>
   </plugin>
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to