Skip to content

Commit c49ff8b

Browse files
committed
troubleshoot bom problem
1 parent c19c4f3 commit c49ff8b

File tree

2 files changed

+310
-17
lines changed

2 files changed

+310
-17
lines changed

dependency-bundles/bom/pom.xml

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,149 @@
289289
</property>
290290
</activation>
291291
<build>
292+
<pluginManagement>
293+
<plugins>
294+
<plugin>
295+
<groupId>org.apache.maven.plugins</groupId>
296+
<artifactId>maven-source-plugin</artifactId>
297+
<version>3.3.1</version>
298+
<executions>
299+
<execution>
300+
<id>attach-sources</id>
301+
<phase>package</phase>
302+
<goals>
303+
<goal>jar-no-fork</goal>
304+
</goals>
305+
</execution>
306+
</executions>
307+
</plugin>
308+
<plugin>
309+
<groupId>org.projectlombok</groupId>
310+
<artifactId>lombok-maven-plugin</artifactId>
311+
<version>1.18.20.0</version>
312+
<executions>
313+
<execution>
314+
<id>delombok</id>
315+
<phase>process-sources</phase>
316+
<goals>
317+
<goal>delombok</goal>
318+
</goals>
319+
<configuration>
320+
<sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
321+
<outputDirectory>${project.build.directory}/delombok</outputDirectory>
322+
</configuration>
323+
</execution>
324+
</executions>
325+
<dependencies>
326+
<dependency>
327+
<groupId>org.projectlombok</groupId>
328+
<artifactId>lombok</artifactId>
329+
<version>1.18.38</version>
330+
</dependency>
331+
</dependencies>
332+
<configuration>
333+
<addOutputDirectory>false</addOutputDirectory>
334+
</configuration>
335+
</plugin>
336+
<plugin>
337+
<groupId>org.apache.maven.plugins</groupId>
338+
<artifactId>maven-javadoc-plugin</artifactId>
339+
<version>3.11.2</version>
340+
<executions>
341+
<execution>
342+
<id>javadoc-jar</id>
343+
<goals>
344+
<goal>jar</goal>
345+
</goals>
346+
</execution>
347+
</executions>
348+
<configuration>
349+
<quiet>true</quiet>
350+
<additionalOptions>-Xdoclint:none</additionalOptions>
351+
<show>protected</show>
352+
<sourcepath>${project.basedir}/target/delombok</sourcepath>
353+
</configuration>
354+
</plugin>
355+
<plugin>
356+
<groupId>org.apache.maven.plugins</groupId>
357+
<artifactId>maven-install-plugin</artifactId>
358+
<version>3.1.4</version>
359+
<executions>
360+
<execution>
361+
<phase>install</phase>
362+
<goals>
363+
<goal>install-file</goal>
364+
</goals>
365+
<configuration>
366+
<file>${project.basedir}/target/${project.artifactId}-${project.version}.jar</file>
367+
<sources>${project.basedir}/target/${project.artifactId}-${project.version}-sources.jar</sources>
368+
<javadoc>${project.basedir}/target/${project.artifactId}-${project.version}-javadoc.jar</javadoc>
369+
<pomFile>${project.basedir}/pom.xml</pomFile>
370+
<groupId>${project.groupId}</groupId>
371+
<artifactId>${project.artifactId}</artifactId>
372+
<version>${project.version}</version>
373+
<packaging>${project.packaging}</packaging>
374+
</configuration>
375+
</execution>
376+
</executions>
377+
</plugin>
378+
<!-- Skip default deploy plugin in favor of central-publishing-maven-plugin -->
379+
<plugin>
380+
<groupId>org.apache.maven.plugins</groupId>
381+
<artifactId>maven-deploy-plugin</artifactId>
382+
<version>3.1.4</version>
383+
<configuration>
384+
<skip>true</skip>
385+
</configuration>
386+
</plugin>
387+
<plugin>
388+
<groupId>org.sonatype.central</groupId>
389+
<artifactId>central-publishing-maven-plugin</artifactId>
390+
<version>0.8.0</version>
391+
<extensions>true</extensions>
392+
<configuration>
393+
<deploymentName>SAP AI SDK ${project.version}</deploymentName>
394+
<publishingServerId>central</publishingServerId>
395+
<autoPublish>false</autoPublish>
396+
</configuration>
397+
</plugin>
398+
</plugins>
399+
</pluginManagement>
292400
<plugins>
401+
<!-- The release artifacts don't contain our custom config files for these plugins -->
402+
<plugin>
403+
<groupId>org.apache.maven.plugins</groupId>
404+
<artifactId>maven-checkstyle-plugin</artifactId>
405+
<configuration>
406+
<skip>true</skip>
407+
</configuration>
408+
</plugin>
409+
<plugin>
410+
<groupId>org.apache.maven.plugins</groupId>
411+
<artifactId>maven-pmd-plugin</artifactId>
412+
<configuration>
413+
<skip>true</skip>
414+
</configuration>
415+
</plugin>
416+
<plugin>
417+
<groupId>com.github.spotbugs</groupId>
418+
<artifactId>spotbugs-maven-plugin</artifactId>
419+
<configuration>
420+
<skip>true</skip>
421+
</configuration>
422+
</plugin>
423+
<plugin>
424+
<groupId>org.apache.maven.plugins</groupId>
425+
<artifactId>maven-source-plugin</artifactId>
426+
</plugin>
427+
<plugin>
428+
<groupId>org.projectlombok</groupId>
429+
<artifactId>lombok-maven-plugin</artifactId>
430+
</plugin>
431+
<plugin>
432+
<groupId>org.apache.maven.plugins</groupId>
433+
<artifactId>maven-javadoc-plugin</artifactId>
434+
</plugin>
293435
<plugin>
294436
<groupId>org.apache.maven.plugins</groupId>
295437
<artifactId>maven-install-plugin</artifactId>

