BroadleafCommerce / ReactStarter

Broadleaf Commerce Spring Boot React Starter
Creative Commons Zero v1.0 Universal
43 stars 41 forks source link

Master & develop-5.2.x: Project does not build, Failed to execute mvn clean install #16

Closed frostyandy2k closed 4 years ago

frostyandy2k commented 4 years ago

Reproduce git checkout master or git checkout develop-5.2.x mvn clean install

Master & develop-5.2.x have the same issue, develop-6.0.x works, but crashes when the applications launches (see Issue #15 ).

>> ReactStarter: mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] Broadleaf Spring Boot React Starter                                [pom]
[INFO] React Core Starter                                                 [jar]
[INFO] Admin Starter                                                      [jar]
[INFO] React API Starter                                                  [jar]
[INFO] 
[INFO] ------------------< com.mycompany:boot-react-starter >------------------
[INFO] Building Broadleaf Spring Boot React Starter 1.0.0-SNAPSHOT        [1/4]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ boot-react-starter ---
[INFO] 
[INFO] --- jrebel-maven-plugin:1.1.7:generate (generate-rebel-xml) @ boot-react-starter ---
[INFO] Processing com.mycompany:boot-react-starter with packaging pom
[WARNING] Unsupported packaging type: pom
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ boot-react-starter ---
[INFO] Installing /Users/andrei.miclaus@flywire.com/code/flywire/flyshop/ReactStarter/pom.xml to /Users/andrei.miclaus@flywire.com/.m2/repository/com/mycompany/boot-react-starter/1.0.0-SNAPSHOT/boot-react-starter-1.0.0-SNAPSHOT.pom
[INFO] 
[INFO] ---------------< com.mycompany:boot-react-starter-core >----------------
[INFO] Building React Core Starter 1.0.0-SNAPSHOT                         [2/4]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ boot-react-starter-core ---
[INFO] Deleting /Users/andrei.miclaus@flywire.com/code/flywire/flyshop/ReactStarter/core/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ boot-react-starter-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 147 resources
[INFO] 
[INFO] --- jrebel-maven-plugin:1.1.7:generate (generate-rebel-xml) @ boot-react-starter-core ---
[INFO] Processing com.mycompany:boot-react-starter-core with packaging jar
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ boot-react-starter-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 10 source files to /Users/andrei.miclaus@flywire.com/code/flywire/flyshop/ReactStarter/core/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /Users/andrei.miclaus@flywire.com/code/flywire/flyshop/ReactStarter/core/src/main/java/com/mycompany/core/workflow/checkout/SendOrderConfirmationEmailActivity.java:[16,24] cannot find symbol
  symbol:   class Resource
  location: package javax.annotation
[ERROR] /Users/andrei.miclaus@flywire.com/code/flywire/flyshop/ReactStarter/core/src/main/java/com/mycompany/core/workflow/checkout/SendOrderConfirmationEmailActivity.java:[30,6] cannot find symbol
  symbol:   class Resource
  location: class com.mycompany.core.workflow.checkout.SendOrderConfirmationEmailActivity
[ERROR] /Users/andrei.miclaus@flywire.com/code/flywire/flyshop/ReactStarter/core/src/main/java/com/mycompany/core/workflow/checkout/SendOrderConfirmationEmailActivity.java:[33,6] cannot find symbol
  symbol:   class Resource
  location: class com.mycompany.core.workflow.checkout.SendOrderConfirmationEmailActivity
[INFO] 3 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Broadleaf Spring Boot React Starter 1.0.0-SNAPSHOT:
[INFO] 
[INFO] Broadleaf Spring Boot React Starter ................ SUCCESS [  0.322 s]
[INFO] React Core Starter ................................. FAILURE [  1.383 s]
[INFO] Admin Starter ...................................... SKIPPED
[INFO] React API Starter .................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.885 s
[INFO] Finished at: 2019-10-15T12:18:04+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project boot-react-starter-core: Compilation failure: Compilation failure: 
[ERROR] /Users/andrei.miclaus@flywire.com/code/flywire/flyshop/ReactStarter/core/src/main/java/com/mycompany/core/workflow/checkout/SendOrderConfirmationEmailActivity.java:[16,24] cannot find symbol
[ERROR]   symbol:   class Resource
[ERROR]   location: package javax.annotation
[ERROR] /Users/andrei.miclaus@flywire.com/code/flywire/flyshop/ReactStarter/core/src/main/java/com/mycompany/core/workflow/checkout/SendOrderConfirmationEmailActivity.java:[30,6] cannot find symbol
[ERROR]   symbol:   class Resource
[ERROR]   location: class com.mycompany.core.workflow.checkout.SendOrderConfirmationEmailActivity
[ERROR] /Users/andrei.miclaus@flywire.com/code/flywire/flyshop/ReactStarter/core/src/main/java/com/mycompany/core/workflow/checkout/SendOrderConfirmationEmailActivity.java:[33,6] cannot find symbol
[ERROR]   symbol:   class Resource
[ERROR]   location: class com.mycompany.core.workflow.checkout.SendOrderConfirmationEmailActivity
[ERROR] -> [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/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :boot-react-starter-core
frostyandy2k commented 4 years ago

This is due to the Java version. Tested and works with Java 8.

Admin module in master still doesn't work, but that code is very old.

Official statement:

The supported version of Java is closely tied to the version of Spring. Broadleaf version 6.0.x is using Spring Framework 5.0.8.RELEASE which supports JDK 8-10 (we continue to recommend Java 8). JDK 11 is not supported until Spring Framework 5.1 which we will be upgrading in our 6.1.0-GA release. I don't have a release date for 6.1.0-GA yet but will be before year end.