Skip to content

Commit 6383eb1

Browse files
committed
Simplify clean-up of flatten-maven-plugin
1 parent e4b61be commit 6383eb1

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ target/
1919
*.iws
2020
/out
2121
dependency-reduced-pom.xml
22-
.flattened-pom.xml

log4j-tools-parent/pom.xml

-7
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,6 @@
157157
<goal>flatten</goal>
158158
</goals>
159159
</execution>
160-
<execution>
161-
<id>clean-flattened-revision</id>
162-
<phase>clean</phase>
163-
<goals>
164-
<goal>clean</goal>
165-
</goals>
166-
</execution>
167160
</executions>
168161
</plugin>
169162

pom.xml

+5-7
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@
9090
<groupId>org.codehaus.mojo</groupId>
9191
<artifactId>flatten-maven-plugin</artifactId>
9292
<version>${flatten-maven-plugin.version}</version>
93+
<configuration>
94+
<!-- Setting `outputDirectory` to `project.build.directory`, which is cleaned by `default-clean` execution of `clean:clean`.
95+
This makes `flatten:clean` redundant. -->
96+
<outputDirectory>${project.build.directory}</outputDirectory>
97+
</configuration>
9398
</plugin>
9499
</plugins>
95100
</pluginManagement>
@@ -126,13 +131,6 @@
126131
</pomElements>
127132
</configuration>
128133
</execution>
129-
<execution>
130-
<id>clean-flattened-bom</id>
131-
<phase>clean</phase>
132-
<goals>
133-
<goal>clean</goal>
134-
</goals>
135-
</execution>
136134
</executions>
137135
</plugin>
138136

0 commit comments

Comments
 (0)