[maven-artifact-resolver/f18] Initial commit

Tomas Radej tradej at fedoraproject.org
Thu Oct 25 13:26:23 UTC 2012


commit c3625f1466c7e0cf8e6be96a680cf5adced2144c
Author: Tomas Radej <tradej at redhat.com>
Date:   Thu Oct 25 14:36:34 2012 +0200

    Initial commit

 .gitignore                           |    1 +
 maven-artifact-resolver-plexus.patch |   21 +++++++
 maven-artifact-resolver.spec         |  100 ++++++++++++++++++++++++++++++++++
 sources                              |    1 +
 4 files changed, 123 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9a7a43a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/maven-artifact-resolver-1.0-source-release.zip
diff --git a/maven-artifact-resolver-plexus.patch b/maven-artifact-resolver-plexus.patch
new file mode 100644
index 0000000..851de1f
--- /dev/null
+++ b/maven-artifact-resolver-plexus.patch
@@ -0,0 +1,21 @@
+diff --git a/pom.xml b/pom.xml
+index 60aaf1f..5c2b49a 100644
+--- a/pom.xml
++++ b/pom.xml
+@@ -113,14 +113,14 @@ under the License.
+       </plugin>
+       <plugin>
+         <groupId>org.codehaus.plexus</groupId>
+-        <artifactId>plexus-maven-plugin</artifactId>
++        <artifactId>plexus-component-metadata</artifactId>
+         <version>1.3.8</version>
+         <executions>
+           <execution>
+             <id>create-component-descriptor</id>
+             <phase>generate-resources</phase>
+             <goals>
+-              <goal>descriptor</goal>
++              <goal>generate-metadata</goal>
+             </goals>
+           </execution>
+         </executions>
diff --git a/maven-artifact-resolver.spec b/maven-artifact-resolver.spec
new file mode 100644
index 0000000..7428ebd
--- /dev/null
+++ b/maven-artifact-resolver.spec
@@ -0,0 +1,100 @@
+Name:           maven-artifact-resolver
+Version:        1.0
+Release:        4%{?dist}
+# Epoch is added because the original package's version in maven-shared is 1.1-SNAPSHOT
+Epoch:          1
+Summary:        Maven Artifact Resolution API
+Group:          Development/Libraries  
+License:        ASL 2.0
+URL:            http://maven.apache.org/shared/%{name}
+Source0:        http://central.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip
+
+# Replaced plexus-maven-plugin with plexus-component-metadata
+Patch0:         %{name}-plexus.patch
+
+BuildArch:      noarch
+
+BuildRequires:  java-devel >= 1:1.6.0
+BuildRequires:  jpackage-utils
+BuildRequires:  maven
+BuildRequires:  maven-surefire-provider-junit4
+BuildRequires:  plexus-containers-component-metadata
+
+Requires:       java
+Requires:       jpackage-utils
+Requires:       maven-artifact-manager
+Requires:       maven-project
+
+Obsoletes:      maven-shared-artifact-resolver < %{epoch}:%{version}-%{release}
+Provides:       maven-shared-artifact-resolver = %{epoch}:%{version}-%{release}
+
+%description
+Provides a component for plugins to easily resolve project dependencies.
+
+
+%package javadoc
+Group:          Documentation
+Summary:        Javadoc for %{name}
+Requires:       jpackage-utils
+    
+%description javadoc
+API documentation for %{name}.
+
+
+%prep
+%setup -q
+%patch0 -p1
+
+%pom_xpath_inject pom:project/pom:dependencies "
+<dependency>
+  <groupId>org.apache.maven</groupId>
+  <artifactId>maven-compat</artifactId>
+  <version>1.0</version>
+</dependency>" pom.xml
+
+# Incompatible method invocation
+rm src/test/java/org/apache/maven/shared/artifact/resolver/DefaultProjectDependenciesResolverIT.java
+
+%build
+mvn-rpmbuild install javadoc:aggregate
+
+%install
+# JAR
+install -dm 755 %{buildroot}%{_javadir}
+install -pm 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
+
+# POM
+install -dm 755 %{buildroot}%{_mavenpomdir}
+install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+
+# JavaDoc
+install -Ddm 755 %{buildroot}/%{_javadocdir}/%{name}
+cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+%add_maven_depmap
+
+%files
+%doc DEPENDENCIES LICENSE NOTICE
+%{_javadir}/%{name}.jar
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+
+%files javadoc
+%doc LICENSE NOTICE
+%doc %{_javadocdir}/%{name}
+
+
+%changelog
+* Fri Sep 14 2012 Tomas Radej <tradej at redhat.com> - 1:1.0-4
+- Installing folders separately with -m 755
+- Installing NOTICE in javadoc subpackage
+- Fixed changelog
+
+* Wed Sep 12 2012 Tomas Radej <tradej at redhat.com> - 1:1.0-3
+- Really fixed Provides/Obsoletes by introducing epoch
+
+* Thu Sep 06 2012 Tomas Radej <tradej at redhat.com> - 1.0-2
+- Fixed Provides/Obsoletes
+
+* Tue Jul 31 2012 Tomas Radej <tradej at redhat.com> - 1.0-1
+- Initial version
diff --git a/sources b/sources
index e69de29..ecd4fd1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+752a97d6b558727b8f5e5d4388de729f  maven-artifact-resolver-1.0-source-release.zip


More information about the scm-commits mailing list