Skip to content

Commit dee9417

Browse files
authored
Configure maven-resources-plugin in Root POM (#538)
Configures `maven-resources-plugin` in root POM, to set the version centrally.
1 parent a1471a7 commit dee9417

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

mustache-templates/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@
6060
<maven.compiler.release>17</maven.compiler.release>
6161
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
6262

63-
<!-- Build Plugin Versions -->
64-
<maven-resources-plugin.version>3.3.1</maven-resources-plugin.version>
65-
<!-- / Build Plugin Versions -->
66-
6763
<!-- Location of updated `.mustache` template files -->
6864
<original-mustache-templates-directory>src/main/resources/templates</original-mustache-templates-directory>
6965
<updated-mustache-templates-directory>${project.build.outputDirectory}/templates</updated-mustache-templates-directory>
@@ -73,9 +69,7 @@
7369
<plugins>
7470
<!-- Propagate Maven Project properties to any variables, such as '${project.version}' -->
7571
<plugin>
76-
<groupId>org.apache.maven.plugins</groupId>
7772
<artifactId>maven-resources-plugin</artifactId>
78-
<version>${maven-resources-plugin.version}</version>
7973
<executions>
8074
<execution>
8175
<id>propagate-maven-project-properties</id>

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
<maven-dependency-plugin.version>3.9.0</maven-dependency-plugin.version>
8686
<maven-deploy-plugin.version>3.1.4</maven-deploy-plugin.version>
8787
<maven-jar-plugin.version>3.4.2</maven-jar-plugin.version>
88+
<maven-resources-plugin.version>3.3.1</maven-resources-plugin.version>
8889
<!-- / Build Plugin Versions -->
8990

9091
<!-- Publish to Maven Central Repository -->
@@ -279,6 +280,12 @@
279280
<artifactId>openapi-generator-maven-plugin</artifactId>
280281
<version>${openapi-generator-maven-plugin.version}</version>
281282
</plugin>
283+
<!-- Common maven-resources-plugin Version -->
284+
<plugin>
285+
<groupId>org.apache.maven.plugins</groupId>
286+
<artifactId>maven-resources-plugin</artifactId>
287+
<version>${maven-resources-plugin.version}</version>
288+
</plugin>
282289
</plugins>
283290
</pluginManagement>
284291
<plugins>

0 commit comments

Comments
 (0)