Maven and X-Pack 5.0.0-alpha5

Hi, I'm experimenting by porting a 2.x application to 5.0. This application requires Shield. When I depend on org.elasticsearch.plugin/x-pack/5.0.0-alpha5 (there's no beta1?), I get the following:

[ERROR] Failed to execute goal on project web.login: Could not resolve dependencies for project com.redbite:web.login:jar:0.3.1.BUILD-SNAPSHOT: Failed to collect dependencies at org.elasticsearch.plugin:x-pack:jar:5.0.0-alpha5 -> org.elasticsearch.plugin:transport-netty4-client-client:jar:5.0.0-alpha5: Failed to read artifact descriptor for org.elasticsearch.plugin:transport-netty4-client-client:jar:5.0.0-alpha5: Could not transfer artifact org.elasticsearch.plugin:transport-netty4-client-client:pom:5.0.0-alpha5 from/to elasticsearch-releases (https://maven.elasticsearch.org/releases): Not authorized , ReasonPhrase:Unauthorized. -> [Help 1]

Any ideas? Thanks.

You have to read that: https://www.elastic.co/guide/en/x-pack/5.0/api-java.html#_installing_xpackclient

And adapt your pom.
Basically add this repo:

<repositories>
      <!-- add the elasticsearch repo -->
      <repository>
         <id>elasticsearch-releases</id>
         <url>https://artifacts.elastic.co/maven</url>
         <releases>
            <enabled>true</enabled>
         </releases>
         <snapshots>
            <enabled>false</enabled>
         </snapshots>
      </repository>
   </repositories>

Then upgrade to the beta1 version.

HTH

Thanks. I did search, though apparently not well. Thanks!