[java-sig-commits] [maven-repository-plugin] Fix building/working in pure maven3 environment.
Alexander Kurtakov
akurtakov at fedoraproject.org
Mon Dec 5 21:25:24 UTC 2011
commit 541e2eafb51e471df3a40fdf069186c20f6c8d51
Author: Alexander Kurtakov < <akurtako at redhat.com>
Date: Mon Dec 5 23:25:08 2011 +0200
Fix building/working in pure maven3 environment.
add_compat.patch | 14 ++++++++++++++
maven-repository-plugin.spec | 8 ++++++--
2 files changed, 20 insertions(+), 2 deletions(-)
---
diff --git a/add_compat.patch b/add_compat.patch
new file mode 100644
index 0000000..ece6731
--- /dev/null
+++ b/add_compat.patch
@@ -0,0 +1,14 @@
+--- pom.xml.sav 2010-07-17 16:17:08.000000000 +0300
++++ pom.xml 2011-12-05 23:22:34.397692299 +0200
+@@ -98,6 +98,11 @@ under the License.
+ <version>2.0.6</version>
+ </dependency>
+ <dependency>
++ <groupId>org.apache.maven</groupId>
++ <artifactId>maven-compat</artifactId>
++ <version>3.0.2</version>
++ </dependency>
++ <dependency>
+ <groupId>org.apache.maven.shared</groupId>
+ <artifactId>maven-plugin-testing-harness</artifactId>
+ <version>1.0-beta-1</version>
diff --git a/maven-repository-plugin.spec b/maven-repository-plugin.spec
index 1e25b37..60f5008 100644
--- a/maven-repository-plugin.spec
+++ b/maven-repository-plugin.spec
@@ -1,13 +1,13 @@
Name: maven-repository-plugin
Version: 2.3.1
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Plugin to create bundles of artifacts for manual uploaded to repository
Group: Development/Libraries
License: ASL 2.0
URL: http://maven.apache.org/plugins/maven-repository-plugin/
Source0: http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip
-
+Patch0: add_compat.patch
BuildArch: noarch
BuildRequires: java-devel >= 1:1.6.0
@@ -52,6 +52,7 @@ API documentation for %{name}.
%prep
%setup -q
+%patch0
%build
#FIXME: test gets java.lang.NullPointerException
@@ -93,6 +94,9 @@ cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/
%{_javadocdir}/%{name}
%changelog
+* Mon Dec 5 2011 Alexander Kurtakov <akurtako at redhat.com> 2.3.1-4
+- Fix building/working in pure maven3 environment.
+
* Wed Jun 8 2011 Alexander Kurtakov <akurtako at redhat.com> 2.3.1-3
- Build with maven 3.x.
- Adapt to current guidelines.
More information about the java-sig-commits
mailing list