lit / lit

Lit is a simple library for building fast, lightweight web components.
https://lit.dev
BSD 3-Clause "New" or "Revised" License
19.71k stars 965 forks source link

missing other versions in the maven-metadata.xml of lit mvn repo #4973

Closed somashaker23 closed 1 month ago

somashaker23 commented 1 month ago

Which package(s) are affected?

Lit Core (lit / lit-html / lit-element / reactive-element)

Description

When I do the build of my project, I am getting the below error

   > Could not find any version that matches org.mvnpm:lit:[3.1.3,3.2).
     Versions that do not match:
       - 2.0.1
       - 3.2.0
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/org/mvnpm/lit/maven-metadata.xml

I see that https://repo.maven.apache.org/maven2/org/mvnpm/lit/maven-metadata.xml is updated with only 2.0.1 on 2025-04-13.

please help

Reproduction

When I do the build of my project, I am getting the below error

   > Could not find any version that matches org.mvnpm:lit:[3.1.3,3.2).
     Versions that do not match:
       - 2.0.1
       - 3.2.0
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/org/mvnpm/lit/maven-metadata.xml

I see that https://repo.maven.apache.org/maven2/org/mvnpm/lit/maven-metadata.xml is pdated with only 2.0.1 on 2025-04-13.

Workaround

I don't know

Is this a regression?

Yes. This used to work, but now it doesn't.

Affected versions

3.2.0

Browser/OS/Node environment

ubuntu 23

justinfagnani commented 1 month ago

The Lit team only publishes to npm. Someone else must have been publishing to maven.

somashaker23 commented 1 month ago

anyone having idea of who is doing it?

kenwenzel commented 1 month ago

The Maven metadata file seems to be wrong as the lit packages exist. Maybe you can contact the maintainers of https://mvnpm.org/ and ask for a fix: https://github.com/mvnpm/mvnpm

You can also try to switch to Webjars: https://www.webjars.org/

hho commented 1 month ago

Issue is tracked at https://github.com/mvnpm/mvnpm/issues/20500

phillip-kruger commented 1 month ago

This is an issue with Central. We are in contact with them

phillip-kruger commented 1 month ago

(You can close here)