Skip to content

Commit

Permalink
fix: Use https for Maven Central downloads
Browse files Browse the repository at this point in the history
fixes jenkins-x#6534

Signed-off-by: Andrew Bayer <[email protected]>
  • Loading branch information
abayer committed Jan 15, 2020
1 parent 159b018 commit 23946ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/step/step_wait_for_artifact.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const (
optionArtifact = "artifact"
optionVersion = "version"
optionPollTime = "poll-time"
DefaultMavenCentralRepo = "http://central.maven.org/maven2/"
DefaultMavenCentralRepo = "https://repo1.maven.org/maven2/"
)

// StepWaitForArtifactOptions contains the command line flags
Expand Down
2 changes: 1 addition & 1 deletion pkg/maven/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func InstallMavenIfRequired() error {
return nil
}
// lets assume maven is not installed so lets download it
clientURL := fmt.Sprintf("http://central.maven.org/maven2/org/apache/maven/apache-maven/%s/apache-maven-%s-bin.zip", MavenVersion, MavenVersion)
clientURL := fmt.Sprintf("https://repo1.maven.org/maven2/org/apache/maven/apache-maven/%s/apache-maven-%s-bin.zip", MavenVersion, MavenVersion)

log.Logger().Infof("Apache Maven is not installed so lets download: %s", util.ColorInfo(clientURL))

Expand Down

0 comments on commit 23946ac

Please sign in to comment.