Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload to Maven #27

Open
roll opened this issue Oct 4, 2019 · 10 comments
Open

Upload to Maven #27

roll opened this issue Oct 4, 2019 · 10 comments
Assignees

Comments

@roll
Copy link
Member

roll commented Oct 4, 2019

Overview

Hi @georgeslabreche, is it possible to upload tableschema/datapackage-java to Maven (if I understand correctly it's something like a central repository for Java Packages like PyPi/NPM/etc in other languages)

Also, if yes, I'd ask you to release both as version 1 as there is not active development at the moment.

WDYT?

@roll
Copy link
Member Author

roll commented Nov 1, 2019

It seems there is no native way to deploy to Maven using Travis. I found only this option - https://github.com/stefanbirkner/travis-deploy-to-maven-central

BTW is it needed to be uploaded to Maven or it can be used from Github Releases? Not sure how Java ecosystem works

cc @iSnow

@iSnow
Copy link
Contributor

iSnow commented Nov 1, 2019

Well, it can be used from Github releases, but only if you install yet another plugin in your project definition (pom.xml).

For exposure, it would be very desirable to move to Maven Central - this is where most every Java dev would head if they wanted to look whether a Java port is available and whether it looks like it will be supported for some time. A bit like every serious JS project would have an artifact on npm.

I haven't ever pushed anything to Maven Central via a CI pipeline. I've done it manually on one of my smaller project, and it's a bit hairy to set up - you basically need a GPG key-pair, a mail address and an evening of swearing. Once it is setup, it's quite sweet.

In a shared project, that begs the question who is going to store the secrets (if we aren't going directly for Travis, but even then someone should safe-keep them as a backup) and which mail address to use. I don't know how the project handles issues like this?

@roll
Copy link
Member Author

roll commented Nov 1, 2019

@iSnow
Usually, we use some kind of okfn account and Travis secrets to release - https://github.com/frictionlessdata/tabulator-py/blob/master/.travis.yml

I can set up Open Knowledge account on Maven and Travis later if you show me examples of how to deploy using CLI (so I'll figure out how to translate it to CI-based releasing)

@iSnow iSnow self-assigned this Nov 1, 2019
@sashamitrovich
Copy link

No need to use a maven repo, it can be deployed here on GitHub as a package. The whole process can be easily automated with a Workflow (Action).

@roll
Copy link
Member Author

roll commented Jun 16, 2021

We're leaning towards using Github Actions when we can in Frictionless so it will be a great solution for us

@sashamitrovich
Copy link

I might be able to set it up for you, time permitting.

@roll
Copy link
Member Author

roll commented Jun 16, 2021

Great @sashamitrovich!

Can you please PR a Github Action? cc @iSnow

@lwinfree
Copy link
Member

Hi all! We're hoping to get this released as version 1.0.0. I think (?) that we don't need it on Maven because it is on Jitpack (https://jitpack.io/#frictionlessdata/tableschema-java). Am I understanding this issue correctly?

@iSnow
Copy link
Contributor

iSnow commented Aug 18, 2021

@lwinfree We basically have three options:

  • Maven Central, the traditional and most widely used repo
  • Jitpack which we are using now for snapshots and tag releases
  • Github which is gaining traction.

I don't care much either way, only thing important to me is that we keep Jitpack for the snapshots/tags

@lwinfree
Copy link
Member

@iSnow OK Let's stay with Jitpack for now then, and maybe github in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants