[CONJ-3] Maven repository for MariaDB client Created: 2012-12-06  Updated: 2015-01-20  Resolved: 2014-04-04

Status: Closed
Project: MariaDB Connector/J
Component/s: None
Affects Version/s: None
Fix Version/s: 1.1.7

Type: Task Priority: Minor
Reporter: Claudiu Dumitrescu Assignee: Georg Richter
Resolution: Fixed Votes: 13
Labels: jdbc

Issue Links:
Relates
relates to CONJ-131 update Maven repo with 1.1.8 release Closed

 Description   

It would be nice to have a Maven repository from where to get the client jar.



 Comments   
Comment by Vladislav Vaintroub [ 2012-12-06 ]

I do not mind to do it, however I have to admit I being not well versed in Maven. We use Maven currently because Drizzle-JDBC used it, and because it runs test suite and produces packages nicely (I freely admit being not well versed in latest Java trends, where "latest" is anything newer than 2004.
When it comes to maven repositories, I have not figured out what steps are required and what's the end result If you can help, you're very much welcome to share knowlegde here or on IRC(#maria). Thanks!

Comment by Claudiu Dumitrescu [ 2012-12-06 ]

You can take a look here for how to install it on Maven Central repo: http://maven.apache.org/guides/mini/guide-central-repository-upload.html

Comment by Vladislav Vaintroub [ 2013-07-01 ]

I created ticket https://issues.sonatype.org/browse/OSSRH-6558, so lets see how this works out

Comment by Andrew Gaul [ 2013-09-13 ]

Any progress on this issue? Most Java projects I use bring their external dependencies in via Maven Central.

Comment by Maurice Betzel [ 2013-09-17 ]

Maven would be really cool.

Comment by Vladislav Vaintroub [ 2013-09-17 ]

If someone of you guys , who thinks mariadb in maven public repo would be cool, ctranslate maven-ish response to https://issues.sonatype.org/browse/OSSRH-6558 into plain English instructions what to do (without reading documentation, because it is written in Mavenish), this could speed up the process considerably.
Thank you!

Comment by Neale [ 2013-09-23 ]

It looks like you're ready to rock and roll.

I have a tendency to avoid the mvn release:perform step for doing the uploads, and instead:

  • checkout mariadb-java-client-1.1.5 tag
  • mvn deploy -Psonatype-oss-release

You'll need PGP sorted as per https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven (which might just work if you've already got PGP set up).

Once done, you can then log-in to https://oss.sonatype.org/

  • click on "Staging Repositories" and find the one that will be obvious as your upload (i.e. not Central Bundles)
  • Inspect and close your staging repository
  • Either release it, or drop it and go again

You could even get the community to try out the staging repository before releasing it, as once it's released, there's no deleting it due to all the mirrors.

Comment by Vladislav Vaintroub [ 2013-09-23 ]

Neale, thanks.
Do you know if it is possible not to use mvn for signing and uploads. The thing is that we do not want to have GPG keys on the buildbot machine.
So manual signing would be the current preferred solution. But then, what to do once everything is signed? Is there any upload tool, web page or something like that?

Comment by Neale [ 2013-09-23 ]

Hi,

There's no reason it shouldn't be possible. Jenkins and other build servers deploy using their own tools. It's just WebDAV with some standards for the folder structure.

The following should do the job (with appropriate auth):

curl -T [artifact.jar] https://oss.sonatype.org/service/local/staging/deploy/maven2/org/mariadb/jdbc/mariadb-java-client/1.1.5/

Comment by Darren Shepherd [ 2014-01-23 ]

Is there anything I can do to help with this? I'd really like to get the mariadb driver into Maven Central. According to the Sonatype docs https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven it seems like if you already have a release and have a pom and jar file then you can just run the below command against the existing files. If you don't have the pom of the jar file, it is inside the jar in the META-INF/maven/... folder.

It should use whatever GPG key you have configured locally and it will prompt for the passphrase

$ mvn gpg:sign-and-deploy-file
> -DpomFile=target/myapp-1.0.pom
> -Dfile=target/myapp-1.0.jar
> -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/
> -DrepositoryId=sonatype-nexus-staging

Comment by Michael Vorburger [ 2014-02-20 ]

+1... note that someone already pushed a
org.jumpmind.symmetric.jdbc:mariadb-java-client - but that's outdated (only 1.1.1 instead current 1.1.5) already of course. Would be great to see an "official" deploy to Maven central from you... anything I can do to help?

Comment by Massimo Siani (Inactive) [ 2014-03-31 ]

Hi,
it would be pretty nice for our work at SkySQL to have an updated package in the Maven Central Repository. I can take care of all the steps from building the necessary packages, including the source and Javadoc packages, (manual) signing and uploading, and sharing with you all the information.
I will manually upload the file as described at https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide
I used those steps to upload this package http://search.maven.org/#search%7Cga%7C1%7Cskysql a couple of weeks ago.
Let me know!

Comment by Vladislav Vaintroub [ 2014-04-01 ]

Massimo, I bet Georg won't argue if you just grab it and assign to yourself Many people would thank you, it is probably the most popular bug in mariadb-jdbc so far

Comment by Massimo Siani (Inactive) [ 2014-04-04 ]

Uploaded: http://search.maven.org/#artifactdetails%7Corg.mariadb.jdbc%7Cmariadb-java-client%7C1.1.7%7Cjar
I guess the task may be finally closed!

Comment by Georg Richter [ 2014-04-04 ]

Maven repository now contains MariaDB JDBC.
Special thanks to Massimo Siani

Generated at Thu Feb 08 03:12:27 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.