Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

How to Push new CUBRID JDBC driver to Clojars Maven Repository


Complete the following steps one by one to push an updated version of CUBRID JDBC driver to Clojars Maven Repository.

For CUBRID we maintain two artifacts at Clojars.org.

  1. cubrid/cubrid-jdbc
  2. org.clojars.cubrid/cubrid-jdbc

In this tutorial, I will show how to update CUBRID JDBC driver for both of them.

cubrid/cubrid-jdbc

  1. Download the latest version of CUBRID JDBC driver.
  2. Rename the file to cubrid-jdbc-8.4.1.2032.jar. Replace 8.4.1.2032 with the new version and build number.
  3. Create an MD5 hash file for it.
    md5sum cubrid-jdbc-8.4.1.2032.jar > cubrid-jdbc-8.4.1.2032.jar.md5
  4. Create a SHA1 hash file for it.
    sha1sum cubrid-jdbc-8.4.1.2032.jar > cubrid-jdbc-8.4.1.2032.jar.sha1
  5. Now create a new cubrid-jdbc-8.4.1.2032.pom file for it. Replace 8.4.1.2032 with the new version and build number. Adjust SVN links if necessary.
    <project>
      <modelVersion>4.0.0</modelVersion>
      <groupId>cubrid</groupId>
      <artifactId>cubrid-jdbc</artifactId>
      <version>8.4.1.2032</version>
      <packaging>jar</packaging>
    
      <name>CUBRID JDBC Connector</name>
      <description>CUBRID JDBC Connector is an API that allows users to connect to CUBRID database within applications whitten in Java.</description>
      <url>http://www.cubrid.org/wiki_apis/entry/cubrid-jdbc-driver</url>
    
      <licenses>
        <license>
          <name>BSD License</name>
          <url>http://www.cubrid.org/wiki_apis/entry/cubrid-jdbc-driver</url>
          <distribution>repo</distribution>
        </license>
      </licenses>
    
      <scm>
        <connection>scm:svn:http://dev.naver.com/scm/viewvc.php/branches/RB-8.4.1/src/jdbc/cubrid/jdbc/driver/?root=cubrid</connection>
        <url>http://dev.naver.com/scm/viewvc.php/branches/RB-8.4.1/src/jdbc/cubrid/jdbc/driver/?root=cubrid</url>
      </scm>
      
      <developers>
        <developer>
          <id>cubrid</id>
          <name>Esen Sagynov</name>
          <email>esen.sagynov@nhn.com</email>
        </developer>
      </developers>
      
      <repositories>
        <repository>
          <id>clojars.org</id>
          <url>http://clojars.org/repo/</url>
        </repository>
      </repositories>
    </project>
  6. We need to create MD5 and SHA1 hash files for cubrid-jdbc-8.4.1.2032.pom as well.
    md5sum cubrid-jdbc-8.4.1.2032.pom > cubrid-jdbc-8.4.1.2032.pom.md5
    sha1sum cubrid-jdbc-8.4.1.2032.pom > cubrid-jdbc-8.4.1.2032.pom.sha1
  7. Now upload all these files to clojars.org repository.
    scp cubrid-jdbc-8.4.1.2032.jar cubrid-jdbc-8.4.1.2032.jar.md5 cubrid-jdbc-8.4.1.2032.jar.sha1 cubrid-jdbc-8.4.1.2032.pom cubrid-jdbc-8.4.1.2032.pom.md5 cubrid-jdbc-8.4.1.2032.pom.sha1 clojars@clojars.org:
    

    Notice a colon at the end of the clojars@clojars.org:. Do NOT miss it. Also do NOT change this username to your own. It MUST be clojars@clojars.org.
    You will be requested to enter the passphrase for the private SSH key. Once you enter, you will see the following output which informs about the success of the process.

    Enter passphrase for key '/home/user/.ssh/id_rsa': 
    Welcome to Clojars, cubrid!
    cubrid-jdbc-8.4.1.2032.jar                    100%  194KB 193.8KB/s   00:00    
    cubrid-jdbc-8.4.1.2032.jar.md5                100%   61     0.1KB/s   00:00    
    cubrid-jdbc-8.4.1.2032.jar.sha1               100%   69     0.1KB/s   00:00    
    cubrid-jdbc-8.4.1.2032.pom                    100% 1207     1.2KB/s   00:00    
    cubrid-jdbc-8.4.1.2032.pom.md5                100%   61     0.1KB/s   00:00    
    cubrid-jdbc-8.4.1.2032.pom.sha1               100%   69     0.1KB/s   00:00    
    INFO Uploading project information for cubrid-jdbc 8.4.1.2032
    INFO Retrieving previous metadata from clojars
    INFO Uploading repository metadata for: 'artifact cubrid:cubrid-jdbc'

