From ca4bf9c483d8fbda1e8a7fdd9a479ac405c51d76 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 24 2017 08:43:52 +0000 Subject: import rh-maven35-maven-artifact-transfer-0.9.0-2.2.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..46d9580 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/maven-artifact-transfer-0.9.0-source-release.zip diff --git a/.rh-maven35-maven-artifact-transfer.metadata b/.rh-maven35-maven-artifact-transfer.metadata new file mode 100644 index 0000000..8a4cd82 --- /dev/null +++ b/.rh-maven35-maven-artifact-transfer.metadata @@ -0,0 +1 @@ +4f99fea3cdf0209f767d7c36813758ba5737d4a7 SOURCES/maven-artifact-transfer-0.9.0-source-release.zip diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/0001-Compatibility-with-Maven-3.0.3-and-later.patch b/SOURCES/0001-Compatibility-with-Maven-3.0.3-and-later.patch new file mode 100644 index 0000000..ad62b6c --- /dev/null +++ b/SOURCES/0001-Compatibility-with-Maven-3.0.3-and-later.patch @@ -0,0 +1,48 @@ +From e5f2d4a0133d598bc12b9d76292f6cf0c62448bf Mon Sep 17 00:00:00 2001 +From: Mikolaj Izdebski +Date: Mon, 12 Oct 2015 13:28:56 +0200 +Subject: [PATCH] Compatibility with Maven 3.0.3 and later + +--- + .../internal/Maven31ArtifactRepositoryAdapter.java | 20 ++++++++++++++++++++ + 1 file changed, 20 insertions(+) + +diff --git a/src/main/java/org/apache/maven/shared/dependencies/collect/internal/Maven31ArtifactRepositoryAdapter.java b/src/main/java/org/apache/maven/shared/dependencies/collect/internal/Maven31ArtifactRepositoryAdapter.java +index 5de5dbb..11b7453 100644 +--- a/src/main/java/org/apache/maven/shared/dependencies/collect/internal/Maven31ArtifactRepositoryAdapter.java ++++ b/src/main/java/org/apache/maven/shared/dependencies/collect/internal/Maven31ArtifactRepositoryAdapter.java +@@ -19,6 +19,7 @@ package org.apache.maven.shared.dependencies.collect.internal; + * under the License. + */ + ++import java.util.Collections; + import java.util.List; + + import org.apache.maven.artifact.Artifact; +@@ -263,4 +264,23 @@ public class Maven31ArtifactRepositoryAdapter implements ArtifactRepository + } + return true; + } ++ ++ private List mirroredRepositories = Collections.emptyList(); ++ ++ public List getMirroredRepositories() ++ { ++ return mirroredRepositories; ++ } ++ ++ public void setMirroredRepositories( List mirroredRepositories ) ++ { ++ if ( mirroredRepositories != null ) ++ { ++ this.mirroredRepositories = mirroredRepositories; ++ } ++ else ++ { ++ this.mirroredRepositories = Collections.emptyList(); ++ } ++ } + } +-- +2.7.4 + diff --git a/SPECS/maven-artifact-transfer.spec b/SPECS/maven-artifact-transfer.spec new file mode 100644 index 0000000..a71b29b --- /dev/null +++ b/SPECS/maven-artifact-transfer.spec @@ -0,0 +1,89 @@ +%{?scl:%scl_package maven-artifact-transfer} +%{!?scl:%global pkg_name %{name}} + +Name: %{?scl_prefix}maven-artifact-transfer +Version: 0.9.0 +Release: 2.2%{?dist} +Epoch: 1 +Summary: Apache Maven Artifact Transfer +License: ASL 2.0 +URL: http://maven.apache.org/shared/maven-artifact-transfer +BuildArch: noarch + +Source0: http://repo1.maven.org/maven2/org/apache/maven/shared/%{pkg_name}/%{version}/%{pkg_name}-%{version}-source-release.zip + +Patch0: 0001-Compatibility-with-Maven-3.0.3-and-later.patch + +BuildRequires: %{?scl_prefix}maven-local +BuildRequires: %{?scl_prefix}mvn(commons-codec:commons-codec) +BuildRequires: %{?scl_prefix}mvn(junit:junit) +BuildRequires: %{?scl_prefix}mvn(org.apache.maven:maven-artifact) +BuildRequires: %{?scl_prefix}mvn(org.apache.maven:maven-core) +BuildRequires: %{?scl_prefix}mvn(org.apache.maven.shared:maven-common-artifact-filters) +BuildRequires: %{?scl_prefix}mvn(org.apache.maven.shared:maven-shared-components:pom:) +BuildRequires: %{?scl_prefix}mvn(org.codehaus.plexus:plexus-component-annotations) +BuildRequires: %{?scl_prefix}mvn(org.codehaus.plexus:plexus-component-metadata) +BuildRequires: %{?scl_prefix}mvn(org.codehaus.plexus:plexus-utils) +BuildRequires: %{?scl_prefix}mvn(org.eclipse.aether:aether-api) +BuildRequires: %{?scl_prefix}mvn(org.eclipse.aether:aether-impl) +BuildRequires: %{?scl_prefix}mvn(org.eclipse.aether:aether-util) +BuildRequires: %{?scl_prefix}mvn(org.slf4j:slf4j-api) + +%description +An API to either install or deploy artifacts with Maven 3. + +%package javadoc +Summary: API documentation for %{pkg_name} + +%description javadoc +This package provides %{summary}. + +%prep +%setup -n %{pkg_name}-%{version} -q +%patch0 -p1 + +%pom_remove_plugin :maven-shade-plugin +%pom_remove_plugin :apache-rat-plugin +%pom_remove_plugin :maven-enforcer-plugin +%pom_remove_plugin :animal-sniffer-maven-plugin + +# We don't want to support legacy Maven versions (older than 3.1) +%pom_remove_dep org.sonatype.aether: +find -name Maven30\*.java -delete + +%build +%mvn_build + +%install +%mvn_install + +%files -f .mfiles +%license LICENSE NOTICE + +%files javadoc -f .mfiles-javadoc +%license LICENSE NOTICE + +%changelog +* Thu Jun 22 2017 Michael Simacek - 1:0.9.0-2.2 +- Mass rebuild 2017-06-22 + +* Wed Jun 21 2017 Java Maintainers - 1:0.9.0-2.1 +- Automated package import and SCL-ization + +* Fri Feb 10 2017 Fedora Release Engineering - 1:0.9.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Nov 07 2016 Michael Simacek - 0.9.0-1 +- Update to upstream version 0.9.0 + +* Tue Aug 23 2016 Mikolaj Izdebski - 3.0.0-0.4.20160823svn1753832 +- Update to latest upstream snapshot + +* Thu Feb 04 2016 Fedora Release Engineering - 3.0-0.3.20160118svn1722498 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Jan 18 2016 Mikolaj Izdebski - 3.0-0.2.20160118svn1722498 +- Update to latest upstream snapshot + +* Tue Jun 9 2015 Mikolaj Izdebski - 3.0-0.1.20151012svn1708080 +- Initial packaging