Add this config to .m2 file
<mirrors>
<mirror>
<id>maven-default-http-blocker</id>
<mirrorOf>releases.java.net</mirrorOf>
<name>releases.java.net</name>
<url>YOUR REPO</url>
<blocked>false</blocked>
</mirror>
</mirrors>