question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add dependencies pom.xml of my project:

Failed to collect dependencies for ... Could not transfer artifact ... from/to central ... Failed to transfer file ... Return code is: 501 , ReasonPhrase:HTTPS Required. -> [Help 1]
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.mycompany</groupId>
    <artifactId>PokemonProject</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>jar</packaging>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
    </properties>
    <repositories>
	<repository>
            <id>jitpack.io</id>
            <url>https://jitpack.io</url>
	</repository>
    </repositories>
    <dependencies>
        <dependency>
            <groupId>com.github.PokeAPI</groupId>
            <artifactId>pokekotlin</artifactId>
            <version>2.3.1</version>
            <type>jar</type>
        </dependency>
    </dependencies>
</project>

When trying to run my project I get the error of:

Failed to execute goal on project PokemonProject: Could not resolve dependencies for project com.mycompany:PokemonProject:jar:1.0-SNAPSHOT: Failed to collect dependencies for [com.github.PokeAPI:pokekotlin:jar:2.3.1 (compile)]: Failed to read artifact descriptor for com.squareup.retrofit2:retrofit:jar:2.8.1: Could not transfer artifact com.squareup.retrofit2:retrofit:pom:2.8.1 from/to central (http://repo.maven.apache.org/maven2): Failed to transfer file: http://repo.maven.apache.org/maven2/com/squareup/retrofit2/retrofit/2.8.1/retrofit-2.8.1.pom. Return code is: 501 , ReasonPhrase:HTTPS Required. -> [Help 1]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
BenjaminChilsoncommented, May 8, 2020

Maven in IDE was different from Maven installed seperatley. IDE Maven was an earlier version, brought up to 3.6.3 after updating.

HTTPS error has gone away.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is SSL/HTTPS not working on my site? - Support | one.com
There can be several reasons why SSL/HTTPS is not working on your site. Please see if one of the causes listed below helps...
Read more >
Upgrading to HTTPS: Common Issues and Solutions
The Issues: Cost, Complexity, Compatibility, and Confidence. The dangers of MitM attacks make you think everything should be served as HTTPS.
Read more >
HTTPS report - Search Console Help
The HTTPS report shows how many indexed URLs on your site are HTTP vs HTTPS. ... If a site has a lot of...
Read more >
5 Serious Problems with HTTPS and SSL Security on the Web
5 Serious Problems with HTTPS and SSL Security on the Web · The Sheer Number of Certificate Authorities · Certificate Authorities Haven't Always ......
Read more >
A Simple Explanation of SSL Certificate Errors & How to Fix ...
You can identify encrypted sites by the HTTPS in their URLs and the padlock icon in ... These issues result in the following...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found