2019-03-20 11:52:06 +01:00
|
|
|
#
|
|
|
|
# spec file for package maven-resolver
|
|
|
|
#
|
2024-01-22 16:29:50 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-03-20 11:52:06 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-02-03 07:40:23 +01:00
|
|
|
%define _buildshell /bin/bash
|
2019-03-20 11:52:06 +01:00
|
|
|
%bcond_with tests
|
|
|
|
Name: maven-resolver
|
2024-06-11 17:20:28 +02:00
|
|
|
Version: 1.9.20
|
2019-03-20 11:52:06 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Apache Maven Artifact Resolver library
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Libraries/Java
|
2022-03-11 13:11:18 +01:00
|
|
|
URL: https://maven.apache.org/resolver/
|
2023-06-19 18:02:18 +02:00
|
|
|
Source0: https://archive.apache.org/dist/maven/resolver/%{name}-%{version}-source-release.zip
|
2019-03-20 11:52:06 +01:00
|
|
|
Source1: %{name}-build.tar.xz
|
|
|
|
BuildRequires: ant
|
2021-04-23 11:38:11 +02:00
|
|
|
BuildRequires: apache-commons-lang3
|
2019-03-20 11:52:06 +01:00
|
|
|
BuildRequires: atinject
|
|
|
|
BuildRequires: fdupes
|
2022-03-30 12:14:24 +02:00
|
|
|
BuildRequires: glassfish-annotation-api
|
2019-03-20 11:52:06 +01:00
|
|
|
BuildRequires: google-guice
|
|
|
|
BuildRequires: httpcomponents-client
|
|
|
|
BuildRequires: httpcomponents-core
|
|
|
|
BuildRequires: javapackages-local
|
|
|
|
BuildRequires: jcl-over-slf4j
|
|
|
|
BuildRequires: maven-wagon-provider-api
|
|
|
|
BuildRequires: plexus-classworlds
|
|
|
|
BuildRequires: plexus-utils
|
2024-04-02 19:38:39 +02:00
|
|
|
BuildRequires: plexus-xml
|
2019-03-20 11:52:06 +01:00
|
|
|
BuildRequires: sisu-inject
|
|
|
|
BuildRequires: sisu-plexus
|
|
|
|
BuildRequires: slf4j
|
|
|
|
BuildRequires: unzip
|
|
|
|
BuildRequires: xmvn-install
|
|
|
|
BuildRequires: xmvn-resolve
|
|
|
|
BuildArch: noarch
|
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ant-junit
|
|
|
|
BuildRequires: cglib
|
|
|
|
BuildRequires: mockito
|
|
|
|
BuildRequires: objectweb-asm
|
|
|
|
BuildRequires: objenesis
|
|
|
|
BuildRequires: plexus-containers-component-annotations
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
Apache Maven Artifact Resolver is a library for working with artifact
|
|
|
|
repositories and dependency resolution. Maven Artifact Resolver deals with the
|
|
|
|
specification of local repository, remote repository, developer workspaces,
|
|
|
|
artifact transports and artifact resolution.
|
|
|
|
|
|
|
|
%package api
|
|
|
|
Summary: Maven Artifact Resolver API
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description api
|
|
|
|
The application programming interface for the repository system.
|
|
|
|
|
|
|
|
%package spi
|
|
|
|
Summary: Maven Artifact Resolver SPI
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description spi
|
|
|
|
The service provider interface for repository system implementations and
|
|
|
|
repository connectors.
|
|
|
|
|
|
|
|
%package util
|
|
|
|
Summary: Maven Artifact Resolver Utilities
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description util
|
|
|
|
A collection of utility classes to ease usage of the repository system.
|
|
|
|
|
2022-03-11 13:11:18 +01:00
|
|
|
%package named-locks
|
|
|
|
Summary: Maven Artifact Resolver Named Locks
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description named-locks
|
|
|
|
A synchronization utility implementation using Named locks
|
|
|
|
|
2019-03-20 11:52:06 +01:00
|
|
|
%package impl
|
|
|
|
Summary: Maven Artifact Resolver Implementation
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description impl
|
|
|
|
An implementation of the repository system.
|
|
|
|
|
|
|
|
%package test-util
|
|
|
|
Summary: Maven Artifact Resolver Test Utilities
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description test-util
|
|
|
|
A collection of utility classes to ease testing of the repository system.
|
|
|
|
|
|
|
|
%package connector-basic
|
|
|
|
Summary: Maven Artifact Resolver Connector Basic
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description connector-basic
|
|
|
|
A repository connector implementation for repositories using URI-based layouts.
|
|
|
|
|
|
|
|
%package transport-classpath
|
|
|
|
Summary: Maven Artifact Resolver Transport Classpath
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description transport-classpath
|
|
|
|
A transport implementation for repositories using classpath:// URLs.
|
|
|
|
|
|
|
|
%package transport-file
|
|
|
|
Summary: Maven Artifact Resolver Transport File
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description transport-file
|
|
|
|
A transport implementation for repositories using file:// URLs.
|
|
|
|
|
|
|
|
%package transport-http
|
|
|
|
Summary: Maven Artifact Resolver Transport HTTP
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description transport-http
|
|
|
|
A transport implementation for repositories using http:// and https:// URLs.
|
|
|
|
|
|
|
|
%package transport-wagon
|
|
|
|
Summary: Maven Artifact Resolver Transport Wagon
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description transport-wagon
|
|
|
|
A transport implementation based on Maven Wagon.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: API documentation for %{name}
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
This package provides %{summary}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -a1
|
|
|
|
|
2022-03-11 13:11:18 +01:00
|
|
|
# requires internet connection
|
2023-05-02 08:27:19 +02:00
|
|
|
rm maven-resolver-transport-http/src/test/java/org/eclipse/aether/transport/http/{HttpServer,HttpTransporterTest}.java
|
|
|
|
%pom_remove_dep org.eclipse.jetty: maven-resolver-transport-http
|
2021-04-23 11:38:11 +02:00
|
|
|
|
2022-03-11 13:11:18 +01:00
|
|
|
%pom_remove_plugin -r :bnd-maven-plugin
|
|
|
|
%pom_remove_plugin -r org.codehaus.mojo:animal-sniffer-maven-plugin
|
2023-05-02 08:27:19 +02:00
|
|
|
%pom_remove_plugin -r :japicmp-maven-plugin
|
2019-03-20 11:52:06 +01:00
|
|
|
|
|
|
|
%pom_disable_module maven-resolver-demos
|
2022-03-11 13:11:18 +01:00
|
|
|
%pom_disable_module maven-resolver-named-locks-hazelcast
|
|
|
|
%pom_disable_module maven-resolver-named-locks-redisson
|
|
|
|
%pom_disable_module maven-resolver-transport-classpath
|
2019-03-20 11:52:06 +01:00
|
|
|
|
|
|
|
# generate OSGi manifests
|
|
|
|
for pom in $(find -mindepth 2 -name pom.xml) ; do
|
|
|
|
%pom_add_plugin "org.apache.felix:maven-bundle-plugin" $pom \
|
|
|
|
"<configuration>
|
|
|
|
<instructions>
|
|
|
|
<Bundle-SymbolicName>\${project.groupId}$(sed 's:./maven-resolver::;s:/pom.xml::;s:-:.:g' <<< $pom)</Bundle-SymbolicName>
|
|
|
|
<Export-Package>!org.eclipse.aether.internal*,org.eclipse.aether*</Export-Package>
|
|
|
|
<_nouses>true</_nouses>
|
|
|
|
</instructions>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>create-manifest</id>
|
|
|
|
<phase>process-classes</phase>
|
|
|
|
<goals><goal>manifest</goal></goals>
|
|
|
|
</execution>
|
|
|
|
</executions>"
|
|
|
|
done
|
|
|
|
%pom_add_plugin "org.apache.maven.plugins:maven-jar-plugin" pom.xml \
|
|
|
|
"<configuration>
|
|
|
|
<archive>
|
|
|
|
<manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
|
|
|
|
</archive>
|
|
|
|
</configuration>"
|
|
|
|
|
|
|
|
%{mvn_package} :maven-resolver
|
|
|
|
%{mvn_package} :maven-resolver-{*} @1
|
|
|
|
%{mvn_alias} 'org.apache.maven.resolver:maven-resolver{*}' 'org.eclipse.aether:aether@1'
|
2022-05-21 21:48:41 +02:00
|
|
|
%{mvn_alias} 'org.apache.maven.resolver:maven-resolver-transport-wagon' 'org.eclipse.aether:aether-connector-wagon'
|
2019-03-20 11:52:06 +01:00
|
|
|
%{mvn_file} ':maven-resolver{*}' %{name}/maven-resolver@1 aether/aether@1
|
|
|
|
|
|
|
|
# Try to avoid sucking in dependencies on packages that are not built at this moment
|
|
|
|
%pom_remove_parent .
|
|
|
|
%pom_remove_plugin :maven-jar-plugin .
|
|
|
|
|
|
|
|
%build
|
|
|
|
mkdir -p lib
|
|
|
|
build-jar-repository -s lib \
|
|
|
|
atinject \
|
2021-04-23 11:38:11 +02:00
|
|
|
commons-lang3 \
|
2022-03-17 04:20:50 +01:00
|
|
|
glassfish-annotation-api \
|
2019-03-20 11:52:06 +01:00
|
|
|
guice/google-guice-no_aop \
|
|
|
|
httpcomponents/httpclient \
|
|
|
|
httpcomponents/httpcore \
|
|
|
|
maven-wagon/provider-api \
|
|
|
|
org.eclipse.sisu.inject \
|
|
|
|
org.eclipse.sisu.plexus \
|
|
|
|
plexus-classworlds \
|
|
|
|
plexus/utils \
|
2024-04-02 19:38:39 +02:00
|
|
|
plexus/xml \
|
2019-03-20 11:52:06 +01:00
|
|
|
slf4j/api
|
|
|
|
%if %{with tests}
|
|
|
|
build-jar-repository -s lib \
|
|
|
|
cglib/cglib \
|
|
|
|
mockito/mockito-core \
|
|
|
|
objectweb-asm/asm \
|
|
|
|
objenesis/objenesis \
|
|
|
|
plexus-containers/plexus-component-annotations \
|
|
|
|
slf4j/simple
|
|
|
|
%endif
|
|
|
|
%{ant} \
|
|
|
|
%if %{without tests}
|
|
|
|
-Dtest.skip=true \
|
|
|
|
%endif
|
|
|
|
package javadoc
|
|
|
|
|
2022-03-11 13:11:18 +01:00
|
|
|
%{mvn_artifact} pom.xml
|
2019-03-20 11:52:06 +01:00
|
|
|
|
|
|
|
mkdir -p target/site/apidocs
|
2022-03-11 13:11:18 +01:00
|
|
|
for i in api spi test-util util named-locks impl connector-basic transport-classpath transport-file transport-http transport-wagon; do
|
2019-03-20 13:08:45 +01:00
|
|
|
cp -r %{name}-${i}/target/site/apidocs target/site/apidocs/%{name}-${i}
|
2019-03-20 11:52:06 +01:00
|
|
|
%{mvn_artifact} %{name}-${i}/pom.xml %{name}-${i}/target/%{name}-${i}-%{version}.jar
|
|
|
|
done
|
|
|
|
|
|
|
|
%install
|
|
|
|
%mvn_install
|
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
%license LICENSE NOTICE
|
|
|
|
|
|
|
|
%files api -f .mfiles-api
|
|
|
|
%license LICENSE NOTICE
|
|
|
|
|
|
|
|
%files spi -f .mfiles-spi
|
|
|
|
|
|
|
|
%files util -f .mfiles-util
|
|
|
|
|
2022-03-11 13:11:18 +01:00
|
|
|
%files named-locks -f .mfiles-named-locks
|
|
|
|
|
2019-03-20 11:52:06 +01:00
|
|
|
%files impl -f .mfiles-impl
|
|
|
|
|
|
|
|
%files test-util -f .mfiles-test-util
|
|
|
|
|
|
|
|
%files connector-basic -f .mfiles-connector-basic
|
|
|
|
|
|
|
|
%files transport-classpath -f .mfiles-transport-classpath
|
|
|
|
|
|
|
|
%files transport-file -f .mfiles-transport-file
|
|
|
|
|
|
|
|
%files transport-http -f .mfiles-transport-http
|
|
|
|
|
|
|
|
%files transport-wagon -f .mfiles-transport-wagon
|
|
|
|
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
|
|
%license LICENSE NOTICE
|
|
|
|
|
|
|
|
%changelog
|