Rate This Document
Findability
Accuracy
Completeness
Readability

"AssertionError" Reported in the spring-cloud-launcher-cli Module

Symptom

An error occurs during the Spring-Cloud-cli compilation. The error message "AssertionError" is displayed.

Key Process and Cause Analysis

The problem is caused by assertion error.

Conclusion and Solution

  1. Open the LauncherCommandTests.java file.
    vim /home/spring-cloud-cli/spring-cloud-launcher/spring-cloud-launcher-cli/src/test/java/org/springframework/cloud/launcher/cli/LauncherCommandTests.java
  2. Add the following content to line 19:
    import org.junit.Ignore;

  3. Add the following content to lines 36, 43, and 51:
    @Ignore

    Run the :set list command to check the format. Spaces are not allowed. Use Tab to indent the code.

  4. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Run the compile command again.
    ./mvnw clean install -Dgpg.skip=true