From e6a8d7c9d95184652744a1fb91985eb4046e0e4f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?L=C3=A9o=20Banno-Cloutier?=
 <leo.banno-cloutier@savoirfairelinux.com>
Date: Thu, 22 Jun 2023 13:59:05 -0400
Subject: [PATCH] pom.xml: don't call generate-versions.py in maven

Change-Id: I07f9fb7e298288383f5bbe2d93284593e05f4876
---
 ad-connector/pom.xml          | 23 -----------------------
 authentication-module/pom.xml | 23 -----------------------
 jams-ca/pom.xml               | 23 -----------------------
 jams-server/pom.xml           | 23 -----------------------
 ldap-connector/pom.xml        | 23 -----------------------
 5 files changed, 115 deletions(-)

diff --git a/ad-connector/pom.xml b/ad-connector/pom.xml
index d6959281..3ce8e4be 100644
--- a/ad-connector/pom.xml
+++ b/ad-connector/pom.xml
@@ -78,29 +78,6 @@
                     </execution>
                 </executions>
             </plugin>
-            <plugin>
-                <artifactId>exec-maven-plugin</artifactId>
-                <groupId>org.codehaus.mojo</groupId>
-                <version>${maven.exec.version}</version>
-                <executions>
-                    <execution>
-                        <id>Generate Version File</id>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>exec</goal>
-                        </goals>
-                        <configuration>
-                            <executable>python</executable>
-                            <arguments>
-                                <argument>../generate-versions.py</argument>
-                                <argument>net.jami.jams.ad.connector.ADConnector</argument>
-                                <argument>${revision}</argument>
-                                <argument>libs/${project.artifactId}.jar</argument>
-                            </arguments>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
         </plugins>
     </build>
 
diff --git a/authentication-module/pom.xml b/authentication-module/pom.xml
index bb759504..8488c454 100644
--- a/authentication-module/pom.xml
+++ b/authentication-module/pom.xml
@@ -84,29 +84,6 @@
                     </execution>
                 </executions>
             </plugin>
-            <plugin>
-                <artifactId>exec-maven-plugin</artifactId>
-                <groupId>org.codehaus.mojo</groupId>
-                <version>${maven.exec.version}</version>
-                <executions>
-                    <execution>
-                        <id>Generate Version File</id>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>exec</goal>
-                        </goals>
-                        <configuration>
-                            <executable>python</executable>
-                            <arguments>
-                                <argument>../generate-versions.py</argument>
-                                <argument>net.jami.jams.authmodule.UserAuthenticationModule</argument>
-                                <argument>${revision}</argument>
-                                <argument>libs/${project.artifactId}.jar</argument>
-                            </arguments>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
         </plugins>
     </build>
 
diff --git a/jams-ca/pom.xml b/jams-ca/pom.xml
index 741b9e3b..fcc292d6 100644
--- a/jams-ca/pom.xml
+++ b/jams-ca/pom.xml
@@ -66,29 +66,6 @@
                     </execution>
                 </executions>
             </plugin>
-            <plugin>
-                <artifactId>exec-maven-plugin</artifactId>
-                <groupId>org.codehaus.mojo</groupId>
-                <version>${maven.exec.version}</version>
-                <executions>
-                    <execution>
-                        <id>Generate Version File</id>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>exec</goal>
-                        </goals>
-                        <configuration>
-                            <executable>python</executable>
-                            <arguments>
-                                <argument>../generate-versions.py</argument>
-                                <argument>net.jami.jams.ca.JamsCA</argument>
-                                <argument>${revision}</argument>
-                                <argument>libs/${project.artifactId}.jar</argument>
-                            </arguments>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
         </plugins>
     </build>
 
diff --git a/jams-server/pom.xml b/jams-server/pom.xml
index c0df945e..b28f2bec 100644
--- a/jams-server/pom.xml
+++ b/jams-server/pom.xml
@@ -199,29 +199,6 @@
                     </execution>
                 </executions>
             </plugin>
-            <plugin>
-                <artifactId>exec-maven-plugin</artifactId>
-                <groupId>org.codehaus.mojo</groupId>
-                <version>${maven.exec.version}</version>
-                <executions>
-                    <execution>
-                        <id>Generate Version File</id>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>exec</goal>
-                        </goals>
-                        <configuration>
-                            <executable>python</executable>
-                            <arguments>
-                                <argument>../generate-versions.py</argument>
-                                <argument>net.jami.jams.server.Server</argument>
-                                <argument>${revision}</argument>
-                                <argument>${project.artifactId}.jar</argument>
-                            </arguments>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
             <plugin>
                 <artifactId>exec-maven-plugin</artifactId>
                 <groupId>org.codehaus.mojo</groupId>
diff --git a/ldap-connector/pom.xml b/ldap-connector/pom.xml
index eeabf8da..70e6b36d 100644
--- a/ldap-connector/pom.xml
+++ b/ldap-connector/pom.xml
@@ -91,29 +91,6 @@
                     </execution>
                 </executions>
             </plugin>
-            <plugin>
-                <artifactId>exec-maven-plugin</artifactId>
-                <groupId>org.codehaus.mojo</groupId>
-                <version>${maven.exec.version}</version>
-                <executions>
-                    <execution>
-                        <id>Generate Version File</id>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>exec</goal>
-                        </goals>
-                        <configuration>
-                            <executable>python</executable>
-                            <arguments>
-                                <argument>../generate-versions.py</argument>
-                                <argument>net.jami.jams.ldap.connector.LDAPConnector</argument>
-                                <argument>${revision}</argument>
-                                <argument>libs/${project.artifactId}.jar</argument>
-                            </arguments>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
         </plugins>
     </build>
 
-- 
GitLab