Uploaded image for project: 'ENTSBT'
  1. ENTSBT
  2. ENTSBT-1126

Dekorate maven compiler java.lang.NoSuchFieldError: INDENT_ARRAYS_WITH_INDICATOR

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.3.x
    • 2.3.x
    • dekorate
    • None
    • False
    • False
    • Undefined

      I am getting error when compiling dekorate app with maven compiler 3.8.1.
      SpringBoot 2.3.10.ER1 build with Dekorate version 2.2.0.redhat-00009.
      Maven home: /opt/apache-maven-3.5.0
      Java version: 11.0.11, vendor: Red Hat, Inc.
      Java home: /usr/lib/jvm/java-11-openjdk-11.0.11.0.9-5.fc33.x86_64
      Default locale: cs_CZ, platform encoding: UTF-8
      OS name: "linux", version: "5.12.15-200.fc33.x86_64", arch: "amd64", family: "unix"

      Output:

      lfuka@lfuka-new-notebook:~/Git/rhoarqe/spring-boot-openshift-tests/test-sb/tmp/sources/dekorate-app17807626217904340036 (master *>)$ mvn clean package -Ddekorate.deploy=true
      [INFO] Scanning for projects...
      [INFO] 
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Spring Boot rest application 2.0.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO] 
      [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ springboot-dekorate-app ---
      [INFO] Deleting /home/lfuka/Git/rhoarqe/spring-boot-openshift-tests/test-sb/tmp/sources/dekorate-app17807626217904340036/target
      [INFO] 
      [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ springboot-dekorate-app ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 1 resource
      [INFO] 
      [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ springboot-dekorate-app ---
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 2 source files to /home/lfuka/Git/rhoarqe/spring-boot-openshift-tests/test-sb/tmp/sources/dekorate-app17807626217904340036/target/classes
      [INFO] Initializing dekorate session.
      [INFO] Found Spring web annotation!
      [INFO] Found @SpringBootApplication on: com.redhat.xpass.RestApplication
      [INFO] Generating manifests.
      [INFO] Processing openshift configuration.
      [INFO] Processing s2i configuration.
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 2.117 s
      [INFO] Finished at: 2021-07-19T09:17:42+02:00
      [INFO] Final Memory: 30M/120M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project springboot-dekorate-app: Fatal error compiling: java.lang.NoSuchFieldError: INDENT_ARRAYS_WITH_INDICATOR -> [Help 1]
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      

              ikanello1@redhat.com Ioannis Kanellos
              lfuka Libor Fuka
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: