Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP2:Update
maven-install-plugin.28016
0004-Fix-tests-with-maven-resolver-1.7.3.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0004-Fix-tests-with-maven-resolver-1.7.3.patch of Package maven-install-plugin.28016
From 41a42b6af91a486ce6822b5ed1d9a05e2ca33f59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fridrich=20=C5=A0trba?= <fridrich.strba@bluewin.ch> Date: Wed, 11 May 2022 10:32:19 +0200 Subject: [PATCH 4/4] Fix tests with maven-resolver 1.7.3 --- .../org/apache/maven/plugins/install/InstallFileMojoTest.java | 3 ++- .../java/org/apache/maven/plugins/install/InstallMojoTest.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/apache/maven/plugins/install/InstallFileMojoTest.java b/src/test/java/org/apache/maven/plugins/install/InstallFileMojoTest.java index bf040b1..34acb7a 100644 --- a/src/test/java/org/apache/maven/plugins/install/InstallFileMojoTest.java +++ b/src/test/java/org/apache/maven/plugins/install/InstallFileMojoTest.java @@ -31,6 +31,7 @@ import org.apache.maven.project.ProjectBuildingRequest; import org.apache.maven.shared.utils.ReaderFactory; import org.apache.maven.shared.utils.io.FileUtils; import org.eclipse.aether.DefaultRepositorySystemSession; +import org.eclipse.aether.internal.impl.DefaultTrackingFileManager; import org.eclipse.aether.internal.impl.EnhancedLocalRepositoryManagerFactory; import org.eclipse.aether.repository.LocalRepository; import org.eclipse.aether.repository.NoLocalRepositoryManagerException; @@ -287,7 +288,7 @@ public class InstallFileMojoTest MavenSession session = mock( MavenSession.class ); DefaultRepositorySystemSession repositorySession = new DefaultRepositorySystemSession(); repositorySession.setLocalRepositoryManager( - new EnhancedLocalRepositoryManagerFactory().newInstance( + new EnhancedLocalRepositoryManagerFactory( new DefaultTrackingFileManager() ).newInstance( repositorySession, new LocalRepository( LOCAL_REPO ) ) ); diff --git a/src/test/java/org/apache/maven/plugins/install/InstallMojoTest.java b/src/test/java/org/apache/maven/plugins/install/InstallMojoTest.java index ed73d2c..bcdd36e 100644 --- a/src/test/java/org/apache/maven/plugins/install/InstallMojoTest.java +++ b/src/test/java/org/apache/maven/plugins/install/InstallMojoTest.java @@ -39,6 +39,7 @@ import org.apache.maven.project.ProjectBuildingRequest; import org.apache.maven.shared.transfer.repository.RepositoryManager; import org.apache.maven.shared.utils.io.FileUtils; import org.eclipse.aether.DefaultRepositorySystemSession; +import org.eclipse.aether.internal.impl.DefaultTrackingFileManager; import org.eclipse.aether.internal.impl.EnhancedLocalRepositoryManagerFactory; import org.eclipse.aether.repository.LocalRepository; import org.eclipse.aether.repository.NoLocalRepositoryManagerException; @@ -350,7 +351,7 @@ public class InstallMojoTest MavenSession session = mock( MavenSession.class ); DefaultRepositorySystemSession repositorySession = new DefaultRepositorySystemSession(); repositorySession.setLocalRepositoryManager( - new EnhancedLocalRepositoryManagerFactory().newInstance( + new EnhancedLocalRepositoryManagerFactory( new DefaultTrackingFileManager() ).newInstance( repositorySession, new LocalRepository( LOCAL_REPO ) ) ); -- 2.36.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor