Update to latest upstream snapshot

This commit is contained in:
Mikolaj Izdebski 2016-11-18 08:16:13 +01:00
parent befeafe475
commit 49a3228f13
3 changed files with 82 additions and 4 deletions

View File

@ -0,0 +1,66 @@
From 1390c2b59fe82c4b0f76b18782e9ed28b82a71e8 Mon Sep 17 00:00:00 2001
From: Mikolaj Izdebski <mizdebsk@redhat.com>
Date: Fri, 18 Nov 2016 08:51:46 +0100
Subject: [PATCH] Use exec-maven-plugin instead of groovy-maven-plugin
---
maven-slf4j-provider/pom.xml | 20 ++++++++++++--------
.../src/main/script/patch-slf4j-simple.groovy | 2 +-
2 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/maven-slf4j-provider/pom.xml b/maven-slf4j-provider/pom.xml
index ecb93e8..039b332 100644
--- a/maven-slf4j-provider/pom.xml
+++ b/maven-slf4j-provider/pom.xml
@@ -95,22 +95,26 @@ under the License.
</executions>
</plugin>
<plugin>
- <groupId>org.codehaus.gmaven</groupId>
- <artifactId>groovy-maven-plugin</artifactId>
- <version>2.0</version>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.5.0</version>
<executions>
<execution>
<id>patch-slf4j-simple</id>
<phase>process-sources</phase>
<goals>
- <goal>execute</goal>
+ <goal>exec</goal>
</goals>
- <configuration>
- <source>${project.basedir}/src/main/script/patch-slf4j-simple.groovy</source>
- </configuration>
</execution>
</executions>
+ <configuration>
+ <executable>groovy</executable>
+ <workingDirectory>${project.basedir}</workingDirectory>
+ <arguments>
+ <argument>src/main/script/patch-slf4j-simple.groovy</argument>
+ </arguments>
+ </configuration>
</plugin>
</plugins>
</build>
-</project>
\ No newline at end of file
+</project>
diff --git a/maven-slf4j-provider/src/main/script/patch-slf4j-simple.groovy b/maven-slf4j-provider/src/main/script/patch-slf4j-simple.groovy
index bba8646..a6ad10b 100644
--- a/maven-slf4j-provider/src/main/script/patch-slf4j-simple.groovy
+++ b/maven-slf4j-provider/src/main/script/patch-slf4j-simple.groovy
@@ -18,7 +18,7 @@
* under the License.
*/
-dir = new File( basedir, 'target/generated-sources/slf4j-simple/org/slf4j/impl' );
+dir = new File( '.', 'target/generated-sources/slf4j-simple/org/slf4j/impl' );
file = new File( dir, 'StaticLoggerBinder.java' );
content = file.text;
--
2.7.4

View File

@ -2,20 +2,21 @@
Name: maven Name: maven
Version: 3.4.0 Version: 3.4.0
Release: 0.2.20160807git9f2452a%{?dist} Release: 0.3.20160807git8ae1a3e%{?dist}
Summary: Java project management and project comprehension tool Summary: Java project management and project comprehension tool
License: ASL 2.0 License: ASL 2.0
URL: http://maven.apache.org/ URL: http://maven.apache.org/
BuildArch: noarch BuildArch: noarch
#Source0: http://archive.apache.org/dist/%{name}/%{name}-3/%{version}/source/apache-%{name}-%{version}-src.tar.gz #Source0: http://archive.apache.org/dist/%{name}/%{name}-3/%{version}/source/apache-%{name}-%{version}-src.tar.gz
Source0: https://git-wip-us.apache.org/repos/asf?p=maven.git;a=snapshot;h=9f2452a;sf=tgz#/apache-%{name}-%{version}-SNAPSHOT-src.tar.gz Source0: https://git-wip-us.apache.org/repos/asf?p=maven.git;a=snapshot;h=8ae1a3e;sf=tgz#/apache-%{name}-%{version}-SNAPSHOT-src.tar.gz
Source1: maven-bash-completion Source1: maven-bash-completion
Source2: mvn.1 Source2: mvn.1
Source200: %{name}-script Source200: %{name}-script
Patch0: 0001-Force-SLF4J-SimpleLogger-re-initialization.patch Patch0: 0001-Force-SLF4J-SimpleLogger-re-initialization.patch
Patch1: 0002-Adapt-mvn-script.patch Patch1: 0002-Adapt-mvn-script.patch
Patch2: 0001-Use-exec-maven-plugin-instead-of-groovy-maven-plugin.patch
BuildRequires: maven-local BuildRequires: maven-local
@ -79,6 +80,11 @@ BuildRequires: mvn(org.codehaus.modello:modello-maven-plugin)
BuildRequires: gossip BuildRequires: gossip
BuildRequires: jansi BuildRequires: jansi
BuildRequires: maven-shared-utils BuildRequires: maven-shared-utils
BuildRequires: groovy
BuildRequires: maven-plugin-exec
BuildRequires: maven-plugin-build-helper
BuildRequires: maven-dependency-plugin
BuildRequires: slf4j-sources
Requires: %{name}-lib = %{version}-%{release} Requires: %{name}-lib = %{version}-%{release}
@ -144,6 +150,7 @@ Summary: Core part of Maven
# If XMvn is part of the same RPM transaction then it should be # If XMvn is part of the same RPM transaction then it should be
# installed first to avoid triggering rhbz#1014355. # installed first to avoid triggering rhbz#1014355.
OrderWithRequires: xmvn-minimal OrderWithRequires: xmvn-minimal
Provides: bundled(slf4j)
%description lib %description lib
Core part of Apache Maven that can be used as a library. Core part of Apache Maven that can be used as a library.
@ -156,9 +163,10 @@ Summary: API documentation for %{name}
%prep %prep
#setup -q -n apache-%{name}-%{version}%{?ver_add} #setup -q -n apache-%{name}-%{version}%{?ver_add}
%setup -q -n %{name}-9f2452a %setup -q -n %{name}-8ae1a3e
%patch0 -p1 %patch0 -p1
%patch1 -p1 %patch1 -p1
%patch2 -p1
# not really used during build, but a precaution # not really used during build, but a precaution
rm -f maven-ant-tasks-*.jar rm -f maven-ant-tasks-*.jar
@ -287,6 +295,10 @@ ln -sf $(build-classpath plexus/classworlds) \
%changelog %changelog
* Fri Nov 18 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.4.0-0.3.20160807git8ae1a3e
- Update to latest upstream snapshot
- Source-bundle slf4j-simple
* Mon Aug 15 2016 Michael Simacek <msimacek@redhat.com> - 3.4.0-0.2.20160807git9f2452a * Mon Aug 15 2016 Michael Simacek <msimacek@redhat.com> - 3.4.0-0.2.20160807git9f2452a
- Use patched upstream launcher instead of custom script - Use patched upstream launcher instead of custom script

View File

@ -1 +1 @@
4d36c6d6232a9ca1c6362112fc3c0e1c apache-maven-3.4.0-SNAPSHOT-src.tar.gz 201c86b1f6f54f1193494404765b1abe apache-maven-3.4.0-SNAPSHOT-src.tar.gz