You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2020/01/18 11:41:29 UTC

[maven-reporting-exec] branch https created (now 271afaa)

This is an automated email from the ASF dual-hosted git repository.

rfscholte pushed a change to branch https
in repository https://gitbox.apache.org/repos/asf/maven-reporting-exec.git.


      at 271afaa  http to central not supported anymore, switch to https

This branch includes the following new commits:

     new 271afaa  http to central not supported anymore, switch to https

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-reporting-exec] 01/01: http to central not supported anymore, switch to https

Posted by rf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rfscholte pushed a commit to branch https
in repository https://gitbox.apache.org/repos/asf/maven-reporting-exec.git

commit 271afaaba7e28e766660d4c78459027ea945e0ea
Author: rfscholte <rf...@apache.org>
AuthorDate: Sat Jan 18 12:41:22 2020 +0100

    http to central not supported anymore, switch to https
---
 .../maven/reporting/exec/TestDefaultMavenReportExecutor.java       | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/test/java/org/apache/maven/reporting/exec/TestDefaultMavenReportExecutor.java b/src/test/java/org/apache/maven/reporting/exec/TestDefaultMavenReportExecutor.java
index ced71fb..89c3726 100644
--- a/src/test/java/org/apache/maven/reporting/exec/TestDefaultMavenReportExecutor.java
+++ b/src/test/java/org/apache/maven/reporting/exec/TestDefaultMavenReportExecutor.java
@@ -38,6 +38,7 @@ import org.apache.maven.model.PluginManagement;
 import org.apache.maven.plugin.testing.stubs.MavenProjectStub;
 import org.apache.maven.project.MavenProject;
 import org.apache.maven.repository.RepositorySystem;
+import org.apache.maven.settings.Mirror;
 import org.apache.maven.settings.Settings;
 import org.apache.maven.settings.building.DefaultSettingsBuildingRequest;
 import org.apache.maven.settings.building.SettingsBuilder;
@@ -210,6 +211,12 @@ public class TestDefaultMavenReportExecutor
         } );
         final Settings settings = getSettings();
 
+        Mirror centralMirror = new Mirror();
+        centralMirror.setId("httpsCentral");
+        centralMirror.setMirrorOf( "central" );
+        centralMirror.setUrl( "https://repo.maven.apache.org/maven2" );
+        request.setMirrors( Collections.singletonList( centralMirror ) );
+
         getContainer().lookup( MavenExecutionRequestPopulator.class ).populateFromSettings( request, settings );
 
         getContainer().lookup( MavenExecutionRequestPopulator.class ).populateDefaults( request );