Name: maven-invoker Version: 3.1.0 Release: 15%{?dist} Summary: Fires a maven build in a clean environment # Automatically converted from old format: ASL 2.0 - review is highly recommended. License: Apache-2.0 URL: https://maven.apache.org/shared/maven-invoker/ BuildArch: noarch ExclusiveArch: %{java_arches} noarch Source0: https://repo1.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip # Patch rejected upstream Patch1: %{name}-MSHARED-279.patch # Disable two tests that are affected by bug in maven-surefire version 3.0.0-M6 # https://issues.apache.org/jira/browse/SUREFIRE-2056 # The bug is fixed in maven-surefire 3.0.0-M7. Patch2: 0001-Disable-two-tests-in-DefaultInvokerTest.java.patch BuildRequires: maven-local BuildRequires: java-11-openjdk-devel BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.maven.shared:maven-shared-components:pom:) BuildRequires: mvn(org.codehaus.plexus:plexus-utils) BuildRequires: mvn(org.eclipse.sisu:sisu-maven-plugin) BuildRequires: mvn(org.eclipse.sisu:org.eclipse.sisu.inject) # Required by tests BuildRequires: maven-antrun-plugin BuildRequires: maven-clean-plugin %description This API is concerned with firing a Maven build in a new JVM. It accomplishes its task by building up a conventional Maven command line from options given in the current request, along with those global options specified in the invoker itself. Once it has the command line, the invoker will execute it, and capture the resulting exit code or any exception thrown to signal a failure to execute. Input/output control can be specified using an InputStream and up to two InvocationOutputHandlers. This is a replacement package for maven-shared-invoker %package javadoc Summary: Javadoc for %{name} %description javadoc API documentation for %{name}. %prep %setup -q # Change line endings so patch can be applied sed -i 's/\r$//' src/main/java/org/apache/maven/shared/invoker/MavenCommandLineBuilder.java sed -i 's/\r$//' src/test/java/org/apache/maven/shared/invoker/DefaultInvokerTest.java %patch -P 1 -p1 %patch -P 2 -p1 %pom_change_dep javax.inject:javax.inject:1 org.eclipse.sisu:org.eclipse.sisu.inject %pom_xpath_set "pom:project/pom:properties/pom:javaVersion" "8" pom.xml %build %mvn_build -f %install %mvn_install %files -f .mfiles %doc LICENSE NOTICE %files javadoc -f .mfiles-javadoc %doc LICENSE NOTICE %changelog * Wed Jul 24 2024 Miroslav Suchý - 3.1.0-15 - convert license to SPDX * Thu Jul 18 2024 Fedora Release Engineering - 3.1.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Mar 01 2024 Markku Korkeala - 3.1.0-13 - Set maven javaVersion to 8, closes rhbz#2266668 * Tue Feb 27 2024 Jiri Vanek - 3.1.0-12 - Rebuilt for java-21-openjdk as system jdk * Thu Jan 25 2024 Fedora Release Engineering - 3.1.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 3.1.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Oct 16 2023 Markku Korkeala - 3.1.0-9 - Disable tests for now, as more tests fail - Fix patchN is deprecated warnings. * Thu Jul 20 2023 Fedora Release Engineering - 3.1.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 3.1.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Aug 03 2022 Markku Korkeala - 3.1.0-6 - Add Patch2 to disable two tests, resolves RHBZ#2113508 and RHBZ#2105374. * Thu Jul 21 2022 Fedora Release Engineering - 3.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jul 08 2022 Jiri Vanek - 3.1.0-4 - Rebuilt for Drop i686 JDKs * Sat Feb 05 2022 Jiri Vanek - 3.1.0-3 - Rebuilt for java-17-openjdk as system jdk * Thu Jan 20 2022 Fedora Release Engineering - 3.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Aug 05 2021 Markku Korkeala - 3.1.0-1 - Update to upstream version 3.1.0 - Update dependencies * Thu Jul 22 2021 Fedora Release Engineering - 3.0.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 3.0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 3.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jul 10 2020 Jiri Vanek - 3.0.1-3 - Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11 * Wed Jan 29 2020 Fedora Release Engineering - 3.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Aug 08 2019 Marian Koncek - 3.0.1-1 - Update to upstream version 3.0.1 * Thu Jul 25 2019 Fedora Release Engineering - 2.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 2.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 2.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Feb 08 2018 Fedora Release Engineering - 2.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 2.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 2.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Jun 15 2016 Mikolaj Izdebski - 2.2-4 - Regenerate build-requires - Remove old obsoletes/provides * Thu Feb 04 2016 Fedora Release Engineering - 2.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Mar 25 2015 Mikolaj Izdebski - 2.2-1 - Update to upstream version 2.2 * Sat Jun 07 2014 Fedora Release Engineering - 2.1.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Sep 23 2013 Mikolaj Izdebski - 2.1.1-10 - Fix failing tests * Mon Sep 23 2013 Michal Srb - 2.1.1-9 - Remove some tests which fail on koji * Mon Sep 23 2013 Michal Srb - 2.1.1-8 - Migrate to XMvn * Sat Aug 03 2013 Fedora Release Engineering - 2.1.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Mar 13 2013 Mikolaj Izdebski - 2.1.1-6 - Add patch for MSHARED-278, resolves rhbz#921068 - Add patch for MSHARED-279, resolves rhbz#921067 * Wed Feb 20 2013 Tomas Radej - 2.1.1-5 - Added B/R on maven-shared * Thu Feb 14 2013 Fedora Release Engineering - 2.1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Feb 06 2013 Java SIG - 2.1.1-3 - Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild - Replace maven BuildRequires with maven-local * Mon Jan 14 2013 Tomas Radej - 2.1.1-2 - Disabled tests * Fri Jan 11 2013 Tomas Radej - 2.1.1-1 - Initial version