Can't build spring-boot-autoconfiguration in latest Flowable engine 6.5.0-SNAPSHOT

I am trying the latest 6.5.0-SNAPSHOT version of flowable (specifically the docker images using the script in docker/build-all-images.sh).
This is commit https://github.com/flowable/flowable-engine/commit/8109bd227cce024c80eb88e186a1070a4452464c

The build script fails when building the Flowable distribution:

mvn -Pdistro,errorLogging clean install -DskipTests
...
[INFO] ------------------------------------------------------------------------
[INFO] Building flowable-spring-boot-autoconfigure 6.5.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ flowable-spring-boot-autoconfigure ---
[INFO] Deleting /path/to/workspace/flowable/flowable-engine/modules/flowable-spring-boot/flowable-spring-boot-starters/flowable-spring-boot-autoconfigure/target
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ flowable-spring-boot-autoconfigure ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ flowable-spring-boot-autoconfigure ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ flowable-spring-boot-autoconfigure ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 68 source files to /path/to/workspace/flowable/flowable-engine/modules/flowable-spring-boot/flowable-spring-boot-starters/flowable-spring-boot-autoconfigure/target/classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING : 
[INFO] -------------------------------------------------------------
[WARNING] /path/to/workspace/flowable/flowable-engine/modules/flowable-spring-boot/flowable-spring-boot-starters/flowable-spring-boot-autoconfigure/src/main/java/org/flowable/spring/boot/idm/IdmEngineAutoConfiguration.java:[46,52] org.springframework.security.crypto.password.NoOpPasswordEncoder in org.springframework.security.crypto.password has been deprecated
[WARNING] /path/to/workspace/flowable/flowable-engine/modules/flowable-spring-boot/flowable-spring-boot-starters/flowable-spring-boot-autoconfigure/src/main/java/org/flowable/spring/boot/idm/IdmEngineAutoConfiguration.java:[46,52] org.springframework.security.crypto.password.NoOpPasswordEncoder in org.springframework.security.crypto.password has been deprecated
[INFO] 2 warnings 
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] error reading /path/to/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/9.0.17/tomcat-embed-core-9.0.17.jar; zip file is empty
[ERROR] error reading /path/to/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/9.0.17/tomcat-embed-core-9.0.17.jar; zip file is empty
[ERROR] /path/to/workspace/flowable/flowable-engine/modules/flowable-spring-boot/flowable-spring-boot-starters/flowable-spring-boot-autoconfigure/src/main/java/org/flowable/spring/boot/rest/BaseRestApiConfiguration.java:[15,21] package javax.servlet does not exist
[ERROR] /path/to/workspace/flowable/flowable-engine/modules/flowable-spring-boot/flowable-spring-boot-starters/flowable-spring-boot-autoconfigure/src/main/java/org/flowable/spring/boot/rest/BaseRestApiConfiguration.java:[34,15] cannot find symbol
  symbol:   class MultipartConfigElement
  location: class org.flowable.spring.boot.rest.BaseRestApiConfiguration
[ERROR] /path/to/workspace/flowable/flowable-engine/modules/flowable-spring-boot/flowable-spring-boot-starters/flowable-spring-boot-autoconfigure/src/main/java/org/flowable/spring/boot/rest/BaseRestApiConfiguration.java:[59,43] cannot find symbol
  symbol:   class MultipartConfigElement
  location: class org.flowable.spring.boot.rest.BaseRestApiConfiguration
