File: 02-maven-compatibility.patch

package info (click to toggle)
maven-artifact-transfer 0.9.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 592 kB
  • sloc: java: 4,268; xml: 241; sh: 10; makefile: 4
file content (36 lines) | stat: -rw-r--r-- 1,480 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Description: Fixes the compatibility with the version of Maven in Debian
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: no
--- a/src/main/java/org/apache/maven/shared/dependencies/collect/internal/Maven31ArtifactRepositoryAdapter.java
+++ b/src/main/java/org/apache/maven/shared/dependencies/collect/internal/Maven31ArtifactRepositoryAdapter.java
@@ -263,4 +263,13 @@
         }
         return true;
     }
+
+    public List<ArtifactRepository> getMirroredRepositories()
+    {
+        return java.util.Collections.emptyList();
+    }
+
+    public void setMirroredRepositories( List<ArtifactRepository> mirroredRepositories )
+    {
+    }
 }
--- a/pom.xml
+++ b/pom.xml
@@ -88,12 +88,12 @@
             <configuration>
               <artifactSet>
                 <includes>
-                  <include>org.eclipse.aether:aether-util</include>
+                  <include>org.apache.maven.resolver:maven-resolver-util</include>
                 </includes>
               </artifactSet>
               <filters>
                 <filter>
-                  <artifact>org.eclipse.aether:aether-util</artifact>
+                  <artifact>org.apache.maven.resolver:maven-resolver-util</artifact>
                   <includes>
                     <!-- to prevent java.lang.ClassNotFoundException: org.eclipse.aether.util.artifact.SubArtifact (M3.1.1 - M3.3.3) -->
                     <include>org/eclipse/aether/util/artifact/SubArtifact.class</include>