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

Publish to Maven Repository #89

Open
mario-teq opened this issue Jun 2, 2024 · 6 comments
Open

Publish to Maven Repository #89

mario-teq opened this issue Jun 2, 2024 · 6 comments

Comments

@mario-teq
Copy link

Hello,
Do you plan to publish to maven repository ?
The last time it was in 2018.
https://mvnrepository.com/artifact/com.sybit/airtable.java
Best regards

@stritti
Copy link
Member

stritti commented Jun 2, 2024

At the moment it is published here: https://github.com/Sybit-Education/airtable.java/packages/2156671?version=0.3.0

We have to check how we could sync while jFrog-Repo does not exist any more. Any suggestions?

@mario-teq
Copy link
Author

Hello @stritti

this is what I get in maven

Could not resolve dependencies for project f88:backend:jar:1.0.0-SNAPSHOT: Failed to collect dependencies at com.sybit:airtable.java:jar:0.3.0: Failed to read artifact descriptor for com.sybit:airtable.java:jar:0.3.0: Could not transfer artifact com.sybit:airtable.java:pom:0.3.0 from/to airtable (https://maven.pkg.github.com/Sybit-Education/airtable.java): authentication failed for https://maven.pkg.github.com/Sybit-Education/airtable.java/com/sybit/airtable.java/0.3.0/airtable.java-0.3.0.pom, status: 401 Unauthorized -> [Help 1]

maybe from me ... or the jar needs to be deployed in maven central ? https://maven.apache.org/repository/guide-central-repository-upload.html

@stritti
Copy link
Member

stritti commented Jun 3, 2024

Hello @mario-teq,

have you added the additional repository to your pom?

https://maven.pkg.github.com/Sybit-Education/airtable.java")

See also: https://maven.apache.org/guides/mini/guide-multiple-repositories.html

Update: I just now saw the status 401 Unauthorized. Hm, I think, I have to check some settings for that.

@stritti
Copy link
Member

stritti commented Jun 3, 2024

Hi @mario-teq,

as I now learned, you have to use always personal access token to access the Github repository: https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry#authenticating-to-github-packages

I think, we should really use maven central.

@mario-teq
Copy link
Author

mario-teq commented Jun 3, 2024

Adding personal access in ~/.m2/settings.xml in necessary for each person in the team
Yes using maven central is better :)

@djmally
Copy link

djmally commented Jul 10, 2024

@stritti would you be able to publish this package to Maven Central? I'd like to use this in a project I'm working on where setting up Github authentication for everyone + CI is very difficult.

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

3 participants