[INFO] 5 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Flowable ........................................... SUCCESS [  0.847 s]
[INFO] Flowable - BPMN Model .............................. SUCCESS [  3.545 s]
[INFO] Flowable - Process Validation ...................... SUCCESS [  0.588 s]
[INFO] Flowable - BPMN Layout ............................. SUCCESS [  0.390 s]
[INFO] Flowable - Image Generator ......................... SUCCESS [  0.618 s]
[INFO] Flowable - Engine Common API ....................... SUCCESS [  0.404 s]
[INFO] Flowable - Variable Service API .................... SUCCESS [  0.322 s]
[INFO] Flowable - Engine Common ........................... SUCCESS [  4.240 s]
[INFO] Flowable - BPMN Converter .......................... SUCCESS [  2.248 s]
[INFO] Flowable - Entity Link Service API ................. SUCCESS [  0.406 s]
[INFO] Flowable - Entity Link Service ..................... SUCCESS [  0.810 s]
[INFO] Flowable - IDM API ................................. SUCCESS [  0.301 s]
[INFO] Flowable - IDM Engine .............................. SUCCESS [  1.855 s]
[INFO] flowable-idm-engine-configurator ................... SUCCESS [  0.210 s]
[INFO] Flowable - Form API ................................ SUCCESS [  0.191 s]
[INFO] Flowable - Form Model .............................. SUCCESS [  0.192 s]
[INFO] Flowable - DMN Model ............................... SUCCESS [  0.225 s]
[INFO] Flowable - DMN API ................................. SUCCESS [  0.268 s]
[INFO] Flowable - Content API ............................. SUCCESS [  0.181 s]
[INFO] Flowable - CMMN Model .............................. SUCCESS [  0.347 s]
[INFO] Flowable - Event Subscription Service API .......... SUCCESS [  0.239 s]
[INFO] Flowable - Identity Link Service API ............... SUCCESS [  0.190 s]
[INFO] Flowable - Task Service API ........................ SUCCESS [  0.191 s]
[INFO] Flowable - Job Service API ......................... SUCCESS [  0.152 s]
[INFO] Flowable - CMMN API ................................ SUCCESS [  0.271 s]
[INFO] Flowable - CMMN Converter .......................... SUCCESS [  0.665 s]
[INFO] Flowable - CMMN Image Generator .................... SUCCESS [  0.257 s]
[INFO] Flowable - Event Subscription Service .............. SUCCESS [  0.697 s]
[INFO] Flowable - Variable Service ........................ SUCCESS [  0.796 s]
[INFO] Flowable - Identity Link Service ................... SUCCESS [  0.383 s]
[INFO] Flowable - Task Service ............................ SUCCESS [  0.740 s]
[INFO] Flowable - Job Service ............................. SUCCESS [  0.920 s]
[INFO] Flowable - CMMN Engine ............................. SUCCESS [  4.683 s]
[INFO] Flowable Job Spring Service ........................ SUCCESS [  0.177 s]
[INFO] Flowable - Engine .................................. SUCCESS [ 14.247 s]
[INFO] Flowable - App Engine API .......................... SUCCESS [  0.219 s]
[INFO] Flowable - App Engine .............................. SUCCESS [  0.709 s]
[INFO] flowable-spring-security ........................... SUCCESS [  0.329 s]
[INFO] Flowable - JSON Converter .......................... SUCCESS [  0.736 s]
[INFO] Flowable - Spring Common ........................... SUCCESS [  0.195 s]
[INFO] flowable-form-json-converter ....................... SUCCESS [  0.196 s]
[INFO] Flowable - Form Engine ............................. SUCCESS [  0.887 s]
[INFO] Flowable - Form Engine Configurator ................ SUCCESS [  0.388 s]
[INFO] Flowable - CMMN Engine Configurator ................ SUCCESS [  0.382 s]
[INFO] Flowable - Engine Configurator ..................... SUCCESS [  0.174 s]
[INFO] Flowable - IDM - Spring ............................ SUCCESS [  0.413 s]
[INFO] flowable-idm-spring-configurator ................... SUCCESS [  0.183 s]
[INFO] Flowable - Spring .................................. SUCCESS [  0.822 s]
[INFO] Flowable - Spring Configurator ..................... SUCCESS [  0.218 s]
[INFO] Flowable - Secure Scripting ........................ SUCCESS [  0.290 s]
[INFO] Flowable - Groovy static compiled scripts engine ... SUCCESS [  0.307 s]
[INFO] Flowable - App Engine - Spring ..................... SUCCESS [  0.376 s]
[INFO] Flowable - Common - REST ........................... SUCCESS [  0.309 s]
[INFO] Flowable - App Engine REST ......................... SUCCESS [  0.782 s]
[INFO] Flowable - DMN JSON Converter ...................... SUCCESS [  0.324 s]
[INFO] Flowable - DMN XML Converter ....................... SUCCESS [  0.330 s]
[INFO] Flowable - DMN Engine .............................. SUCCESS [  1.177 s]
[INFO] Flowable - Dmn Engine Configurator ................. SUCCESS [  0.337 s]
[INFO] Flowable - Dmn - Spring ............................ SUCCESS [  0.403 s]
[INFO] Flowable - Dmn Spring Configurator ................. SUCCESS [  0.346 s]
[INFO] Flowable - DMN REST ................................ SUCCESS [  0.709 s]
[INFO] Flowable - CMMN JSON Converter ..................... SUCCESS [  0.455 s]
[INFO] Flowable - Cmmn - Spring ........................... SUCCESS [  0.431 s]
[INFO] Flowable - Cmmn Spring Configurator ................ SUCCESS [  0.369 s]
[INFO] Flowable - Form - Spring ........................... SUCCESS [  0.332 s]
[INFO] Flowable - Form Spring Configurator ................ SUCCESS [  0.313 s]
[INFO] Flowable - CMNMN Rest - Classes .................... SUCCESS [  2.209 s]
[INFO] Flowable - Form REST ............................... SUCCESS [  0.701 s]
[INFO] Flowable - IDM REST ................................ SUCCESS [  0.356 s]
[INFO] Flowable - Content Engine .......................... SUCCESS [  0.471 s]
[INFO] Flowable - Content Engine Configurator ............. SUCCESS [  0.336 s]
[INFO] Flowable - Content - Spring ........................ SUCCESS [  0.257 s]
[INFO] Flowable - Content Spring Configurator ............. SUCCESS [  0.237 s]
[INFO] Flowable - Content - REST .......................... SUCCESS [  0.493 s]
[INFO] Flowable 5 Compatibility - Engine .................. SUCCESS [  3.032 s]
[INFO] Flowable 5 Compatibility ........................... SUCCESS [  0.175 s]
[INFO] Flowable 5 - Spring ................................ SUCCESS [  0.399 s]
[INFO] Flowable 5 Spring Compatibility .................... SUCCESS [  0.082 s]
[INFO] Flowable - LDAP .................................... SUCCESS [  0.216 s]
[INFO] Flowable - Rest - Classes .......................... SUCCESS [  3.038 s]
[INFO] flowable-spring-boot ............................... SUCCESS [  0.258 s]
[INFO] flowable-spring-boot-starters ...................... SUCCESS [  0.141 s]
[INFO] flowable-spring-boot-autoconfigure ................. FAILURE [  1.084 s]
[INFO] flowable-spring-boot-starter-basic ................. SKIPPED
[INFO] Flowable - Spring Boot Process Starter ............. SKIPPED
[INFO] flowable-spring-boot-starter-integration ........... SKIPPED
[INFO] flowable-spring-boot-starter-actuator .............. SKIPPED
[INFO] Flowable - Spring Boot App Starter ................. SKIPPED
[INFO] Flowable - Spring Boot CMMN Starter ................ SKIPPED
[INFO] Flowable - Spring Boot DMN Starter ................. SKIPPED
[INFO] Flowable - Spring Boot Starter ..................... SKIPPED
[INFO] Flowable - Spring Boot CMMN REST Starter ........... SKIPPED
[INFO] Flowable - Spring Boot DMN REST Starter ............ SKIPPED
[INFO] Flowable - Spring Boot Process REST Starter ........ SKIPPED
[INFO] Flowable - Spring Boot App REST Starter ............ SKIPPED
[INFO] flowable-spring-boot-starter-rest-api .............. SKIPPED
[INFO] Flowable - Spring Boot REST Starter ................ SKIPPED
[INFO] flowable-spring-boot-samples ....................... SKIPPED
[INFO] flowable-spring-boot-sample-app .................... SKIPPED
[INFO] flowable-spring-boot-sample-process ................ SKIPPED
[INFO] flowable-spring-boot-sample-jpa .................... SKIPPED
[INFO] flowable-spring-boot-sample-jpa-all ................ SKIPPED
[INFO] flowable-spring-boot-sample-security ............... SKIPPED
[INFO] flowable-spring-boot-sample-rest-api ............... SKIPPED
[INFO] flowable-spring-boot-sample-rest-api-security ...... SKIPPED
[INFO] flowable-spring-boot-sample-actuator ............... SKIPPED
[INFO] flowable-spring-boot-sample-integration ............ SKIPPED
[INFO] flowable-spring-boot-sample-custom-mybatis-mapper .. SKIPPED
[INFO] flowable-spring-boot-sample-dmn .................... SKIPPED
[INFO] flowable-spring-boot-sample-form ................... SKIPPED
[INFO] flowable-spring-boot-sample-content ................ SKIPPED
[INFO] flowable-spring-boot-sample-cmmn ................... SKIPPED
[INFO] flowable-spring-boot-sample-ldap ................... SKIPPED
[INFO] flowable-spring-boot-sample-rest-1.5.x ............. SKIPPED
[INFO] flowable-spring-boot-sample-starter ................ SKIPPED
[INFO] Flowable - HTTP .................................... SKIPPED
[INFO] Flowable - REST - APP .............................. SKIPPED
[INFO] Flowable - Cxf ..................................... SKIPPED
[INFO] Flowable - OSGi .................................... SKIPPED
[INFO] Flowable - Camel ................................... SKIPPED
[INFO] Flowable - Mule .................................... SKIPPED
[INFO] Flowable - Cdi ..................................... SKIPPED
[INFO] Flowable - Camel CDI ............................... SKIPPED
[INFO] Flowable - LDAP - Configurator ..................... SKIPPED
[INFO] Flowable - JMX ..................................... SKIPPED
[INFO] Flowable - JMS - Spring - Executor ................. SKIPPED
[INFO] Flowable - CrystalBall ............................. SKIPPED
[INFO] Flowable UI Common ................................. SKIPPED
[INFO] flowable-ui-edge ................................... SKIPPED
[INFO] flowable-archetype-unittest ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:12 min
[INFO] Finished at: 2019-04-16T07:02:12+02:00
[INFO] Final Memory: 223M/822M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project flowable-spring-boot-autoconfigure: Compilation failure: Compilation failure: 
[ERROR] error reading /path/to/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/9.0.17/tomcat-embed-core-9.0.17.jar; zip file is empty
[ERROR] error reading /path/to/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/9.0.17/tomcat-embed-core-9.0.17.jar; zip file is empty
[ERROR] /path/to/workspace/flowable/flowable-engine/modules/flowable-spring-boot/flowable-spring-boot-starters/flowable-spring-boot-autoconfigure/src/main/java/org/flowable/spring/boot/rest/BaseRestApiConfiguration.java:[15,21] package javax.servlet does not exist
[ERROR] /path/to/workspace/flowable/flowable-engine/modules/flowable-spring-boot/flowable-spring-boot-starters/flowable-spring-boot-autoconfigure/src/main/java/org/flowable/spring/boot/rest/BaseRestApiConfiguration.java:[34,15] cannot find symbol
[ERROR]   symbol:   class MultipartConfigElement
[ERROR]   location: class org.flowable.spring.boot.rest.BaseRestApiConfiguration
[ERROR] /path/to/workspace/flowable/flowable-engine/modules/flowable-spring-boot/flowable-spring-boot-starters/flowable-spring-boot-autoconfigure/src/main/java/org/flowable/spring/boot/rest/BaseRestApiConfiguration.java:[59,43] cannot find symbol
[ERROR]   symbol:   class MultipartConfigElement
[ERROR]   location: class org.flowable.spring.boot.rest.BaseRestApiConfiguration
[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 <goals> -rf :flowable-spring-boot-autoconfigure

I’m guessing there is a dependency issue here.

Any advice as to whether this is a problem in the maven scripts or I am doing something wrong?

Thanks,
Paul

See: How To: Build Flowable

Thanks for the link. I’ve had previously a working build environment, just after the latest pull it stopped working with the above error.

I now checked out the previous commit - https://github.com/flowable/flowable-engine/commit/0f515e9648faf5cdcf737318c4ce4736fb51b8a4 - and retried building and it worked. So the changes in the latest commit have stopped the dependency resolution working for me.

@filiphr I saw that you made this latest commit. Could you take a look at the above error and see if you have any input?

Thanks.

Hey Paul,

That is weird. The master build on Travis CI is green and that one uses the exact same command. I just run the build locally with a clean .m2 repository and it was building fine.

In any case I noticed you have this in your logs:

[ERROR] error reading /path/to/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/9.0.17/tomcat-embed-core-9.0.17.jar; zip file is empty
[ERROR] error reading /path/to/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/9.0.17/tomcat-embed-core-9.0.17.jar; zip file is empty

This looks like the jar is corrupted. Can you perhaps try to remove that from your local .m2 repository and try again?

Cheers,
Filip

I removed the jars from the repositories and tried again and it works perfectly now.

Thanks for the help @filiphr

Regards,
Paul