2019-03-29 18:08:01 +01:00
|
|
|
#
|
2024-01-22 19:26:01 +01:00
|
|
|
# spec file for package maven-plugin-plugin-bootstrap
|
2019-03-29 18:08:01 +01:00
|
|
|
#
|
2024-01-22 19:26:01 +01:00
|
|
|
# Copyright (c) 2024 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
|
|
|
|
BuildRequires: javapackages-local
|
|
|
|
BuildRequires: maven-lib
|
|
|
|
BuildRequires: maven-plugin-annotations
|
|
|
|
BuildRequires: maven-plugin-tools-api
|
|
|
|
BuildRequires: maven-plugin-tools-generators
|
2023-09-22 12:46:36 +02:00
|
|
|
BuildRequires: maven-resolver-api
|
|
|
|
BuildRequires: plexus-build-api
|
2019-03-29 18:08:01 +01:00
|
|
|
BuildRequires: plexus-utils
|
|
|
|
BuildRequires: plexus-velocity
|
2024-04-02 19:39:00 +02:00
|
|
|
BuildRequires: plexus-xml
|
2023-09-22 12:46:36 +02:00
|
|
|
BuildRequires: sisu-inject
|
|
|
|
BuildRequires: sisu-plexus
|
2019-03-29 18:08:01 +01:00
|
|
|
BuildRequires: unzip
|
|
|
|
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
|
2024-02-20 15:40:07 +01:00
|
|
|
%patch -P 0 -p1
|
|
|
|
%patch -P 20
|
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
|
|
|
|
2024-04-02 19:39:00 +02:00
|
|
|
for i in maven-plugin-report-plugin maven-plugin-tools-annotations maven-plugin-tools-api maven-plugin-tools-generators maven-script; do
|
|
|
|
%pom_add_dep org.codehaus.plexus:plexus-xml:3.0.0 ${i}
|
|
|
|
done
|
|
|
|
|
2023-09-22 14:01:21 +02:00
|
|
|
%pom_remove_dep org.junit:junit-bom
|
|
|
|
%pom_remove_dep :maven-plugin-tools-ant maven-plugin-plugin
|
|
|
|
%pom_remove_dep :maven-plugin-tools-beanshell 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 \
|
2024-04-02 19:39:00 +02:00
|
|
|
maven/maven-artifact \
|
|
|
|
maven/maven-core \
|
|
|
|
maven/maven-model \
|
|
|
|
maven/maven-plugin-api \
|
|
|
|
maven/maven-repository-metadata \
|
|
|
|
maven/maven-settings \
|
|
|
|
maven-plugin-tools/maven-plugin-annotations \
|
|
|
|
maven-plugin-tools/maven-plugin-tools-api \
|
|
|
|
maven-plugin-tools/maven-plugin-tools-generators \
|
2023-09-22 12:46:36 +02:00
|
|
|
maven-resolver/maven-resolver-api \
|
2024-04-02 19:39:00 +02:00
|
|
|
org.eclipse.sisu.inject \
|
|
|
|
org.eclipse.sisu.plexus \
|
2023-09-22 12:46:36 +02:00
|
|
|
plexus/plexus-build-api \
|
2024-04-02 19:39:00 +02:00
|
|
|
plexus/utils \
|
|
|
|
plexus/xml \
|
|
|
|
plexus-velocity/plexus-velocity
|
2019-03-29 18:08:01 +01:00
|
|
|
|
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 13:17:36 +02:00
|
|
|
%{ant} \
|
2024-04-02 19:39:00 +02:00
|
|
|
-Dtest.skip=true \
|
|
|
|
jar
|
2019-03-29 18:08:01 +01:00
|
|
|
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
|