Tibor17 commented on a change in pull request #19: [MDEP-579] - Add mirrors, 
proxies and authentication for remote repositories.
URL: 
https://github.com/apache/maven-dependency-plugin/pull/19#discussion_r315697110
 
 

 ##########
 File path: src/test/java/org/apache/maven/plugins/dependency/TestGetMojo.java
 ##########
 @@ -48,7 +62,14 @@ protected void setUp()
         assertNotNull( mojo );
 
         LegacySupport legacySupport = lookup( LegacySupport.class );
-        legacySupport.setSession( newMavenSession( new MavenProjectStub() ) );
+        MavenSession session = newMavenSession(new MavenProjectStub());
+        Settings settings = session.getSettings();
+        Server server = new Server();
+        server.setId( "myserver" );
+        server.setUsername( "foo" );
+        server.setPassword( "bar" );
+        settings.addServer(server);
 
 Review comment:
   add spaces like his: `settings.addServer( server )`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to