Congratulations! Now the new driver is online. You can check it at https://clojars.org/cubrid/cubrid-jdbc.

org.clojars.cubrid/cubrid-jdbc

  1. Since we have already downloaded the driver and created hash files, we do not need to do that again.
  2. Just create a new cubrid-jdbc-8.4.1.2032.pom file for it. Again replace 8.4.1.2032 with the new version and build number. Adjust SVN links if necessary. The only difference here is where you are going to upload the new driver, which now is org.clojars.cubrid in <groupId> tag.
    <project>
      <modelVersion>4.0.0</modelVersion>
      <groupId>org.clojars.cubrid</groupId>
      <artifactId>cubrid-jdbc</artifactId>
      <version>8.4.1.2032</version>
      <packaging>jar</packaging>
    
      <name>CUBRID JDBC Connector</name>
      <description>CUBRID JDBC Connector is an API that allows users to connect to CUBRID database within applications whitten in Java.</description>
      <url>http://www.cubrid.org/wiki_apis/entry/cubrid-jdbc-driver</url>
    
      <licenses>
        <license>
          <name>BSD License</name>
          <url>http://www.cubrid.org/wiki_apis/entry/cubrid-jdbc-driver</url>
          <distribution>repo</distribution>
        </license>
      </licenses>
    
      <scm>
        <connection>scm:svn:http://dev.naver.com/scm/viewvc.php/branches/RB-8.4.1/src/jdbc/cubrid/jdbc/driver/?root=cubrid</connection>
        <url>http://dev.naver.com/scm/viewvc.php/branches/RB-8.4.1/src/jdbc/cubrid/jdbc/driver/?root=cubrid</url>
      </scm>
      
      <developers>
        <developer>
          <id>cubrid</id>
          <name>Esen Sagynov</name>
          <email>esen.sagynov@nhn.com</email>
        </developer>
      </developers>
      
      <repositories>
        <repository>
          <id>clojars.org</id>
          <url>http://clojars.org/repo/</url>
        </repository>
      </repositories>
    </project>
  3. Now we need to create MD5 and SHA1 hash files for this new cubrid-jdbc-8.4.1.2032.pom since the content of the file has been changed.
    md5sum cubrid-jdbc-8.4.1.2032.pom > cubrid-jdbc-8.4.1.2032.pom.md5
    sha1sum cubrid-jdbc-8.4.1.2032.pom > cubrid-jdbc-8.4.1.2032.pom.sha1
  4. Now upload all these files to clojars.org repository. This will upload to the second org.clojars.cubrid group.
    scp
     cubrid-jdbc-8.4.1.2032.jar cubrid-jdbc-8.4.1.2032.jar.md5 
    cubrid-jdbc-8.4.1.2032.jar.sha1 cubrid-jdbc-8.4.1.2032.pom 
    cubrid-jdbc-8.4.1.2032.pom.md5 cubrid-jdbc-8.4.1.2032.pom.sha1 
    clojars@clojars.org:

    Again do NOT forget a colon at the end of the clojars@clojars.org:. And do NOT change this username to your own. It MUST be clojars@clojars.org.
    You will be requested to enter the passphrase for the private SSH key. Once you enter, you will see the following output which informs about the success of the process.

    Enter passphrase for key '/home/user/.ssh/id_rsa': 
    Welcome to Clojars, cubrid!
    cubrid-jdbc-8.4.1.2032.jar                    100%  194KB 193.8KB/s   00:00    
    cubrid-jdbc-8.4.1.2032.jar.md5                100%   61     0.1KB/s   00:00    
    cubrid-jdbc-8.4.1.2032.jar.sha1               100%   69     0.1KB/s   00:00    
    cubrid-jdbc-8.4.1.2032.pom                    100% 1219     1.2KB/s   00:00    
    cubrid-jdbc-8.4.1.2032.pom.md5                100%   61     0.1KB/s   00:00    
    cubrid-jdbc-8.4.1.2032.pom.sha1               100%   69     0.1KB/s   00:00    
    INFO Retrieving previous metadata from clojars
    INFO Uploading repository metadata for: 'artifact org.clojars.cubrid:cubrid-jdbc'
    INFO Uploading project information for cubrid-jdbc 8.4.1.2032

Congratulations! Now the new driver is online. You can check it at https://clojars.org/org.clojars.cubrid/cubrid-jdbc.

comments powered by Disqus
Page info
viewed 1663 times
translations en
Author
posted 2 years ago by
CUBRID
Contributors
updated 2 years ago by
View revisions
Share this article