由于在jenkins的构建作业期间pom丢失,构建失败

时间:2016-12-17 15:12:10

标签: java maven jenkins deployment build

我正在尝试使用jenkins构建和部署我的项目。首先,我在我的系统上部署jenkins,它运行正常。 Jenkins能够完美地构建java项目,但是当我尝试使用相同的配置和设置在我的Windows服务器上配置它时,构建失败。

配置:

  • JDK 1.8
  • Jenkins 2.19.4.war
  • maven 3.3.9
  

Sol 1 - 我试图将maven repo从我的系统复制到服务器然后它适用于少数构建,但它又开始失败。

     

Sol 2 - 尝试将maven版本降级为2.0,但它也没有用?

Executing Maven:  -B -f E:\My-Jenkins\workspace\er4u_test\web\pom.xml clean install
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building web Maven Webapp 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for er4u:core:jar:0.0.1-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.283 s
[INFO] Finished at: 2016-12-17T20:35:56+05:30
[INFO] Final Memory: 15M/247M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project web: Could not resolve dependencies for project com.er4u:web:war:0.0.1-SNAPSHOT: Could not find artifact er4u:core:jar:0.0.1-SNAPSHOT -> [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/DependencyResolutionException
[JENKINS] Archiving E:\My-Jenkins\workspace\er4u_test\web\pom.xml to com.er4u/web/0.0.1-SNAPSHOT/web-0.0.1-SNAPSHOT.pom
channel stopped
Finished: FAILURE

0 个答案:

没有答案