5 Replies Latest reply on Mar 7, 2019 1:00 AM by Gianni Ceresa

    Is the Maven repo really available?

    Gianni Ceresa


      I was following https://docs.oracle.com/cd/E56133_01/latest/tutorials/build-pgx-client-maven.html  to not have to import all the JARs by hand anymore but it just keeps failing in downloading the pgx-client-3.2.0.pom and the JAR too (and obviously because of that no other dependency is resolved).

      Is that JAR really available publicly on the Oracle Maven repo?


      I did the setup as covered in the tutorial, double checked the config with https://docs.oracle.com/middleware/1213/core/MAVEN/config_maven_repo.htm#MAVEN9010 (where you are redirected after accepting the license), but still nothing.

      I'm definitely not an expert with Maven, but every single log I look at keep saying it can't download these files.


      [INFO] Scanning for projects...


      [INFO] -----------------< ch.datalysis.dev:pgxclient >-----------------

      [INFO] Building pgxclient 0.0.1-SNAPSHOT

      [INFO] --------------------------------[ jar ]---------------------------------

      Downloading from maven.oracle.com: https://maven.oracle.com/oracle/pgx/pgx-client/3.2.0/pgx-client-3.2.0.pom

      Downloading from central: https://repo.maven.apache.org/maven2/oracle/pgx/pgx-client/3.2.0/pgx-client-3.2.0.pom

      [WARNING] The POM for oracle.pgx:pgx-client:jar:3.2.0 is missing, no dependency information available

      Downloading from maven.oracle.com: https://maven.oracle.com/oracle/pgx/pgx-client/3.2.0/pgx-client-3.2.0.jar

      Downloading from central: https://repo.maven.apache.org/maven2/oracle/pgx/pgx-client/3.2.0/pgx-client-3.2.0.jar

      [INFO] ------------------------------------------------------------------------


      [INFO] ------------------------------------------------------------------------

      [INFO] Total time:  6.141 s

      [INFO] Finished at: 2019-03-06T13:28:30+01:00

      [INFO] ------------------------------------------------------------------------

      [ERROR] Failed to execute goal on project pgxclient: Could not resolve dependencies for project ch.datalysis.dev:pgxclient:jar:0.0.1-SNAPSHOT: Could not find artifact oracle.pgx:pgx-client:jar:3.2.0 in maven.oracle.com (https://maven.oracle.com) -> [Help 1]


      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

      [ERROR] Re-run Maven using the -X switch to enable full debug logging.


      [ERROR] For more information about the errors and possible solutions, please read the following articles:

      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException


      When using the -X I see it finds the server setting with username(email)/password, but still just can't get the files.


      Did somebody test this outside of Oracle network and without any Oracle VPN or special credentials?


      I'm using Maven 3.6.0 on Windows 10 with Java 1.8.0_201.