lvwangbeta/Poplar

运行 build.sh失败

Opened this issue · 1 comments

我的服务端环境是
系统环境:centos7
Maven:
[root@localhost ~]# mvn -v
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T00:41:47+08:00)
Maven home: /opt/tyrone/maven
Java version: 1.8.0_181, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-693.el7.x86_64", arch: "amd64", family: "unix"

当我运行 build.sh时出现以下错误,请问是什么原因导致的

[root@localhost Poplar-master]# sh build.sh
Docker version 18.06.0-ce, build 0ffa825
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T00:41:47+08:00)
Maven home: /opt/tyrone/maven
Java version: 1.8.0_181, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-693.el7.x86_64", arch: "amd64", family: "unix"
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] poplar-common
[INFO] poplar
[INFO] poplar-api
[INFO] poplar-feed-service
[INFO] poplar-user-service
[INFO] poplar-action-service
[INFO] poplar-tag-service
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building poplar-common 2.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ poplar-common ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ poplar-common ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ poplar-common ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ poplar-common ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ poplar-common ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ poplar-common ---
[INFO]
[INFO] --- docker-maven-plugin:1.0.0:build (default-cli) @ poplar-common ---
[INFO] Using authentication suppliers: [ConfigFileRegistryAuthSupplier]
[INFO] Skipping docker build
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building poplar 2.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- spring-boot-maven-plugin:1.5.13.RELEASE:repackage (default) @ poplar ---
[INFO]
[INFO] --- docker-maven-plugin:1.0.0:build (default-cli) @ poplar ---
[INFO] Using authentication suppliers: [ConfigFileRegistryAuthSupplier]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] poplar-common ...................................... SUCCESS [ 28.995 s]
[INFO] poplar ............................................. FAILURE [ 2.841 s]
[INFO] poplar-api ......................................... SKIPPED
[INFO] poplar-feed-service ................................ SKIPPED
[INFO] poplar-user-service ................................ SKIPPED
[INFO] poplar-action-service .............................. SKIPPED
[INFO] poplar-tag-service ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 33.570 s
[INFO] Finished at: 2018-08-06T23:43:12+08:00
[INFO] Final Memory: 37M/90M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:1.0.0:build (default-cli) on project poplar: Exception caught: basedir /root/Poplar-master/target does not exist -> [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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :poplar
[ERROR] build failed.

请在项目根目录建立target目录,再试一次