Skip to content

Commit 7e723e5

Browse files
authored
Minor pom.xml refactor (#192)
1 parent 54be9db commit 7e723e5

File tree

5 files changed

+67
-37
lines changed

5 files changed

+67
-37
lines changed

ecs-logging-core/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
<build>
1616
<plugins>
1717
<plugin>
18-
<groupId>org.apache.maven.plugins</groupId>
1918
<artifactId>maven-jar-plugin</artifactId>
20-
<version>3.1.2</version>
2119
<executions>
2220
<execution>
2321
<goals>

log4j-ecs-layout/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
<build>
1818
<plugins>
1919
<plugin>
20-
<groupId>org.apache.maven.plugins</groupId>
2120
<artifactId>maven-jar-plugin</artifactId>
22-
<version>3.1.2</version>
2321
<executions>
2422
<execution>
2523
<goals>

log4j2-ecs-layout/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
<build>
1919
<plugins>
2020
<plugin>
21-
<groupId>org.apache.maven.plugins</groupId>
2221
<artifactId>maven-compiler-plugin</artifactId>
23-
<version>3.1</version>
2422
<executions>
2523
<execution>
2624
<id>log4j-plugin-processor</id>
@@ -39,9 +37,7 @@
3937
</executions>
4038
</plugin>
4139
<plugin>
42-
<groupId>org.apache.maven.plugins</groupId>
4340
<artifactId>maven-jar-plugin</artifactId>
44-
<version>3.1.2</version>
4541
<executions>
4642
<execution>
4743
<goals>

logback-ecs-encoder/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
<build>
1818
<plugins>
1919
<plugin>
20-
<groupId>org.apache.maven.plugins</groupId>
2120
<artifactId>maven-jar-plugin</artifactId>
22-
<version>3.1.2</version>
2321
<executions>
2422
<execution>
2523
<goals>

pom.xml

Lines changed: 67 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,7 @@
122122
<build>
123123
<plugins>
124124
<plugin>
125-
<groupId>org.apache.maven.plugins</groupId>
126125
<artifactId>maven-release-plugin</artifactId>
127-
<version>2.5.3</version>
128126
<configuration>
129127
<useReleaseProfile>false</useReleaseProfile>
130128
<releaseProfiles>gpg</releaseProfiles>
@@ -133,17 +131,13 @@
133131
</configuration>
134132
</plugin>
135133
<plugin>
136-
<groupId>org.apache.maven.plugins</groupId>
137134
<artifactId>maven-deploy-plugin</artifactId>
138-
<version>2.8.2</version>
139135
<configuration>
140136
<skip>${maven-deploy-plugin.skip}</skip>
141137
</configuration>
142138
</plugin>
143139
<plugin>
144-
<groupId>org.apache.maven.plugins</groupId>
145140
<artifactId>maven-source-plugin</artifactId>
146-
<version>3.1.0</version>
147141
<executions>
148142
<execution>
149143
<id>generate-source-jar</id>
@@ -155,9 +149,7 @@
155149
</executions>
156150
</plugin>
157151
<plugin>
158-
<groupId>org.apache.maven.plugins</groupId>
159152
<artifactId>maven-javadoc-plugin</artifactId>
160-
<version>3.1.1</version>
161153
<configuration>
162154
<additionalOptions>-html5</additionalOptions>
163155
<source>${maven.compiler.target}</source>
@@ -174,7 +166,6 @@
174166
<plugin>
175167
<groupId>org.codehaus.mojo</groupId>
176168
<artifactId>animal-sniffer-maven-plugin</artifactId>
177-
<version>1.18</version>
178169
<executions>
179170
<execution>
180171
<id>signature-check</id>
@@ -195,28 +186,13 @@
195186

196187
<plugin>
197188
<artifactId>maven-surefire-plugin</artifactId>
198-
<version>2.19.1</version>
199189
<configuration>
200190
<enableAssertions>true</enableAssertions>
201191
<trimStackTrace>false</trimStackTrace>
202192
</configuration>
203-
<dependencies>
204-
<dependency>
205-
<groupId>org.junit.platform</groupId>
206-
<artifactId>junit-platform-surefire-provider</artifactId>
207-
<version>1.1.1</version>
208-
</dependency>
209-
<dependency>
210-
<groupId>org.junit.jupiter</groupId>
211-
<artifactId>junit-jupiter-engine</artifactId>
212-
<version>${version.junit-jupiter}</version>
213-
</dependency>
214-
</dependencies>
215193
</plugin>
216194
<plugin>
217-
<groupId>org.apache.maven.plugins</groupId>
218195
<artifactId>maven-compiler-plugin</artifactId>
219-
<version>3.8.1</version>
220196
<configuration>
221197
<source>${maven.compiler.target}</source>
222198
<target>${maven.compiler.target}</target>
@@ -228,7 +204,6 @@
228204
<plugin>
229205
<groupId>com.coderplus.maven.plugins</groupId>
230206
<artifactId>copy-rename-maven-plugin</artifactId>
231-
<version>1.0</version>
232207
<executions>
233208
<execution>
234209
<id>copy-file</id>
@@ -239,7 +214,7 @@
239214
<configuration>
240215
<fileSets>
241216
<fileSet>
242-
<sourceFile>../LICENSE</sourceFile>
217+
<sourceFile>${parent.base.dir}/LICENSE</sourceFile>
243218
<destinationFile>target/classes/META-INF/LICENSE</destinationFile>
244219
</fileSet>
245220
</fileSets>
@@ -250,7 +225,6 @@
250225
<plugin>
251226
<groupId>org.codehaus.mojo</groupId>
252227
<artifactId>license-maven-plugin</artifactId>
253-
<version>1.19</version>
254228
<configuration>
255229
<verbose>false</verbose>
256230
<licenseName>apache2_license</licenseName>
@@ -283,6 +257,72 @@
283257
</executions>
284258
</plugin>
285259
</plugins>
260+
261+
<pluginManagement>
262+
<plugins>
263+
<plugin>
264+
<artifactId>maven-jar-plugin</artifactId>
265+
<version>3.1.2</version>
266+
</plugin>
267+
<plugin>
268+
<artifactId>maven-compiler-plugin</artifactId>
269+
<version>3.8.1</version>
270+
</plugin>
271+
<plugin>
272+
<artifactId>maven-source-plugin</artifactId>
273+
<version>3.1.0</version>
274+
</plugin>
275+
<plugin>
276+
<artifactId>maven-javadoc-plugin</artifactId>
277+
<version>3.1.1</version>
278+
</plugin>
279+
<plugin>
280+
<artifactId>maven-surefire-plugin</artifactId>
281+
<version>2.19.1</version>
282+
<dependencies>
283+
<dependency>
284+
<groupId>org.junit.platform</groupId>
285+
<artifactId>junit-platform-surefire-provider</artifactId>
286+
<version>1.1.1</version>
287+
</dependency>
288+
<dependency>
289+
<groupId>org.junit.jupiter</groupId>
290+
<artifactId>junit-jupiter-engine</artifactId>
291+
<version>${version.junit-jupiter}</version>
292+
</dependency>
293+
</dependencies>
294+
</plugin>
295+
<plugin>
296+
<artifactId>maven-install-plugin</artifactId>
297+
<version>2.4</version>
298+
</plugin>
299+
<plugin>
300+
<artifactId>maven-release-plugin</artifactId>
301+
<version>2.5.3</version>
302+
</plugin>
303+
<plugin>
304+
<artifactId>maven-deploy-plugin</artifactId>
305+
<version>2.8.2</version>
306+
</plugin>
307+
<plugin>
308+
<groupId>org.codehaus.mojo</groupId>
309+
<artifactId>animal-sniffer-maven-plugin</artifactId>
310+
<version>1.18</version>
311+
</plugin>
312+
<plugin>
313+
<groupId>org.codehaus.mojo</groupId>
314+
<artifactId>license-maven-plugin</artifactId>
315+
<version>1.19</version>
316+
</plugin>
317+
<plugin>
318+
<groupId>com.coderplus.maven.plugins</groupId>
319+
<artifactId>copy-rename-maven-plugin</artifactId>
320+
<version>1.0</version>
321+
</plugin>
322+
323+
</plugins>
324+
</pluginManagement>
325+
286326
</build>
287327
<dependencies>
288328
<dependency>

0 commit comments

Comments
 (0)