Sybit-Education / airtable.java

Java API for Airtable (http://www.airtable.com)
MIT License
48 stars 25 forks source link

Publish to Maven Repository #89

Open mario-teq opened 4 weeks ago

mario-teq commented 4 weeks ago

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 commented 4 weeks ago

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 commented 4 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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