2019-03-29 18:08:01 +01:00
|
|
|
#
|
2022-03-07 11:57:51 +01:00
|
|
|
# spec file
|
2019-03-29 18:08:01 +01:00
|
|
|
#
|
2023-05-05 10:28:46 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2019-03-29 18:08:01 +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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%global base_name maven-plugin-tools
|
|
|
|
%global artifactId maven-plugin-plugin
|
|
|
|
Name: %{artifactId}-bootstrap
|
2023-09-22 12:46:36 +02:00
|
|
|
Version: 3.9.0
|
2019-03-29 18:08:01 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Maven Plugin Plugin
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Libraries/Java
|
2023-09-03 13:08:50 +02:00
|
|
|
URL: https://maven.apache.org/plugin-tools/
|
|
|
|
Source0: https://repo1.maven.org/maven2/org/apache/maven/plugin-tools/%{base_name}/%{version}/%{base_name}-%{version}-source-release.zip
|
2019-03-29 18:08:01 +01:00
|
|
|
Source1: %{base_name}-build.tar.xz
|
2023-09-22 12:46:36 +02:00
|
|
|
Patch0: 0002-Remove-dependency-on-jtidy.patch
|
2019-03-29 18:08:01 +01:00
|
|
|
# The maven-plugin-plugin is used to generate those descriptors, which
|
|
|
|
# creates a circular dependency of maven-plugin-plugin on itself.
|
|
|
|
# We generated those ones outside the rpm build for a bootstrap package.
|
|
|
|
Patch20: maven-plugin-plugin-bootstrap-resouces.patch
|
|
|
|
BuildRequires: ant
|
2023-09-22 12:46:36 +02:00
|
|
|
BuildRequires: apache-commons-cli
|
|
|
|
BuildRequires: atinject
|
|
|
|
BuildRequires: google-guice
|
|
|
|
BuildRequires: guava
|
2019-03-29 18:08:01 +01:00
|
|
|
BuildRequires: javapackages-local
|
2023-09-22 12:46:36 +02:00
|
|
|
BuildRequires: jdom2
|
2019-03-29 18:08:01 +01:00
|
|
|
BuildRequires: maven-doxia-logging-api
|
|
|
|
BuildRequires: maven-doxia-sink-api
|
|
|
|
BuildRequires: maven-doxia-sitetools
|
|
|
|
BuildRequires: maven-lib
|
|
|
|
BuildRequires: maven-plugin-annotations
|
|
|
|
BuildRequires: maven-plugin-registry
|
|
|
|
BuildRequires: maven-plugin-tools-api
|
|
|
|
BuildRequires: maven-plugin-tools-generators
|
|
|
|
BuildRequires: maven-reporting-api
|
|
|
|
BuildRequires: maven-reporting-impl
|
2023-09-22 12:46:36 +02:00
|
|
|
BuildRequires: maven-resolver-api
|
|
|
|
BuildRequires: objectweb-asm
|
|
|
|
BuildRequires: plexus-build-api
|
|
|
|
BuildRequires: plexus-classworlds
|
|
|
|
BuildRequires: plexus-cli
|
|
|
|
BuildRequires: plexus-containers-component-annotations
|
|
|
|
BuildRequires: plexus-metadata-generator
|
2019-03-29 18:08:01 +01:00
|
|
|
BuildRequires: plexus-utils
|
|
|
|
BuildRequires: plexus-velocity
|
2023-09-22 12:46:36 +02:00
|
|
|
BuildRequires: qdox
|
|
|
|
BuildRequires: sisu-inject
|
|
|
|
BuildRequires: sisu-plexus
|
2019-03-29 18:08:01 +01:00
|
|
|
BuildRequires: unzip
|
|
|
|
BuildRequires: velocity
|
|
|
|
BuildRequires: xmvn-install
|
|
|
|
BuildRequires: xmvn-resolve
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-tools-annotations)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-tools-java)
|
|
|
|
BuildRequires: mvn(org.apache.maven:maven-parent:pom:)
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
The Plugin Plugin is used to create a Maven plugin descriptor for any Mojo's
|
|
|
|
found in the source tree, to include in the JAR. It is also used to generate
|
|
|
|
Xdoc files for the Mojos as well as for updating the plugin registry, the
|
|
|
|
artifact metadata and a generic help goal.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{base_name}-%{version} -a1
|
|
|
|
%patch0 -p1
|
2023-09-22 12:46:36 +02:00
|
|
|
%patch20
|
2019-03-29 18:08:01 +01:00
|
|
|
|
|
|
|
%pom_remove_plugin -r :maven-enforcer-plugin
|
|
|
|
|
|
|
|
%pom_xpath_inject "pom:project/pom:properties" "
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>"
|
|
|
|
|
2019-11-25 11:29:24 +01:00
|
|
|
# Remove test dependencies because tests are skipped anyways.
|
|
|
|
%pom_xpath_remove "pom:dependency[pom:scope='test']"
|
2019-03-29 18:08:01 +01:00
|
|
|
|
2019-04-01 16:07:22 +02:00
|
|
|
# For some reason, this dependency is not generated by javapackages-local
|
|
|
|
# and for some reasons if we give it a scope 'runtime' it works
|
|
|
|
%pom_remove_dep :maven-plugin-annotations maven-plugin-plugin
|
|
|
|
%pom_add_dep org.apache.maven.plugin-tools:maven-plugin-annotations:%{version}:runtime maven-plugin-plugin
|
2019-03-29 18:08:01 +01:00
|
|
|
|
|
|
|
%{mvn_package} :maven-plugin-tools __noinstall
|
|
|
|
|
|
|
|
%build
|
|
|
|
mkdir -p lib
|
|
|
|
build-jar-repository -s lib \
|
2023-09-22 12:46:36 +02:00
|
|
|
atinject \
|
|
|
|
commons-cli \
|
|
|
|
guava/guava \
|
|
|
|
guice/google-guice \
|
|
|
|
jdom2/jdom2 \
|
2019-03-29 18:08:01 +01:00
|
|
|
maven-doxia/doxia-logging-api \
|
|
|
|
maven-doxia/doxia-sink-api \
|
|
|
|
maven-doxia-sitetools/doxia-site-renderer \
|
|
|
|
maven/maven-artifact \
|
|
|
|
maven/maven-compat \
|
|
|
|
maven/maven-core \
|
|
|
|
maven/maven-model \
|
|
|
|
maven/maven-plugin-api \
|
|
|
|
maven/maven-plugin-registry \
|
|
|
|
maven/maven-repository-metadata \
|
2023-09-22 12:46:36 +02:00
|
|
|
maven/maven-settings \
|
2019-03-29 18:08:01 +01:00
|
|
|
maven-plugin-tools/maven-plugin-annotations \
|
|
|
|
maven-plugin-tools/maven-plugin-tools-api \
|
|
|
|
maven-plugin-tools/maven-plugin-tools-generators \
|
|
|
|
maven-reporting-api/maven-reporting-api \
|
|
|
|
maven-reporting-impl/maven-reporting-impl \
|
2023-09-22 12:46:36 +02:00
|
|
|
maven-resolver/maven-resolver-api \
|
|
|
|
objectweb-asm/asm \
|
|
|
|
org.eclipse.sisu.inject \
|
|
|
|
org.eclipse.sisu.plexus \
|
|
|
|
plexus-classworlds \
|
|
|
|
plexus/cli \
|
|
|
|
plexus-containers/plexus-component-annotations \
|
|
|
|
plexus-metadata-generator \
|
|
|
|
plexus/plexus-build-api \
|
2019-03-29 18:08:01 +01:00
|
|
|
plexus/utils \
|
|
|
|
plexus-velocity/plexus-velocity \
|
2023-09-22 12:46:36 +02:00
|
|
|
qdox \
|
2019-03-29 18:08:01 +01:00
|
|
|
velocity
|
|
|
|
|
2019-03-29 22:55:53 +01:00
|
|
|
%{mvn_file} :%{artifactId} %{base_name}/%{artifactId}
|
2019-03-29 18:08:01 +01:00
|
|
|
pushd %{artifactId}
|
2023-09-22 12:46:36 +02:00
|
|
|
%{ant} -v \
|
2019-03-29 18:08:01 +01:00
|
|
|
-Dtest.skip=true \
|
|
|
|
jar
|
|
|
|
popd
|
2023-09-03 13:08:50 +02:00
|
|
|
%{mvn_artifact} pom.xml
|
|
|
|
%{mvn_artifact} %{artifactId}/pom.xml %{artifactId}/target/%{artifactId}-%{version}.jar
|
2019-03-29 18:08:01 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%mvn_install
|
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
%license LICENSE NOTICE
|
|
|
|
|
|
|
|
%changelog
|