Skip to content

Commit

Permalink
[pinpoint-apm#10736] Use maven-clean-plugin instead of exec
Browse files Browse the repository at this point in the history
  • Loading branch information
intr3p1d committed Mar 18, 2024
1 parent 87913a1 commit 7d8514e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 18 deletions.
21 changes: 12 additions & 9 deletions plugins/resttemplate/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
<executions>
<execution>
<phase>generate-sources</phase>
<goals><goal>add-source</goal></goals>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/main/java-spring</source>
Expand All @@ -58,21 +60,22 @@
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<executions>
<execution>
<id>delete-springframework-files</id>
<phase>install</phase>
<goals>
<goal>exec</goal>
<goal>clean</goal>
</goals>
<configuration>
<executable>rm</executable>
<arguments>
<argument>-rf</argument>
<argument>${project.build.directory}/classes/org/springframework</argument>
</arguments>
<excludeDefaultDirectories>true</excludeDefaultDirectories>
<filesets>
<fileset>
<directory>${project.build.directory}/classes/org/springframework</directory>
</fileset>
</filesets>
</configuration>
</execution>
</executions>
Expand Down
21 changes: 12 additions & 9 deletions plugins/spring-webflux/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@
<executions>
<execution>
<phase>generate-sources</phase>
<goals><goal>add-source</goal></goals>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/main/java-spring</source>
Expand All @@ -78,21 +80,22 @@
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<executions>
<execution>
<id>delete-springframework-files</id>
<phase>install</phase>
<goals>
<goal>exec</goal>
<goal>clean</goal>
</goals>
<configuration>
<executable>rm</executable>
<arguments>
<argument>-rf</argument>
<argument>${project.build.directory}/classes/org/springframework</argument>
</arguments>
<excludeDefaultDirectories>true</excludeDefaultDirectories>
<filesets>
<fileset>
<directory>${project.build.directory}/classes/org/springframework</directory>
</fileset>
</filesets>
</configuration>
</execution>
</executions>
Expand Down

0 comments on commit 7d8514e

Please sign in to comment.