14
14
<project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
15
15
<modelVersion >4.0.0</modelVersion >
16
16
17
- <parent >
18
- <groupId >org.sonatype.oss</groupId >
19
- <artifactId >oss-parent</artifactId >
20
- <version >9</version >
21
- </parent >
22
-
23
17
<groupId >org.eclipse.sisu</groupId >
24
18
<artifactId >sisu-plexus</artifactId >
25
19
<version >0.9.0-SNAPSHOT</version >
77
71
<url >https://ci.eclipse.org/sisu/job/sisu.plexus/</url >
78
72
</ciManagement >
79
73
74
+ <repositories >
75
+ <repository >
76
+ <id >sonatype-nexus-snapshots</id >
77
+ <name >Sonatype Nexus Snapshots</name >
78
+ <url >https://oss.sonatype.org/content/repositories/snapshots</url >
79
+ <releases >
80
+ <enabled >false</enabled >
81
+ </releases >
82
+ <snapshots >
83
+ <enabled >true</enabled >
84
+ </snapshots >
85
+ </repository >
86
+ </repositories >
87
+
88
+ <distributionManagement >
89
+ <snapshotRepository >
90
+ <id >sonatype-nexus-snapshots</id >
91
+ <name >Sonatype Nexus Snapshots</name >
92
+ <url >https://oss.sonatype.org/content/repositories/snapshots/</url >
93
+ </snapshotRepository >
94
+ <repository >
95
+ <id >sonatype-nexus-staging</id >
96
+ <name >Nexus Release Repository</name >
97
+ <url >https://oss.sonatype.org/service/local/staging/deploy/maven2/</url >
98
+ </repository >
99
+ </distributionManagement >
100
+
80
101
<properties >
81
102
<maven .compiler.release>8</maven .compiler.release>
82
- <!-- These two below are NOT used as release above is set, but are linked to it's value to keep things sane -->
103
+ <!-- Set to same version as release target for consistency -->
83
104
<maven .compiler.source>1.${maven.compiler.release} </maven .compiler.source>
84
105
<maven .compiler.target>1.${maven.compiler.release} </maven .compiler.target>
106
+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
85
107
86
108
<mavenBuildVersion >3.6.3</mavenBuildVersion >
87
109
<javaBuildVersion >11</javaBuildVersion >
92
114
<plugins >
93
115
<plugin >
94
116
<groupId >org.apache.maven.plugins</groupId >
95
- <artifactId >maven-antrun-plugin</artifactId >
96
- <version >3.1.0</version >
117
+ <artifactId >maven-enforcer-plugin</artifactId >
118
+ <version >3.2.1</version >
119
+ <configuration >
120
+ <rules >
121
+ <enforceBytecodeVersion >
122
+ <maxJdkVersion >${maven.compiler.target} </maxJdkVersion >
123
+ <excludes >
124
+ <!-- Used in tests only -->
125
+ <exclude >org.junit.jupiter:junit-jupiter-api</exclude >
126
+ <exclude >org.junit.platform:junit-platform-commons</exclude >
127
+ <exclude >org.apache.felix:org.apache.felix.framework:jar:7.0.5</exclude >
128
+ </excludes >
129
+ </enforceBytecodeVersion >
130
+ <requireMavenVersion >
131
+ <version >${mavenBuildVersion} </version >
132
+ </requireMavenVersion >
133
+ <requireJavaVersion >
134
+ <version >${javaBuildVersion} </version >
135
+ </requireJavaVersion >
136
+ </rules >
137
+ </configuration >
138
+ <executions >
139
+ <execution >
140
+ <id >enforce-versions</id >
141
+ <goals >
142
+ <goal >enforce</goal >
143
+ </goals >
144
+ </execution >
145
+ </executions >
146
+ <dependencies >
147
+ <dependency >
148
+ <groupId >org.codehaus.mojo</groupId >
149
+ <artifactId >extra-enforcer-rules</artifactId >
150
+ <version >1.6.1</version >
151
+ </dependency >
152
+ </dependencies >
97
153
</plugin >
98
154
<plugin >
99
155
<groupId >org.apache.maven.plugins</groupId >
@@ -193,23 +249,34 @@ Bundle-DocURL: http://www.eclipse.org/sisu/
193
249
<artifactId >jacoco-maven-plugin</artifactId >
194
250
<version >0.8.8</version >
195
251
</plugin >
196
- <plugin >
197
- <groupId >org.sonatype.plugins</groupId >
198
- <artifactId >nexus-staging-maven-plugin</artifactId >
199
- <version >1.6.13</version >
200
- </plugin >
201
252
<plugin >
202
253
<groupId >org.apache.maven.plugins</groupId >
203
254
<artifactId >maven-release-plugin</artifactId >
204
255
<version >3.0.0</version >
205
256
<configuration >
206
257
<dryRun >true</dryRun > <!-- releases are made using the prepare/perform_milestone.sh scripts -->
258
+ <mavenExecutorId >forked-path</mavenExecutorId >
259
+ <useReleaseProfile >false</useReleaseProfile >
260
+ <arguments >-Psonatype-oss-release</arguments >
207
261
</configuration >
208
262
</plugin >
263
+ <plugin >
264
+ <groupId >org.apache.maven.plugins</groupId >
265
+ <artifactId >maven-site-plugin</artifactId >
266
+ <version >3.12.1</version >
267
+ </plugin >
209
268
<plugin >
210
269
<groupId >org.apache.maven.plugins</groupId >
211
270
<artifactId >maven-source-plugin</artifactId >
212
271
<version >3.2.1</version >
272
+ <executions >
273
+ <execution >
274
+ <id >attach-sources</id >
275
+ <goals >
276
+ <goal >jar-no-fork</goal >
277
+ </goals >
278
+ </execution >
279
+ </executions >
213
280
</plugin >
214
281
<plugin >
215
282
<groupId >org.apache.maven.plugins</groupId >
@@ -222,11 +289,47 @@ Bundle-DocURL: http://www.eclipse.org/sisu/
222
289
<detectOfflineLinks >false</detectOfflineLinks >
223
290
<quiet >true</quiet >
224
291
</configuration >
292
+ <executions >
293
+ <execution >
294
+ <id >attach-javadocs</id >
295
+ <goals >
296
+ <goal >jar</goal >
297
+ </goals >
298
+ </execution >
299
+ </executions >
225
300
</plugin >
226
301
<plugin >
227
302
<groupId >org.apache.maven.plugins</groupId >
228
- <artifactId >maven-site-plugin</artifactId >
229
- <version >3.12.1</version >
303
+ <artifactId >maven-gpg-plugin</artifactId >
304
+ <version >3.0.1</version >
305
+ <configuration >
306
+ <passphrase >${gpg.passphrase} </passphrase >
307
+ <useAgent >true</useAgent >
308
+ </configuration >
309
+ <executions >
310
+ <execution >
311
+ <id >sign-artifacts</id >
312
+ <phase >verify</phase >
313
+ <goals >
314
+ <goal >sign</goal >
315
+ </goals >
316
+ </execution >
317
+ </executions >
318
+ </plugin >
319
+ <plugin >
320
+ <groupId >org.sonatype.plugins</groupId >
321
+ <artifactId >nexus-staging-maven-plugin</artifactId >
322
+ <version >1.6.13</version >
323
+ <extensions >true</extensions >
324
+ <configuration >
325
+ <nexusUrl >https://oss.sonatype.org/</nexusUrl >
326
+ <serverId >sonatype-nexus-staging</serverId >
327
+ </configuration >
328
+ </plugin >
329
+ <plugin >
330
+ <groupId >org.apache.maven.plugins</groupId >
331
+ <artifactId >maven-project-info-reports-plugin</artifactId >
332
+ <version >3.4.2</version >
230
333
</plugin >
231
334
<plugin >
232
335
<groupId >com.diffplug.spotless</groupId >
@@ -235,59 +338,11 @@ Bundle-DocURL: http://www.eclipse.org/sisu/
235
338
</plugin >
236
339
</plugins >
237
340
</pluginManagement >
341
+
238
342
<plugins >
239
343
<plugin >
240
- <!-- Must have it here as pluginMgmt would NOT override since parent POM defined it here as well -->
241
344
<groupId >org.apache.maven.plugins</groupId >
242
345
<artifactId >maven-enforcer-plugin</artifactId >
243
- <version >3.2.1</version >
244
- <executions >
245
- <execution >
246
- <id >enforce-maven</id >
247
- <goals >
248
- <goal >enforce</goal >
249
- </goals >
250
- <configuration >
251
- <rules >
252
- <enforceBytecodeVersion >
253
- <maxJdkVersion >${maven.compiler.target} </maxJdkVersion >
254
- <excludes >
255
- <!-- Used in tests only -->
256
- <exclude >org.junit.jupiter:junit-jupiter-api</exclude >
257
- <exclude >org.junit.platform:junit-platform-commons</exclude >
258
- <exclude >org.apache.felix:org.apache.felix.framework:jar:7.0.5</exclude >
259
- </excludes >
260
- </enforceBytecodeVersion >
261
- <requireMavenVersion >
262
- <version >${mavenBuildVersion} </version >
263
- </requireMavenVersion >
264
- <requireJavaVersion >
265
- <version >${javaBuildVersion} </version >
266
- </requireJavaVersion >
267
- </rules >
268
- </configuration >
269
- </execution >
270
- </executions >
271
- <dependencies >
272
- <dependency >
273
- <groupId >org.codehaus.mojo</groupId >
274
- <artifactId >extra-enforcer-rules</artifactId >
275
- <version >1.6.1</version >
276
- </dependency >
277
- </dependencies >
278
- </plugin >
279
- <plugin >
280
- <groupId >org.apache.maven.plugins</groupId >
281
- <artifactId >maven-source-plugin</artifactId >
282
- <executions >
283
- <execution >
284
- <id >attach-sources</id >
285
- <phase >verify</phase >
286
- <goals >
287
- <goal >jar-no-fork</goal >
288
- </goals >
289
- </execution >
290
- </executions >
291
346
</plugin >
292
347
</plugins >
293
348
</build >
@@ -297,7 +352,6 @@ Bundle-DocURL: http://www.eclipse.org/sisu/
297
352
<plugin >
298
353
<groupId >org.apache.maven.plugins</groupId >
299
354
<artifactId >maven-project-info-reports-plugin</artifactId >
300
- <version >3.4.2</version >
301
355
</plugin >
302
356
</plugins >
303
357
</reporting >
@@ -333,27 +387,25 @@ Bundle-DocURL: http://www.eclipse.org/sisu/
333
387
<id >sonatype-oss-release</id >
334
388
<build >
335
389
<plugins >
390
+ <plugin >
391
+ <groupId >org.apache.maven.plugins</groupId >
392
+ <artifactId >maven-source-plugin</artifactId >
393
+ </plugin >
394
+ <plugin >
395
+ <groupId >org.apache.maven.plugins</groupId >
396
+ <artifactId >maven-javadoc-plugin</artifactId >
397
+ </plugin >
336
398
<plugin >
337
399
<groupId >org.apache.maven.plugins</groupId >
338
400
<artifactId >maven-gpg-plugin</artifactId >
339
- <version >3.0.1</version >
340
- <configuration >
341
- <passphrase >${gpg.passphrase} </passphrase >
342
- <useAgent >true</useAgent >
343
- </configuration >
344
401
</plugin >
345
402
<plugin >
346
- <extensions >true</extensions >
347
403
<groupId >org.sonatype.plugins</groupId >
348
404
<artifactId >nexus-staging-maven-plugin</artifactId >
349
- <configuration >
350
- <nexusUrl >https://oss.sonatype.org/</nexusUrl >
351
- <serverId >sonatype-nexus-staging</serverId >
352
- </configuration >
405
+ <extensions >true</extensions >
353
406
</plugin >
354
407
</plugins >
355
408
</build >
356
409
</profile >
357
410
</profiles >
358
-
359
411
</project >
0 commit comments