spring-projects / spring-session-data-mongodb

Spring Session for MongoDB
https://spring.io/projects/spring-session-data-mongodb
Apache License 2.0
50 stars 35 forks source link

ClassNotFoundException when downloading v2.4.2 from Maven Central #183

Closed mmoayyed closed 3 years ago

mmoayyed commented 3 years ago

Expected behavior

Successfully download the relevant JAR from Maven Central for version 2.4.2.

Actual behavior

Attempting to download version 2.4.2 from Central produces ClassNotFoundException errors. https://search.maven.org/artifact/org.springframework.session/spring-session-data-mongodb/2.4.2/jar

error: package org.springframework.session.data.mongo.config.annotation.web.http does not exist
import org.springframework.session.data.mongo.config.annotation.web.http.EnableMongoHttpSession;

Steps to reproduce

Declare the dependency and attempt to let Maven or Gradle resolve it.

The JAR that is published on central does not contain any relevant classes, etc if you download and examine it manually.

image

JVM version (e.g. java -version)

OpenJDK 11.0.9, Gradle 6.8

OS version (e.g. uname -a)

Darwin MacBook-Pro 20.2.0 Darwin Kernel Version 20.2.0

gregturn commented 3 years ago

Can you show me your build file?

mmoayyed commented 3 years ago

Don't think it's a build issue. You can see in my screenshot above that the JAR is empty, and this also works with 2.4.1.

gregturn commented 3 years ago

Wow. Confirmed.

I spot checked, and the latest (2.5.0-M2) is intact so digging in to see what went wrong in the release process.

gregturn commented 3 years ago

Just rebuilt 2.4.2 locally, and everything was intact.

Attempting to push another release, but this is delaying releasing => https://twitter.com/sonatype_ops/status/1352625400480817153

gregturn commented 3 years ago

Resolved with version 2.4.3.

gregturn commented 3 years ago

Closed via https://github.com/spring-projects/spring-session-data-mongodb/commit/2fa62693d79ac9275a2ddb8030ce6d12a0d75162.