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

Slf4j metadata are fetched in each maven command for 4.2.0 Version #2149

Open
varunbh79 opened this issue Jan 8, 2025 · 2 comments
Open

Comments

@varunbh79
Copy link

varunbh79 commented Jan 8, 2025

Describe the bug
The issue #2106 has resurfaced again in 4.2.0 version.
The plugin tries to download slf4j metadata on every maven command.

[INFO] Scanning for projects...
Downloading from maven-default-http-blocker: http://0.0.0.0/org/slf4j/slf4j-api/maven-metadata.xml
[WARNING] Could not transfer metadata org.slf4j:slf4j-api/maven-metadata.xml from/to maven-default-http-blocker (http://0.0.0.0/): transfer failed for http://0.0.0.0/org/slf4j/slf4j-api/maven-metadata.xml

When the Version is downgraded to 3.1.5 no metadata is downloaded and working as expected. I also attempted to exclude slf4j dependency under spring-boot-actuator and io.micrometer but didn't work.

Sample
<build> <plugins> <plugin> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-contract-maven-plugin</artifactId> <version>3.1.5</version> <extensions>true</extensions> <configuration> <testFramework>JUNIT5</testFramework> <packageWithBaseClasses>*************</packageWithBaseClasses> </configuration> </plugin> </plugins> </build>

@5um4n7h
Copy link

5um4n7h commented Jan 9, 2025

I am also getting the similar issue, after upgrading the plugin version. slf4j dependency is getting downloaded from multiple sources whenever I do mvn clean install

@marcingrzejszczak
Copy link
Contributor

Ehh it comes back again and again. I'll try to debug this when possible.

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

4 participants