Skip to content
This repository was archived by the owner on Jul 7, 2026. It is now read-only.
This repository was archived by the owner on Jul 7, 2026. It is now read-only.

A required class was missing while executing org.springframework.cloud:spring-cloud-contract-maven-plugin:4.2.1:generateTests: org/springframework/core/io/ProtocolResolver #2167

Description

@jakub-bochenski

Describe the bug
Maven build fails for no apparent reason with the above error message.

Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
Java version: 21.0.7, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64

[ERROR] Failed to execute goal org.springframework.cloud:spring-cloud-contract-maven-plugin:4.2.1:generateTests (default-generateTests) on project example: Execution default-generateTests of goal org.springframework.cloud:spring-cloud-contract-maven-plugin:4.2.1:generateTests failed: A required class was missing while executing org.springframework.cloud:spring-cloud-contract-maven-plugin:4.2.1:generateTests: org/springframework/core/io/ProtocolResolver
[ERROR] -----------------------------------------------------
[ERROR] realm =    extension>org.springframework.cloud:spring-cloud-contract-maven-plugin:4.2.1
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy

Activity

  1. jakub-bochenski commented on May 28, 2025

    @jakub-bochenski
    ContributorAuthor

    Removing spring-core from repository and forcing a download again fixed it. So it's most likely caused by #2134

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions