[fix-34400][root][pom] optimize pom for cleaning output dir
</configuration>
</plugin>
<plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.8</version>
- <executions>
- <execution>
- <id>clean-plugins</id>
- <!-- here the phase you need -->
- <phase>clean</phase>
- <goals>
- <goal>run</goal>
- </goals>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-clean-plugin</artifactId>
+ <version>3.1.0</version>
<configuration>
- <tasks>
- <delete dir="plugins"></delete>
- <delete dir="sqlplugins"></delete>
- </tasks>
+ <filesets>
+ <fileset>
+ <directory>${basedir}/plugins</directory>
+ </fileset>
+ <fileset>
+ <directory>${basedir}/sqlplugins</directory>
+ </fileset>
+ </filesets>
</configuration>
- </execution>
- </executions>
</plugin>
</plugins>
</build>
