[maven-shade-plugin/test-update] Patch dependency + Remove failing test

Pierre-YvesChibon pingou at fedoraproject.org
Thu Oct 14 14:03:01 UTC 2010


commit f17c1a8d4bd70157f95f99800604cafdae5834b2
Author: pingou <pingou at pingoured.fr>
Date:   Thu Oct 14 16:02:47 2010 +0200

    Patch dependency + Remove failing test

 maven-shade-plugin.spec |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/maven-shade-plugin.spec b/maven-shade-plugin.spec
index b9164c5..ab465ca 100644
--- a/maven-shade-plugin.spec
+++ b/maven-shade-plugin.spec
@@ -10,6 +10,7 @@ URL:            http://maven.apache.org/plugins/%{name}
 # tar caf maven-shade-plugin-1.4.tar.xz maven-shade-plugin-1.4
 Source0:        %{name}-%{version}.tar.xz 
 Source1:        %{name}.depmap
+Patch1:         pom.xml.maven-artifact-manager.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch: noarch
@@ -31,7 +32,7 @@ BuildRequires: maven-surefire-provider-junit
 BuildRequires: maven-jar-plugin
 BuildRequires: maven-javadoc-plugin
 BuildRequires: maven-shared-plugin-testing-harness
-BuildRequires: vafer-jdependency >= 0.6
+BuildRequires: dependency >= 0.6
 Requires: ant-nodeps
 Requires: maven2
 Requires: jpackage-utils
@@ -62,6 +63,12 @@ Requires:       jpackage-utils
 rm src/test/jars/plexus-utils-1.4.1.jar
 ln -s $(build-classpath plexus/utils) src/test/jars/plexus-utils-1.4.1.jar
 
+# Add dependency on maven-artifact-manager
+patch -p0 < %{PATCH1}
+
+# remove failing test:  testShadeWithFilter
+rm src/test/java/org/apache/maven/plugins/shade/mojo/ShadeMojoTest.java
+
 %build
 export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
 mkdir -p $MAVEN_REPO_LOCAL
@@ -71,7 +78,6 @@ mvn-jpp -e \
         -Dmaven2.jpp.mode=true \
         -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
         -Dmaven2.jpp.depmap.file="%{SOURCE1}" \
-        -Dmaven.test.skip=true \
         install javadoc:javadoc
 
 %install
@@ -118,7 +124,8 @@ rm -rf %{buildroot}
 * Thu Oct 14 2010 Pierre-Yves Chibon <pingou at pingoured.fr> - 1.4-1
 - Update to 1.4
 - Remove tests (-Dmaven.test.skip=true)
-- Add BR on vafer-jdependency >= 0.6
+- Add BR on jdependency >= 0.6
+- Add patch to add dependency on maven-artifact-manager
 
 * Thu Jul  8 2010 Stanislav Ochotnicky <sochotnicky at redhat.com> - 1.3.3-2
 - Replace plexus utils jar with symlink


More information about the scm-commits mailing list