Error with Astah plug-in SDK due to restricted access to Maven central repository

From January 15, 2020, connections to Maven’s central repository have been restricted to https.
This may cause errors when using Astah plug-in SDK.

Errors

When getting library file from Maven central repository, you may get errors such as
Return code is: 501, ReasonPhrase:HTTPS Required
or
Could not transfer artifact xxx from/to central.

Workaround

Select the configuration file to be edited that corresponds to your environment, and make the settings related to the repository.

  • To enable Maven settings for all users
    • Maven installed folder/conf/settings.xml
  • To enable Maven settings for each user
    • User-home/.m2/settings.xml
  • To enable Maven settings for only Astah plug-in SDK
    • Astah plug-in SDK installed folder/conf/settings.xml

 

If the central repository is explicitly specified as follows, modify the URL.

http://repo.maven.apache.org/maven2/https://repo.maven.apache.org/maven2/
http://repo1.maven.org/maven2/https://repo1.maven.org/maven2/

If the central repository is not explicitly specified, add settings for central repository.

(example)

<?xml version="1.0" encoding="UTF-8"?>
<settings>
...
 <mirrors>
     <mirror>
            <id>central-mirror</id>
            <mirrorOf>central</mirrorOf>
            <url>https://repo.maven.apache.org/maven2/</url>
      </mirror>
...
 </mirros>
...

That’s all, thank you!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s