Fix maven-compiler-plugin configuration

Related: rhbz#1976978
This commit is contained in:
Mikolaj Izdebski 2021-06-28 12:18:17 +02:00
parent 533b10e957
commit 8e799957f6

View File

@ -18,7 +18,6 @@ BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires: zip BuildRequires: zip
Requires: jzlib >= 0:1.0.5 Requires: jzlib >= 0:1.0.5
Obsoletes: %{name}-demo < %{version}
%description %description
JSch allows you to connect to an sshd server and use port forwarding, JSch allows you to connect to an sshd server and use port forwarding,
@ -35,17 +34,14 @@ Summary: Javadoc for %{name}
%setup -q %setup -q
%mvn_file : jsch %mvn_file : jsch
# remove unnecessary dependency on parent POM
%pom_remove_parent %pom_remove_parent
%pom_remove_plugin :maven-javadoc-plugin %pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-compiler-plugin
%pom_xpath_remove pom:project/pom:build/pom:extensions %pom_xpath_remove pom:project/pom:build/pom:extensions
%pom_xpath_set pom:project/pom:version %{version} %pom_xpath_set pom:project/pom:version %{version}
# Java 5 is too old
%pom_xpath_remove 'pom:plugin[pom:artifactId="maven-compiler-plugin"]//pom:target'
%build %build
%mvn_build %mvn_build
@ -89,12 +85,24 @@ zip target/%{name}-%{version}.jar plugin.properties
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.54-11 * Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.54-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.1.55-3
- Mass rebuild for javapackages-tools 201902
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.54-10 * Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.54-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.1.55-2
- Mass rebuild for javapackages-tools 201901
* Mon May 13 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.1.55-1
- Update to upstream version 0.1.55
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.54-9 * Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.54-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Wed Sep 5 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.1.54-7
- Remove unneeded maven-compiler-plugin configuration
* Tue Aug 07 2018 Michael Simacek <msimacek@redhat.com> - 0.1.54-8 * Tue Aug 07 2018 Michael Simacek <msimacek@redhat.com> - 0.1.54-8
- Fix FTBFS - Fix FTBFS