dependency-bundles/modules-bom/pom.xml

Lines changed: 168 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -222,35 +222,186 @@
222222
</property>
223223
</activation>
224224
<build>
225+
<pluginManagement>
226+
<plugins>
227+
<plugin>
228+
<groupId>org.apache.maven.plugins</groupId>
229+
<artifactId>maven-source-plugin</artifactId>
230+
<version>3.3.1</version>
231+
<executions>
232+
<execution>
233+
<id>attach-sources</id>
234+
<phase>package</phase>
235+
<goals>
236+
<goal>jar-no-fork</goal>
237+
</goals>
238+
</execution>
239+
</executions>
240+
</plugin>
241+
<plugin>
242+
<groupId>org.projectlombok</groupId>
243+
<artifactId>lombok-maven-plugin</artifactId>
244+
<version>1.18.20.0</version>
245+
<executions>
246+
<execution>
247+
<id>delombok</id>
248+
<phase>process-sources</phase>
249+
<goals>
250+
<goal>delombok</goal>
251+
</goals>
252+
<configuration>
253+
<sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
254+
<outputDirectory>${project.build.directory}/delombok</outputDirectory>
255+
</configuration>
256+
</execution>
257+
</executions>
258+
<dependencies>
259+
<dependency>
260+
<groupId>org.projectlombok</groupId>
261+
<artifactId>lombok</artifactId>
262+
<version>1.18.38</version>
263+
</dependency>
264+
</dependencies>
265+
<configuration>
266+
<addOutputDirectory>false</addOutputDirectory>
267+
</configuration>
268+
</plugin>
269+
<plugin>
270+
<groupId>org.apache.maven.plugins</groupId>
271+
<artifactId>maven-javadoc-plugin</artifactId>
272+
<version>3.11.2</version>
273+
<executions>
274+
<execution>
275+
<id>javadoc-jar</id>
276+
<goals>
277+
<goal>jar</goal>
278+
</goals>
279+
</execution>
280+
</executions>
281+
<configuration>
282+
<quiet>true</quiet>
283+
<additionalOptions>-Xdoclint:none</additionalOptions>
284+
<show>protected</show>
285+
<sourcepath>${project.basedir}/target/delombok</sourcepath>
286+
</configuration>
287+
</plugin>
288+
<plugin>
289+
<groupId>org.apache.maven.plugins</groupId>
290+
<artifactId>maven-gpg-plugin</artifactId>
291+
<version>3.2.7</version>
292+
<executions>
293+
<execution>
294+
<id>sign-artifacts</id>
295+
<phase>verify</phase>
296+
<goals>
297+
<goal>sign</goal>
298+
</goals>
299+
</execution>
300+
</executions>
301+
</plugin>
302+
<plugin>
303+
<groupId>org.apache.maven.plugins</groupId>
304+
<artifactId>maven-install-plugin</artifactId>
305+
<version>3.1.4</version>
306+
<executions>
307+
<execution>
308+
<phase>install</phase>
309+
<goals>
310+
<goal>install-file</goal>
311+
</goals>
312+
<configuration>
313+
<file>${project.basedir}/target/${project.artifactId}-${project.version}.jar</file>
314+
<sources>${project.basedir}/target/${project.artifactId}-${project.version}-sources.jar</sources>
315+
<javadoc>${project.basedir}/target/${project.artifactId}-${project.version}-javadoc.jar</javadoc>
316+
<pomFile>${project.basedir}/pom.xml</pomFile>
317+
<groupId>${project.groupId}</groupId>
318+
<artifactId>${project.artifactId}</artifactId>
319+
<version>${project.version}</version>
320+
<packaging>${project.packaging}</packaging>
321+
</configuration>
322+
</execution>
323+
</executions>
324+
</plugin>
325+
<!-- Skip default deploy plugin in favor of central-publishing-maven-plugin -->
326+
<plugin>
327+
<groupId>org.apache.maven.plugins</groupId>
328+
<artifactId>maven-deploy-plugin</artifactId>
329+
<version>3.1.4</version>
330+
<configuration>
331+
<skip>true</skip>
332+
</configuration>
333+
</plugin>
334+
<plugin>
335+
<groupId>org.sonatype.central</groupId>
336+
<artifactId>central-publishing-maven-plugin</artifactId>
337+
<version>0.8.0</version>
338+
<extensions>true</extensions>
339+
<configuration>
340+
<deploymentName>SAP AI SDK ${project.version}</deploymentName>
341+
<publishingServerId>central</publishingServerId>
342+
<autoPublish>false</autoPublish>
343+
</configuration>
344+
</plugin>
345+
</plugins>
346+
</pluginManagement>
225347
<plugins>
348+
<!-- The release artifacts don't contain our custom config files for these plugins -->
349+
<plugin>
350+
<groupId>org.apache.maven.plugins</groupId>
351+
<artifactId>maven-checkstyle-plugin</artifactId>
352+
<configuration>
353+
<skip>true</skip>
354+
</configuration>
355+
</plugin>
356+
<plugin>
357+
<groupId>org.apache.maven.plugins</groupId>
358+
<artifactId>maven-pmd-plugin</artifactId>
359+
<configuration>
360+
<skip>true</skip>
361+
</configuration>
362+
</plugin>
363+
<plugin>
364+
<groupId>com.github.spotbugs</groupId>
365+
<artifactId>spotbugs-maven-plugin</artifactId>
366+
<configuration>
367+
<skip>true</skip>
368+
</configuration>
369+
</plugin>
370+
<plugin>
371+
<groupId>org.apache.maven.plugins</groupId>
372+
<artifactId>maven-source-plugin</artifactId>
373+
</plugin>
374+
<plugin>
375+
<groupId>org.projectlombok</groupId>
376+
<artifactId>lombok-maven-plugin</artifactId>
377+
</plugin>
378+
<plugin>
379+
<groupId>org.apache.maven.plugins</groupId>
380+
<artifactId>maven-javadoc-plugin</artifactId>
381+
</plugin>
382+
<plugin>
383+
<groupId>org.apache.maven.plugins</groupId>
384+
<artifactId>maven-gpg-plugin</artifactId>
385+
</plugin>
386+
<!-- The plugins configuration below will not be inherited by children projects, they are specific to the parent pom -->
226387
<plugin>
227388
<groupId>org.apache.maven.plugins</groupId>
228389
<artifactId>maven-install-plugin</artifactId>
229-
<version>3.1.4</version>
230390
<executions>
231391
<execution>
232-
<phase>install</phase>
233-
<goals>
234-
<goal>install-file</goal>
235-
</goals>
236392
<configuration>
393+
<file>${project.basedir}/pom.xml</file>
394+
<!-- The parent has no sources -->
395+
<sources>${empty.property}</sources>
396+
<javadoc>${empty.property}</javadoc>
237397
</configuration>
238398
</execution>
239399
</executions>
400+
<inherited>false</inherited>
240401
</plugin>
241402
<plugin>
242-
<groupId>org.apache.maven.plugins</groupId>
243-
<artifactId>maven-gpg-plugin</artifactId>
244-
<version>3.2.7</version>
245-
<executions>
246-
<execution>
247-
<id>sign-artifacts</id>
248-
<phase>verify</phase>
249-
<goals>
250-
<goal>sign</goal>
251-
</goals>
252-
</execution>
253-
</executions>
403+
<groupId>org.sonatype.central</groupId>
404+
<artifactId>central-publishing-maven-plugin</artifactId>
254405
</plugin>
255406
</plugins>
256407
</build>

0 commit comments

Comments
 (0)