[java-sig-commits] [maven-dependency-plugin/f17] Updated to version 2.4

Tomas Radej tradej at fedoraproject.org
Tue Feb 21 09:11:42 UTC 2012


commit a38cec54cb391d5dc0e96be571cf9817a14b115c
Author: Tomas Radej <tradej at redhat.com>
Date:   Tue Jan 31 14:34:59 2012 +0100

    Updated to version 2.4

 .gitignore                                         |    1 +
 maven-dependency-plugin-commons-io.patch           |   17 ++++++++++++++
 maven-dependency-plugin-core.patch                 |   16 +++++++++++++
 ...endency-plugin-removed-exception-catching.patch |   15 ++++++++++++
 maven-dependency-plugin-removed-test.patch         |   24 ++++++++++++++++++++
 maven-dependency-plugin.spec                       |   23 +++++++++++++++++-
 sources                                            |    2 +-
 7 files changed, 95 insertions(+), 3 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 1512a42..dc8ba5b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 maven-dependency-plugin-2.2.tar.xz
 /maven-dependency-plugin-2.2-source-release.zip
 /maven-dependency-plugin-2.3-source-release.zip
+/maven-dependency-plugin-2.4-source-release.zip
diff --git a/maven-dependency-plugin-commons-io.patch b/maven-dependency-plugin-commons-io.patch
new file mode 100644
index 0000000..232bb9f
--- /dev/null
+++ b/maven-dependency-plugin-commons-io.patch
@@ -0,0 +1,17 @@
+diff --git a/pom.xml b/pom.xml
+index c3d92dc..bd58801 100644
+--- a/pom.xml
++++ b/pom.xml
+@@ -206,6 +206,12 @@ under the License.
+     </dependency>
+ 
+     <dependency>
++      <groupId>org.apache.commons</groupId>
++      <artifactId>commons-io</artifactId>
++      <version>3.2.1</version>
++    </dependency>
++
++    <dependency>
+       <groupId>commons-collections</groupId>
+       <artifactId>commons-collections</artifactId>
+       <version>3.2.1</version>
diff --git a/maven-dependency-plugin-core.patch b/maven-dependency-plugin-core.patch
new file mode 100644
index 0000000..42f0b77
--- /dev/null
+++ b/maven-dependency-plugin-core.patch
@@ -0,0 +1,16 @@
+diff --git a/pom.xml b/pom.xml
+index bd58801..1a3f62f 100644
+--- a/pom.xml
++++ b/pom.xml
+@@ -92,6 +92,11 @@ under the License.
+     <!-- maven -->
+     <dependency>
+       <groupId>org.apache.maven</groupId>
++      <artifactId>maven-core</artifactId>
++      <version>${mavenVersion}</version>
++    </dependency>
++    <dependency>
++      <groupId>org.apache.maven</groupId>
+       <artifactId>maven-artifact</artifactId>
+       <version>${mavenVersion}</version>
+     </dependency>
diff --git a/maven-dependency-plugin-removed-exception-catching.patch b/maven-dependency-plugin-removed-exception-catching.patch
new file mode 100644
index 0000000..6484813
--- /dev/null
+++ b/maven-dependency-plugin-removed-exception-catching.patch
@@ -0,0 +1,15 @@
+diff --git a/src/main/java/org/apache/maven/plugin/dependency/resolvers/ResolvePluginsMojo.java b/src/main/java/org/apache/maven/plugin/dependency/resolvers/ResolvePluginsMojo.java
+index cbc2520..eb8b1e6 100644
+--- a/src/main/java/org/apache/maven/plugin/dependency/resolvers/ResolvePluginsMojo.java
++++ b/src/main/java/org/apache/maven/plugin/dependency/resolvers/ResolvePluginsMojo.java
+@@ -137,10 +137,6 @@ public class ResolvePluginsMojo
+         {
+             throw new MojoExecutionException( "Nested:", e );
+         }
+-        catch ( InvalidDependencyVersionException e )
+-        {
+-            throw new MojoExecutionException( "Nested:", e );
+-        }
+         finally
+         {
+             IOUtil.close( outputWriter );
diff --git a/maven-dependency-plugin-removed-test.patch b/maven-dependency-plugin-removed-test.patch
new file mode 100644
index 0000000..8bda789
--- /dev/null
+++ b/maven-dependency-plugin-removed-test.patch
@@ -0,0 +1,24 @@
+diff --git a/src/test/java/org/apache/maven/plugin/dependency/TestGetMojo.java b/src/test/java/org/apache/maven/plugin/dependency/TestGetMojo.java
+index 182cd28..a7078a1 100644
+--- a/src/test/java/org/apache/maven/plugin/dependency/TestGetMojo.java
++++ b/src/test/java/org/apache/maven/plugin/dependency/TestGetMojo.java
+@@ -24,7 +24,6 @@ import java.io.File;
+ import org.apache.maven.artifact.repository.ArtifactRepository;
+ import org.apache.maven.artifact.repository.ArtifactRepositoryPolicy;
+ import org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout;
+-import org.apache.maven.artifact.repository.layout.LegacyRepositoryLayout;
+ import org.apache.maven.plugin.MojoFailureException;
+ import org.apache.maven.plugin.testing.stubs.StubArtifactRepository;
+ 
+@@ -101,11 +100,6 @@ public class TestGetMojo
+         assertEquals( DefaultRepositoryLayout.class, repo.getLayout().getClass() );
+         assertEquals( "http://repo1.maven.apache.org/maven2", repo.getUrl() );
+ 
+-        repo = mojo.parseRepository( "central::legacy::http://repo1.maven.apache.org/maven2", policy );
+-        assertEquals( "central", repo.getId() );
+-        assertEquals( LegacyRepositoryLayout.class, repo.getLayout().getClass() );
+-        assertEquals( "http://repo1.maven.apache.org/maven2", repo.getUrl() );
+-
+         repo = mojo.parseRepository( "central::::http://repo1.maven.apache.org/maven2", policy );
+         assertEquals( "central", repo.getId() );
+         assertEquals( DefaultRepositoryLayout.class, repo.getLayout().getClass() );
diff --git a/maven-dependency-plugin.spec b/maven-dependency-plugin.spec
index f4aa0f7..9b805eb 100644
--- a/maven-dependency-plugin.spec
+++ b/maven-dependency-plugin.spec
@@ -1,6 +1,6 @@
 Name:           maven-dependency-plugin
-Version:        2.3
-Release:        3%{?dist}
+Version:        2.4
+Release:        1%{?dist}
 Summary:        Plugin to manipulate, copy and unpack local and remote artifacts
 
 Group:          Development/Libraries
@@ -8,6 +8,15 @@ License:        ASL 2.0
 URL:            http://maven.apache.org/plugins/%{name}
 Source0:        http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip
 Patch0:         0001-Add-setThreshold-stub.patch
+# Added apache-commons-io dep
+Patch1:         %{name}-commons-io.patch
+# Added maven-core dep
+Patch2:         %{name}-core.patch
+# Removed a test because it was using a legacy class
+Patch3:         %{name}-removed-test.patch
+# Removed exception catching as it has already been done
+# (not upstreamable)
+Patch4:         %{name}-removed-exception-catching.patch
 
 BuildArch:      noarch
 
@@ -15,6 +24,7 @@ BuildRequires: java-devel >= 1:1.6.0
 BuildRequires: plexus-utils
 BuildRequires: ant
 BuildRequires: asm2
+BuildRequires: apache-commons-io
 BuildRequires: maven
 BuildRequires: maven-install-plugin
 BuildRequires: maven-compiler-plugin
@@ -63,6 +73,10 @@ Requires:       jpackage-utils
 %setup -q
 
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
 
 sed -i \
     's:org.codehaus.classworlds.ClassRealm:org.codehaus.plexus.classworlds.realm.ClassRealm:' \
@@ -95,6 +109,11 @@ cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/
 %{_javadocdir}/%{name}
 
 %changelog
+* Tue Feb 21 2012 Tomas Radej <tradej at redhat.com> - 2.4-1
+- Updated to the upstream version
+- Partially removed a test because of a legacy class use
+- Removed exception checking as it has already been done
+
 * Fri Jan 13 2012 Alexander Kurtakov <akurtako at redhat.com> 2.3-3
 - Add missing BR.
 
diff --git a/sources b/sources
index 663f640..d69b439 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-c21a7404356997fef2de3bdbd4ba0272  maven-dependency-plugin-2.3-source-release.zip
+fd10e0fc8bb53de6caf0d8f39e948d0b  maven-dependency-plugin-2.4-source-release.zip


More information about the java-sig-commits mailing list