#Availability issues with Maven Package published to GitHub

1 messages · Page 1 of 1 (latest)

spark gazelle
#

Hello there,

A short while ago I published my first Maven package using GitHub Actions. After struggling with the pom.xml settings for the package I managed to get a published package that could be used in another project.

Because the Release and Publishing was to test the system and not in a state to use it properly, I deleted the Release and the Maven package and tried a new release under another version a bit later.

The following problem occured: I can still use the old, deleted package (here: v0.1.0) but I can't use the newer version (v0.1.1).
The maven install only produces the following exception:
Could not find artifact dev.edgetom:interaction-api:jar:0.1.1 in central (https://repo1.maven.org/maven2)

Why is it, that the old version is still available? Is this because I have it downloaded locally?
And why can't I download the new version as a dependency?

I appreciate every help!
Thank you!


This is my repository I want to publish: https://github.com/tgross03/Interaction-API
The current package version: https://github.com/tgross03/Interaction-API/packages/2289096

The pom.xml of the project to publish contains the following:

<distributionManagement>
  <repository>
    <id>github</id>
    <name>GitHub tgross03 Apache Maven Packages</name>
    <url>https://maven.pkg.github.com/tgross03/Interaction-API</url>
  </repository>
</distributionManagement>
plush summitBOT
#

<@&987246964494204979> please have a look, thanks.

spark gazelle
#

Availability issues with Maven Package published to GitHub

#

Additional info:
The following entries are present in the project I want to use the package in:

<repository>
  <id>github</id>
  <name>GitHub tgross03 Apache Maven Packages</name>
  <url>https://maven.pkg.github.com/tgross03/Interaction-API</url>
  <snapshots>
    <enabled>true</enabled>
  </snapshots>
</repository>
<dependency>
  <groupId>dev.edgetom</groupId>
  <artifactId>interaction-api</artifactId>
  <version>0.1.1</version>
 </dependency>
glossy bramble
#

Github packages is sadly not a good maven solution. It requires a github token to download artifacts even if they're public

#

You might also be declaring the repo wrong, but I'm not sure about that

spark gazelle
glossy bramble
#

Jitpack is easy to do (just add a config file to your github repo with the right jdk), but it isn't really a proper maven as it builds the project for you. It's also not that fast and goes down from time to time

spark gazelle