commit bdeb0e822b77d35635482eece155de215ce95af3
Author: Michael Mraka <michael.mraka(a)redhat.com>
Date: Mon Aug 4 16:25:41 2014 +0200
replaced maven-timestamp-plugin with maven.build.timestamp
objenesis-no-timestamp-plugin.patch | 45 +++++++++++++++++++++++++++++++++++
objenesis.spec | 4 +-
2 files changed, 47 insertions(+), 2 deletions(-)
---
diff --git a/objenesis-no-timestamp-plugin.patch b/objenesis-no-timestamp-plugin.patch
new file mode 100644
index 0000000..2ca418b
--- /dev/null
+++ b/objenesis-no-timestamp-plugin.patch
@@ -0,0 +1,45 @@
+--- objenesis-1.2.orig/pom.xml 2009-08-26 23:12:00.000000000 +0200
++++ objenesis-1.2/pom.xml 2014-08-08 10:40:00.325830999 +0200
+@@ -24,6 +24,9 @@
+ <version>1.2</version>
+ <packaging>pom</packaging>
+ <inceptionYear>2006</inceptionYear>
++ <properties>
++ <maven.build.timestamp.format>yyyy</maven.build.timestamp.format>
++ </properties>
+
+ <modules>
+ <module>main</module>
+@@ -186,23 +189,6 @@
+ </executions>
+ </plugin>
+ <plugin>
+- <groupId>com.keyboardsamurais.maven</groupId>
+- <artifactId>maven-timestamp-plugin</artifactId>
+- <version>1.0</version>
+- <executions>
+- <execution>
+- <id>year</id>
+- <goals>
+- <goal>create</goal>
+- </goals>
+- <configuration>
+- <propertyName>year</propertyName>
+- <timestampPattern>yyyy</timestampPattern>
+- </configuration>
+- </execution>
+- </executions>
+- </plugin>
+- <plugin>
+ <groupId>com.mycila.maven-license-plugin</groupId>
+ <artifactId>maven-license-plugin</artifactId>
+ <version>1.6.1</version>
+@@ -220,7 +206,7 @@
+ </excludes>
+ <properties>
+ <inceptionYear>${project.inceptionYear}</inceptionYear>
+- <year>${year}</year>
++ <year>${maven.build.timestamp}</year>
+ </properties>
+ </configuration>
+ <executions>
diff --git a/objenesis.spec b/objenesis.spec
index 33e7940..3a8c5ca 100644
--- a/objenesis.spec
+++ b/objenesis.spec
@@ -46,14 +46,13 @@ Source0: %{name}-%{version}.tar.xz
# maven-license-plugin groupID to latest version available.
Patch1: 001-objenesis-fix-build.patch
Patch2: JRockitInstantntiatorCharacters.patch
+Patch3: objenesis-no-timestamp-plugin.patch
BuildRequires: jpackage-utils
BuildRequires: java-devel
BuildRequires: junit
BuildRequires: maven-local
BuildRequires: maven-shade-plugin
-BuildRequires: maven-license-plugin
-BuildRequires: maven-timestamp-plugin
BuildRequires: xpp3-minimal
BuildRequires: objectweb-asm
BuildRequires: apache-resource-bundles
@@ -104,6 +103,7 @@ This package contains the API documentation for %{name}.
#%%patch0 -b .sav0
%patch1 -p1
%patch2 -p2
+%patch3 -p1
# Enable generation of pom.properties (rhbz#1017850)
%pom_xpath_remove pom:addMavenDescriptor
Show replies by date