]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
DRYD-1712/DRYD-1715: only run `git-commit-id-plugin` once (#457)
authorAnthony Bucci <anthony@bucci.onl>
Fri, 21 Mar 2025 19:52:01 +0000 (15:52 -0400)
committerMichael Ritter <mike.ritter@lyrasis.org>
Fri, 21 Mar 2025 20:03:53 +0000 (14:03 -0600)
* DRYD-1712/DRYD-1715: removed git-commit-id-plugin from topmost pom, which was inherited by all child poms, and instead placed it in JaxRsServiceProvider. This is the only project that needs it, since this is where the WAR is created and that's where systeminfo picks it up.

---------

Co-authored-by: Anthony Bucci <abucci@bucci.onl>
pom.xml
services/JaxRsServiceProvider/pom.xml

diff --git a/pom.xml b/pom.xml
index 230c7b37aaf310656007edc9b9bf22c8e4890616..8f3f5d437ed80aaa0a65daf918325904c9d59075 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                                                </archive>
                                        </configuration>
                                </plugin>
-
-                               <plugin>
-                                       <groupId>pl.project13.maven</groupId>
-                                       <artifactId>git-commit-id-plugin</artifactId>
-                                       <version>4.9.10</version>
-                                       <executions>
-                                               <execution>
-                                                       <goals>
-                                                               <goal>revision</goal>
-                                                       </goals>
-                                                       <phase>initialize</phase>
-                                               </execution>
-                                       </executions>
-                                       <configuration>
-                                               <generateGitPropertiesFile>true</generateGitPropertiesFile>
-                                               <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
-                                               <includeOnlyProperties>
-                                                       <includeOnlyProperty>^git.commit.id.abbrev$</includeOnlyProperty>
-                                               </includeOnlyProperties>
-                                               <commitIdGenerationMode>full</commitIdGenerationMode>
-                                       </configuration>
-                               </plugin>
-
                                <plugin>
                                        <groupId>org.apache.maven.plugins</groupId>
                                        <artifactId>maven-dependency-plugin</artifactId>
                     </files>
                 </configuration>
             </plugin>
-
-                       <plugin>
-                               <groupId>pl.project13.maven</groupId>
-                               <artifactId>git-commit-id-plugin</artifactId>
-                       </plugin>
                </plugins>
        </build>
 
index 89eb6473562a0a345c2a877ad63f2e8aeb9a6f1a..d574297c07e463548bd7f7ca7cd5b8efb7b348d9 100644 (file)
                     </execution>
                 </executions>
             </plugin>
+                       <plugin>
+                               <groupId>pl.project13.maven</groupId>
+                               <artifactId>git-commit-id-plugin</artifactId>
+                               <version>4.9.10</version>
+                               <executions>
+                                       <execution>
+                                               <goals>
+                                                       <goal>revision</goal>
+                                               </goals>
+                                               <phase>initialize</phase>
+                                       </execution>
+                               </executions>
+                               <configuration>
+                                       <generateGitPropertiesFile>true</generateGitPropertiesFile>
+                                       <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
+                                       <includeOnlyProperties>
+                                                       <includeOnlyProperty>^git.commit.id.abbrev$</includeOnlyProperty>
+                                               </includeOnlyProperties>
+                                               <commitIdGenerationMode>full</commitIdGenerationMode>
+                                       </configuration>
+                               </plugin>
             <plugin>
                 <groupId>org.codehaus.cargo</groupId>
                 <artifactId>cargo-maven2-plugin</artifactId>