diff --git a/maven-invoker-3.0.1-source-release.zip b/maven-invoker-3.0.1-source-release.zip
deleted file mode 100644
index fb2dfbe..0000000
--- a/maven-invoker-3.0.1-source-release.zip
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:067c02cf396a42388cb0804afcaf25225dd168526b2f283f2b4127de9002c33f
-size 85361
diff --git a/maven-invoker-3.1.0-source-release.zip b/maven-invoker-3.1.0-source-release.zip
new file mode 100644
index 0000000..ed565ed
--- /dev/null
+++ b/maven-invoker-3.1.0-source-release.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:be08a9c7c88745e7ab50389ad50c9a14dbb03ec150d51622b531796ae221b757
+size 89480
diff --git a/maven-invoker-build.xml b/maven-invoker-build.xml
index 9df7f09..3a8f587 100644
--- a/maven-invoker-build.xml
+++ b/maven-invoker-build.xml
@@ -10,7 +10,7 @@
-
+
@@ -22,10 +22,7 @@
-
-
-
-
+
@@ -37,11 +34,6 @@
-
-
-
-
-
@@ -74,118 +66,25 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- =================================== WARNING ===================================
- JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed.
- ===============================================================================
+ description="Generate javax.inject.Name index">
+
+
+
+
+
+
+
+
+
+
+
@@ -221,24 +120,24 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/maven-invoker.changes b/maven-invoker.changes
index eda22de..c587072 100644
--- a/maven-invoker.changes
+++ b/maven-invoker.changes
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Mon Apr 25 18:38:03 UTC 2022 - Fridrich Strba
+
+- Upgrade to upstream version 3.1.0
+ * Fixes build with maven-shared-utils 3.3.3
+
-------------------------------------------------------------------
Sun Mar 20 19:33:22 UTC 2022 - Fridrich Strba
diff --git a/maven-invoker.spec b/maven-invoker.spec
index 48647a9..0d12494 100644
--- a/maven-invoker.spec
+++ b/maven-invoker.spec
@@ -16,36 +16,27 @@
#
-%bcond_with tests
Name: maven-invoker
-Version: 3.0.1
+Version: 3.1.0
Release: 0
Summary: An API for firing a maven build in a clean environment
License: Apache-2.0
Group: Development/Libraries/Java
-URL: http://maven.apache.org/shared/maven-invoker/
-Source0: http://repo1.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip
+URL: https://maven.apache.org/shared/maven-invoker/
+Source0: https://repo1.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip
Source1: %{name}-build.xml
# Patch rejected upstream
Patch1: %{name}-MSHARED-279.patch
BuildRequires: ant
+BuildRequires: atinject
BuildRequires: fdupes
BuildRequires: javapackages-local
-BuildRequires: maven-shared-utils
-BuildRequires: plexus-containers-component-annotations
-BuildRequires: plexus-metadata-generator
-BuildRequires: plexus-utils
+BuildRequires: maven-shared-utils >= 3.3.3
+BuildRequires: sisu-inject
BuildRequires: unzip
Requires: mvn(org.apache.maven.shared:maven-shared-utils)
-Requires: mvn(org.codehaus.plexus:plexus-component-annotations)
-Requires: mvn(org.codehaus.plexus:plexus-utils)
+Requires: mvn(org.eclipse.sisu:org.eclipse.sisu.inject)
BuildArch: noarch
-%if %{with tests}
-BuildRequires: ant-junit
-BuildRequires: maven-local
-BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
-BuildRequires: mvn(org.apache.maven.plugins:maven-clean-plugin)
-%endif
%description
This API is concerned with firing a Maven build in a new JVM. It accomplishes
@@ -67,23 +58,18 @@ API documentation for %{name}.
%prep
%setup -q
+sed -i 's/\r$//' src/main/java/org/apache/maven/shared/invoker/MavenCommandLineBuilder.java
cp %{SOURCE1} build.xml
%patch1 -p1
+%pom_change_dep javax.inject:javax.inject:1 org.eclipse.sisu:org.eclipse.sisu.inject
%pom_remove_parent .
%pom_xpath_inject pom:project "org.apache.maven.shared" .
%build
mkdir -p lib
-build-jar-repository -s lib plexus/utils plexus-containers/plexus-component-annotations maven-shared-utils/maven-shared-utils
-%if %{with tests}
- export M2_HOME=%{_datadir}/xmvn
-%endif
-%{ant} \
-%if %{without tests}
- -Dtest.skip=true \
-%endif
- jar javadoc
+build-jar-repository -s lib maven-shared-utils org.eclipse.sisu.inject atinject
+%{ant} jar javadoc
%install
# jar