You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/03/29 08:27:12 UTC

[camel] 01/01: CAMEL-19139: Add Build-Date in MANIFEST.MF

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch date
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 87fcef624979ce57e6f2af7e29fbd1e21324ea43
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Mar 29 10:25:36 2023 +0200

    CAMEL-19139: Add Build-Date in MANIFEST.MF
---
 camel-dependencies/pom.xml | 1 +
 parent/pom.xml             | 9 ++++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/camel-dependencies/pom.xml b/camel-dependencies/pom.xml
index 7949cb7f623..25485e46cfd 100644
--- a/camel-dependencies/pom.xml
+++ b/camel-dependencies/pom.xml
@@ -38,6 +38,7 @@
 
     <!-- sync properties here from parent/pom.xml -->
     <properties>
+        <maven.build.timestamp.format>yyyy-MM-dd</maven.build.timestamp.format>
         <compiler.fork>true</compiler.fork>
         <cxf.codegenplugin.forkmode>true</cxf.codegenplugin.forkmode>
         <cxf.codegen.jvmArgs />
diff --git a/parent/pom.xml b/parent/pom.xml
index ccc17dc268a..53c2f7eebc7 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -33,6 +33,7 @@
     <description>Camel Parent POM</description>
 
     <properties>
+        <maven.build.timestamp.format>yyyy-MM-dd</maven.build.timestamp.format>
         <compiler.fork>true</compiler.fork>
         <cxf.codegenplugin.forkmode>true</cxf.codegenplugin.forkmode>
         <cxf.codegen.jvmArgs />
@@ -2782,7 +2783,13 @@
                     <version>${maven-jar-plugin-version}</version>
                     <configuration>
                         <archive>
-                            <manifestFile>${camel.osgi.manifest}</manifestFile>
+                            <manifest>
+                                <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+                                <addDefaultSpecificationEntries>false</addDefaultSpecificationEntries>
+                            </manifest>
+                            <manifestEntries>
+                                <Build-Date>${maven.build.timestamp}</Build-Date>
+                            </manifestEntries>
                         </archive>
                     </configuration>
                 </plugin>