Problem to download Maven dependencies in Netbeans

Asked

Viewed 262 times

-1

I am Noob on Maven and I ended up picking up a project I’m having trouble running in netbeans:

> Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of
> its dependencies could not be resolved: Failed to read artifact
> descriptor for
> org.apache.maven.plugins:maven-resources-plugin:jar:2.5: Could not
> transfer artifact
> org.apache.maven.plugins:maven-resources-plugin:pom:2.5 from/to
> central (http://repo.maven.apache.org/maven2): Failed to transfer
> file:
> http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.5/maven-resources-plugin-2.5.pom.
> Return code is: 501 , ReasonPhrase:HTTPS Required. -> [Help 1]

Some daredevil could give me a light?

  • https://stackoverflow.com/questions/59763531/maven-dependencies-are-failing-with-a-501-error

1 answer

0

I decided to insert the code below in my pom.xml

  <repositories>
     <repository>
            <id>central</id>
            <name>Central Repository</name>
            <url>https://repo.maven.apache.org/maven2</url>
            <layout>default</layout>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository> 
     </repositories>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.