light-example-4j icon indicating copy to clipboard operation
light-example-4j copied to clipboard

account-management example build issue

Open johnt-softclouds opened this issue 7 years ago • 3 comments

I followed the directions for the light-example-4j/eventuate/account-management/ demo. I got the following error. The error was consistent on a new Ubuntu VM as well as a Linux Mint laptop.

[INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Inspecting build with total of 10 modules... [INFO] Installing Nexus Staging features: [INFO] ... total of 10 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] Parent POM [INFO] eventuate-account-common [INFO] eventuate-account-command [INFO] eventuate-account-query [INFO] eventuate-account-e2etest [INFO] eventuate-account-service [INFO] eventuate-account-view-service [INFO] eventuate-customer-service [INFO] eventuate-customer-view-service [INFO] eventuate-transaction-service [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building Parent POM 0.1.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ light-eventuate-account --- [INFO] Deleting /home/jtang/data/shared/light-4j/light-example-4j/eventuate/account-management/target [INFO] [INFO] --- jacoco-maven-plugin:0.7.4.201502262128:prepare-agent (pre-unit-test) @ light-eventuate-account --- [INFO] surefireArgLine set to -javaagent:/home/jtang/.m2/repository/org/jacoco/org.jacoco.agent/0.7.4.201502262128/org.jacoco.agent-0.7.4.201502262128-runtime.jar=destfile=/home/jtang/data/shared/light-4j/light-example-4j/eventuate/account-management/target/jacoco.exec [INFO] [INFO] --- jacoco-maven-plugin:0.7.4.201502262128:report (post-unit-test) @ light-eventuate-account --- [INFO] Skipping JaCoCo execution due to missing execution data file:/home/jtang/data/shared/light-4j/light-example-4j/eventuate/account-management/target/jacoco.exec [INFO] [INFO] --- maven-jar-plugin:2.6:test-jar (default) @ light-eventuate-account --- [WARNING] JAR will be empty - no content was marked for inclusion! [INFO] Building jar: /home/jtang/data/shared/light-4j/light-example-4j/eventuate/account-management/target/light-eventuate-account-0.1.0-tests.jar [INFO] [INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) > generate-sources @ light-eventuate-account >>> [INFO] [INFO] --- jacoco-maven-plugin:0.7.4.201502262128:prepare-agent (pre-unit-test) @ light-eventuate-account --- [INFO] surefireArgLine set to -javaagent:/home/jtang/.m2/repository/org/jacoco/org.jacoco.agent/0.7.4.201502262128/org.jacoco.agent-0.7.4.201502262128-runtime.jar=destfile=/home/jtang/data/shared/light-4j/light-example-4j/eventuate/account-management/target/jacoco.exec [INFO] [INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) < generate-sources @ light-eventuate-account <<< [INFO] [INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @ light-eventuate-account --- [INFO] [INFO] --- maven-javadoc-plugin:2.10.4:jar (attach-javadocs) @ light-eventuate-account --- [INFO] Not executing Javadoc as the project is not a Java classpath-capable package [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ light-eventuate-account --- [INFO] Installing /home/jtang/data/shared/light-4j/light-example-4j/eventuate/account-management/pom.xml to /home/jtang/.m2/repository/com/networknt/light-eventuate-account/0.1.0/light-eventuate-account-0.1.0.pom [INFO] Installing /home/jtang/data/shared/light-4j/light-example-4j/eventuate/account-management/target/light-eventuate-account-0.1.0-tests.jar to /home/jtang/.m2/repository/com/networknt/light-eventuate-account/0.1.0/light-eventuate-account-0.1.0-tests.jar [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building eventuate-account-common 0.1.0 [INFO] ------------------------------------------------------------------------ [WARNING] The POM for com.networknt:eventuate-common:jar:1.5.13 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [WARNING] The POM for org.mockito:mockito-core:jar:2.1.0-beta.124 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ eventuate-account-common --- [INFO] Deleting /home/jtang/data/shared/light-4j/light-example-4j/eventuate/account-management/common/target [INFO] [INFO] --- jacoco-maven-plugin:0.7.4.201502262128:prepare-agent (pre-unit-test) @ eventuate-account-common --- [INFO] surefireArgLine set to -javaagent:/home/jtang/.m2/repository/org/jacoco/org.jacoco.agent/0.7.4.201502262128/org.jacoco.agent-0.7.4.201502262128-runtime.jar=destfile=/home/jtang/data/shared/light-4j/light-example-4j/eventuate/account-management/common/target/jacoco.exec [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ eventuate-account-common --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/jtang/data/shared/light-4j/light-example-4j/eventuate/account-management/common/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ eventuate-account-common --- [INFO] Compiling 37 source files to /home/jtang/data/shared/light-4j/light-example-4j/eventuate/account-management/common/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] error: error reading /home/jtang/.m2/repository/com/networknt/eventuate-common/1.5.13/eventuate-common-1.5.13.jar; error in opening zip file [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Parent POM ......................................... SUCCESS [ 1.223 s] [INFO] eventuate-account-common ........................... FAILURE [ 0.406 s] [INFO] eventuate-account-command .......................... SKIPPED [INFO] eventuate-account-query ............................ SKIPPED [INFO] eventuate-account-e2etest .......................... SKIPPED [INFO] eventuate-account-service .......................... SKIPPED [INFO] eventuate-account-view-service ..................... SKIPPED [INFO] eventuate-customer-service ......................... SKIPPED [INFO] eventuate-customer-view-service .................... SKIPPED [INFO] eventuate-transaction-service ...................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.393 s [INFO] Finished at: 2018-05-02T08:07:11-07:00 [INFO] Final Memory: 28M/399M [INFO] ------------------------------------------------------------------------

johnt-softclouds avatar May 02 '18 15:05 johnt-softclouds

eventuate-common-1.5.13 was released so it is accessible from Maven Central. It looks like a corrupt jar file. I will remove my local .m2 repository and test it out. Thanks for bringing it up.

stevehu avatar May 02 '18 20:05 stevehu

I have tested on my laptop and it works with jar files from maven central. I guess something is wrong with your jar utility in your jdk to open jar files. Could you try to build other project and see if the same problem occurs? Thanks.

[INFO] Parent POM ......................................... SUCCESS [  1.375 s]
[INFO] eventuate-account-common ........................... SUCCESS [  8.466 s]
[INFO] eventuate-account-command .......................... SUCCESS [  3.775 s]
[INFO] eventuate-account-query ............................ SUCCESS [ 11.425 s]
[INFO] eventuate-account-e2etest .......................... SUCCESS [ 32.342 s]
[INFO] eventuate-account-service .......................... SUCCESS [ 11.575 s]
[INFO] eventuate-account-view-service ..................... SUCCESS [  4.890 s]
[INFO] eventuate-customer-service ......................... SUCCESS [  4.951 s]
[I

stevehu avatar May 02 '18 23:05 stevehu

I was able to get pass the problem after going to a Windows 10 machine that previously was not used to compile Maven projects. I will continue with the demo. Thank you for the fast response.

johnt-softclouds avatar May 03 '18 04:05 johnt-softclouds