Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error #64

Open
giraudisa opened this issue Mar 22, 2021 · 1 comment
Open

Build error #64

giraudisa opened this issue Mar 22, 2021 · 1 comment

Comments

@giraudisa
Copy link

I couldn't build openchemlib out of the box:

Unresolveable build extension: Failed to transfer file: http://repo.maven.apache.org/maven2/org/sonatype/plugins/nexus-staging-maven-plugin/1.6.3/nexus-staging-maven-plugin-1.6.3.pom. Return code is: 501 , ReasonPhrase:HTTPS Required.

Seems that https is now required: https://blog.sonatype.com/central-repository-moving-to-https
Beginning January 15, 2020, The Central Repository will no longer support communication over HTTP. Any attempts to access http://repo1.maven.org and http://repo.maven.apache.org/ will result in an error, and users will need to update their builds to resolve dependencies over HTTPS.

I could solve the error by inserting this snip in the settings.xml file. Maybe it helps other beginners...

<mirrors>
    <mirror>
      <id>other-mirror</id>
      <name>Other Mirror Repository</name>
      <url>https://repo.maven.apache.org/maven2</url>
      <mirrorOf>central</mirrorOf>
    </mirror>
  </mirrors>
@artaius
Copy link
Contributor

artaius commented Mar 23, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants