%bcond_with bootstrap Name: maven-compiler-plugin Version: 3.8.1 Release: 12%{?dist} Summary: Maven Compiler Plugin License: ASL 2.0 URL: https://maven.apache.org/plugins/maven-compiler-plugin BuildArch: noarch Source0: https://archive.apache.org/dist/maven/plugins/%{name}-%{version}-source-release.zip # port to plexus-languages 1.0.3 Patch0: 0001-plexus-languages-1.0.patch # Taken from upstream commit: https://github.com/apache/maven-compiler-plugin/commit/116b98153ef5ce7b13c0275324baa28bca8bc887 Patch1: 0002-MCOMPILER-359-Fix-for-NPE.patch BuildRequires: maven-local %if %{with bootstrap} BuildRequires: javapackages-bootstrap %else BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.maven:maven-artifact) BuildRequires: mvn(org.apache.maven:maven-compat) BuildRequires: mvn(org.apache.maven:maven-core) BuildRequires: mvn(org.apache.maven:maven-plugin-api) BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-plugins:pom:) BuildRequires: mvn(org.apache.maven.plugin-testing:maven-plugin-testing-harness) BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations) BuildRequires: mvn(org.apache.maven.shared:maven-shared-incremental) BuildRequires: mvn(org.apache.maven.shared:maven-shared-utils) BuildRequires: mvn(org.codehaus.plexus:plexus-compiler-api) BuildRequires: mvn(org.codehaus.plexus:plexus-compiler-javac) BuildRequires: mvn(org.codehaus.plexus:plexus-compiler-manager) BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata) BuildRequires: mvn(org.codehaus.plexus:plexus-java) BuildRequires: mvn(org.mockito:mockito-core) %endif %description The Compiler Plugin is used to compile the sources of your project. %package javadoc Summary: Javadoc for %{name} %description javadoc API documentation for %{name}. %prep %setup -q %patch0 -p1 %patch1 -p1 # Replace path to junit in a test case with the system wide .jar sed -i 's|localRepository,\ "junit/junit/3.8.1/junit-3.8.1.jar"|"%(find-jar junit || find-jar javapackages-bootstrap/junit)"|' src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java %build %mvn_build %install %mvn_install %files -f .mfiles %license LICENSE NOTICE %files javadoc -f .mfiles-javadoc %license LICENSE NOTICE %changelog * Sat Feb 05 2022 Jiri Vanek - 3.8.1-12 - Rebuilt for java-17-openjdk as system jdk * Thu Jan 20 2022 Fedora Release Engineering - 3.8.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 3.8.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon May 17 2021 Mikolaj Izdebski - 3.8.1-9 - Bootstrap build - Non-bootstrap build * Tue Jan 26 2021 Fedora Release Engineering - 3.8.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 3.8.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 20 2020 Mat Booth - 3.8.1-6 - Add patch for NPE during testCompile * Fri Jul 10 2020 Jiri Vanek - 3.8.1-5 - Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11 * Wed Jan 29 2020 Fedora Release Engineering - 3.8.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Nov 05 2019 Mikolaj Izdebski - 3.8.1-2 - Mass rebuild for javapackages-tools 201902 * Tue Oct 15 2019 Fabio Valentini - 3.8.1-3 - Port to plexus-languages 1.0. * Thu Jul 25 2019 Fedora Release Engineering - 3.8.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Jun 08 2019 Fabio Valentini - 3.8.1-1 - Update to version 3.8.1. * Tue Jun 04 2019 Marian Koncek - 3.8.1-1 - Update to upstream version 3.8.1 * Fri May 31 2019 Marian Koncek - 3.8.0-1 - Update to upstream version 3.8.0 * Fri May 24 2019 Mikolaj Izdebski - 3.7.0-3 - Mass rebuild for javapackages-tools 201901 * Fri Feb 01 2019 Fedora Release Engineering - 3.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Aug 06 2018 Michael Simacek - 3.8.0-1 - Update to upstream version 3.8.0 * Fri Jul 13 2018 Fedora Release Engineering - 3.7.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Feb 08 2018 Fedora Release Engineering - 3.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Sep 11 2017 Mikolaj Izdebski - 3.7.0-1 - Update to upstream version 3.7.0 * Wed Jul 26 2017 Fedora Release Engineering - 3.6.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 3.6.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jan 17 2017 Michael Simacek - 3.6.1-1 - Update to upstream version 3.6.1 * Tue Nov 08 2016 Michael Simacek - 3.6.0-2 - Add upstream patch for broken test skipping * Mon Oct 31 2016 Michael Simacek - 3.6.0-1 - Update to upstream version 3.6.0 * Fri Jul 15 2016 Mikolaj Izdebski - 3.5.1-4 - Remove dependency on Maven 2 toolchain * Fri Jul 15 2016 Mikolaj Izdebski - 3.5.1-3 - Add missing BR on maven-plugin-plugin * Fri Jul 8 2016 Mikolaj Izdebski - 3.5.1-2 - Remove unneeded build-requires * Tue Feb 16 2016 Mikolaj Izdebski - 3.5.1-1 - Update to upstream version 3.5.1 * Thu Feb 04 2016 Fedora Release Engineering - 3.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Jan 25 2016 Mikolaj Izdebski - 3.5-1 - Update to upstream version 3.5 * Wed Jun 17 2015 Fedora Release Engineering - 3.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Mar 26 2015 Mikolaj Izdebski - 3.3-1 - Update to upstream version 3.3 * Tue Oct 14 2014 Mikolaj Izdebski - 3.2-2 - Remove legacy Obsoletes/Provides for maven2 plugin * Tue Oct 14 2014 Mikolaj Izdebski - 3.2-1 - Update to upstream version 3.2 * Sat Jun 07 2014 Fedora Release Engineering - 3.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Mar 04 2014 Stanislav Ochotnicky - 3.1-5 - Use Requires: java-headless rebuild (#1067528) * Wed Feb 19 2014 Mikolaj Izdebski - 3.1-4 - Fix unowned directory * Sat Aug 03 2013 Fedora Release Engineering - 3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Apr 24 2013 Michal Srb - 3.1-2 - Build against proper maven-shared-incremental artifactId * Wed Apr 24 2013 Michal Srb - 3.1-1 - Update to upstream version 3.1 * Tue Mar 05 2013 Michal Srb - 3.0-2 - Build against proper plexus-compiler * Tue Jan 15 2013 Mikolaj Izdebski - 3.0-1 - Update to upstream version 3.0 - Build with xmvn - Install license files, resolves: rhbz#895544 * Thu Jul 19 2012 Fedora Release Engineering - 2.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jun 19 2012 Stanislav Ochotnicky - 2.5.1-1 - Updated to latest upstream version (2.5.1) * Wed May 23 2012 Tomas Radej - 2.4-1 - Updated to latest upstream version - Guidelines fixes + Removed RPM workaround * Fri Jan 13 2012 Fedora Release Engineering - 2.3.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Jun 27 2011 Stanislav Ochotnicky - 2.3.2-4 - Add few missing (Build)requires - Remove post(un) scriptlets with update_maven_depmap - Use new add_maven_depmap macro * Fri Jun 3 2011 Alexander Kurtakov 2.3.2-3 - Do not require maven2. - Guidelines fixes. * Tue Feb 08 2011 Fedora Release Engineering - 2.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Jan 19 2011 Stanislav Ochotnicky - 2.3.2-1 - Update to latest version (2.3.2) - Modifications according to new guidelines - Build with maven 3 * Wed May 12 2010 Alexander Kurtakov 2.0.2-2 - Add missing requires. * Tue May 11 2010 Alexander Kurtakov 2.0.2-1 - Initial package.