com.google.inject.ConfigurationException: Guice configuration errors: 1) Could not find a suitable constructor in org.springframework.cloud.contract.maven.verifier.RunMojo. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.

GitHub | poprygun | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Could not find a suitable constructor exception when running spring-cloud-contract-maven-plugin:1.0.0.RELEASE:generateTests

    GitHub | 7 months ago | poprygun
    com.google.inject.ConfigurationException: Guice configuration errors: 1) Could not find a suitable constructor in org.springframework.cloud.contract.maven.verifier.RunMojo. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.

    Root Cause Analysis

    1. com.google.inject.ConfigurationException

      Guice configuration errors: 1) Could not find a suitable constructor in org.springframework.cloud.contract.maven.verifier.RunMojo. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.

      at org.springframework.cloud.contract.maven.verifier.RunMojo.class()
    2. org.springframework.cloud
      RunMojo.class
      1. org.springframework.cloud.contract.maven.verifier.RunMojo.class(Unknown Source)
      1 frame