]> source.dussan.org Git - aspectj.git/commitdiff
Use additional Maven Clean execution in 'libx'
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Fri, 9 Apr 2021 11:18:11 +0000 (18:18 +0700)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Fri, 9 Apr 2021 11:18:11 +0000 (18:18 +0700)
Before, the Maven Clean configuration overrode the one from the parent
POM. Now it leaves it intact, adding a separate module-specific
execution to delete the downloads and libraries.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
libx/pom.xml

index 4c4817e79d5f0908537f911126d7f46b5f9239a3..f3fb97e5e8bbf295cb2cd15e1d8355009d8d52bd 100644 (file)
       </plugin>
 
       <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-clean-plugin</artifactId>
-        <configuration>
-          <filesets>
-            <fileset>
-              <directory>.</directory>
-              <includes>
-                <include>ant/**</include>
-                <include>asm/**</include>
-                <include>commons/**</include>
-                <include>jarjar/**</include>
-                <include>jdiff/**</include>
-                <include>jdtcore-aj/**</include>
-                <include>junit/**</include>
-                <include>regexp/**</include>
-                <include>saxon/**</include>
-              </includes>
-              <followSymlinks>false</followSymlinks>
-            </fileset>
-          </filesets>
-        </configuration>
+        <executions>
+          <execution>
+            <id>clean-up-libs</id>
+            <phase>clean</phase>
+            <goals>
+              <goal>clean</goal>
+            </goals>
+            <configuration>
+              <filesets>
+                <fileset>
+                  <directory>.</directory>
+                  <includes>
+                    <include>ant/**</include>
+                    <include>asm/**</include>
+                    <include>commons/**</include>
+                    <include>jarjar/**</include>
+                    <include>jdiff/**</include>
+                    <include>jdtcore-aj/**</include>
+                    <include>junit/**</include>
+                    <include>regexp/**</include>
+                    <include>saxon/**</include>
+                  </includes>
+                  <followSymlinks>false</followSymlinks>
+                </fileset>
+              </filesets>
+            </configuration>
+          </execution>
+        </executions>
       </plugin>
 
     </plugins>