Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oracle POM files with wrong enconding

3676415Mar 21 2018 — edited Sep 27 2018

Hi there,

I'm trying to download ojdbc8 from the Maven repo using Gradle (version 4.5.1) and I'm getting an error about the POM enconding. I believe this has been fixed in the past (more details in the comments in ojdbc8 12.2.0.1 missing from Oracle maven repository?), but somehow regressed now.

My Gradle configuration is as follows:

...

dependencies {

 compile group: 'com.oracle.jdbc', name: 'ojdbc8', version:'12.2.0.1'

}

repositories {

 mavenCentral()

 maven {  
      credentials {

         username 'username'  
         password 'password'  
      }

      url '[https://www.oracle.com/content/secure/maven/content](https://www.oracle.com/content/secure/maven/content)

 }

}

And when I try to do Gradle build I get the following error:

FAILURE: Build failed with an exception.

* What went wrong:

Could not resolve all files for configuration ':compileClasspath'.

> Could not resolve com.oracle.jdbc:orai18n:12.2.0.1.

Required by:

  project : > com.oracle.jdbc:ojdbc8:12.2.0.1                                                                                            

Could not resolve com.oracle.jdbc:orai18n:12.2.0.1.

  > Could not parse POM [https://www.oracle.com/content/secure/maven/content/com/oracle/jdbc/orai18n/12.2.0.1/orai18n-12.2.0.1.pom](https://www.oracle.com/content/secure/maven/content/com/oracle/jdbc/orai18n/12.2.0.1/orai18n-12.2.0.1.pom)        

     > Invalid byte 1 of 1-byte UTF-8 sequence.                                                                                          

> Could not resolve com.oracle.jdbc:xmlparserv2:12.2.0.1.

Required by:

  project : > com.oracle.jdbc:ojdbc8:12.2.0.1                                                                                            

Could not resolve com.oracle.jdbc:xmlparserv2:12.2.0.1.

  > Could not parse POM [https://www.oracle.com/content/secure/maven/content/com/oracle/jdbc/xmlparserv2/12.2.0.1/xmlparserv2-12.2.0.1.pom](https://www.oracle.com/content/secure/maven/content/com/oracle/jdbc/xmlparserv2/12.2.0.1/xmlparserv2-12.2.0.1.pom)

     > Invalid byte 1 of 1-byte UTF-8 sequence.                                                                                          

> Could not resolve com.oracle.jdbc:xdb6:12.2.0.1.

Required by:

  project : > com.oracle.jdbc:ojdbc8:12.2.0.1                                                                                            

Could not resolve com.oracle.jdbc:xdb6:12.2.0.1.

  > Could not parse POM [https://www.oracle.com/content/secure/maven/content/com/oracle/jdbc/xdb6/12.2.0.1/xdb6-12.2.0.1.pom](https://www.oracle.com/content/secure/maven/content/com/oracle/jdbc/xdb6/12.2.0.1/xdb6-12.2.0.1.pom)              

     > Invalid byte 1 of 1-byte UTF-8 sequence.                                                                                          

> Could not resolve com.oracle.jdbc:oraclepki:12.2.0.1.

Required by:

  project : > com.oracle.jdbc:ojdbc8:12.2.0.1                                                                                            

Could not resolve com.oracle.jdbc:oraclepki:12.2.0.1.

  > Could not parse POM [https://www.oracle.com/content/secure/maven/content/com/oracle/jdbc/oraclepki/12.2.0.1/oraclepki-12.2.0.1.pom](https://www.oracle.com/content/secure/maven/content/com/oracle/jdbc/oraclepki/12.2.0.1/oraclepki-12.2.0.1.pom)    

     > Invalid byte 1 of 1-byte UTF-8 sequence.                                                                                          

> Could not resolve com.oracle.jdbc:osdt_cert:12.2.0.1.

Required by:

  project : > com.oracle.jdbc:ojdbc8:12.2.0.1                                                                                            

Could not resolve com.oracle.jdbc:osdt_cert:12.2.0.1.

  > Could not parse POM [https://www.oracle.com/content/secure/maven/content/com/oracle/jdbc/osdt_cert/12.2.0.1/osdt_cert-12.2.0.1.pom](https://www.oracle.com/content/secure/maven/content/com/oracle/jdbc/osdt_cert/12.2.0.1/osdt_cert-12.2.0.1.pom)    

     > Invalid byte 1 of 1-byte UTF-8 sequence.                                                                                          

> Could not resolve com.oracle.jdbc:osdt_core:12.2.0.1.

Required by:

  project : > com.oracle.jdbc:ojdbc8:12.2.0.1                                                                                            

Could not resolve com.oracle.jdbc:osdt_core:12.2.0.1.

  > Could not parse POM [https://www.oracle.com/content/secure/maven/content/com/oracle/jdbc/osdt_core/12.2.0.1/osdt_core-12.2.0.1.pom](https://www.oracle.com/content/secure/maven/content/com/oracle/jdbc/osdt_core/12.2.0.1/osdt_core-12.2.0.1.pom)    

     > Invalid byte 1 of 1-byte UTF-8 sequence.                                                                                          

> Could not resolve com.oracle.jdbc:ons:12.2.0.1.

Required by:

  project : > com.oracle.jdbc:ojdbc8:12.2.0.1 > com.oracle.jdbc:ucp:12.2.0.1                                                             

Could not resolve com.oracle.jdbc:ons:12.2.0.1.

  > Could not parse POM [https://www.oracle.com/content/secure/maven/content/com/oracle/jdbc/ons/12.2.0.1/ons-12.2.0.1.pom](https://www.oracle.com/content/secure/maven/content/com/oracle/jdbc/ons/12.2.0.1/ons-12.2.0.1.pom)                

     > Invalid byte 1 of 1-byte UTF-8 sequence.                                                                                          

According to the other discussion, this means that the encoding on the POM files are different than UTF-8.

I've download one of the problematic POM files to confirm this, e.g. https://www.oracle.com/content/secure/maven/content/com/oracle/jdbc/ojdbc8/12.2.0.1/ojdbc8-12.2.0.1.pom and was able to confirm that they in fact have a different enconding, other than the one specified in the POM file (UTF-8).

pastedImage_18.png

Could someone help fixing this?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 25 2018
Added on Mar 21 2018
15 comments
2,627 views