jenkins报错The goal you specified requires a project to execute but there is no POM inthis directory

报错截图及详细:

15:30:29[ERROR]The goal you specified requires a project to execute but there is no POM inthis directory (/data/workspace). Please verify you invoked Maven from thecorrect directory. -> [Help 1]

15:30:29[ERROR]

15:30:29[ERROR] Tosee the full stack trace of the errors, re-run Maven with the -e switch.

15:30:29[ERROR]Re-run Maven using the -X switch to enable full debug logging.

15:30:29[ERROR]

15:30:29[ERROR]For more information about the errors and possible solutions, please read thefollowing articles:

解决方法:

这里的报错,分析了下,发现jenkins拉下代码来编译,编译不了,发现就是workspace下面没有java代码编译需要的pom文件,要将代码路径切换到有pom文件的地方,才可以mvn  install。

就是在jenkins上build上面--------调用shell,在shell切换编译路径

原文地址:https://www.cnblogs.com/ming369/p/10807224.html

时间: 2024-10-29 20:03:06

jenkins报错The goal you specified requires a project to execute but there is no POM inthis directory的相关文章

The goal you specified requires a project to execute but there is no POM in this directory

[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.169 s [INFO] Fin

maven 安装第三方jar到本地 出现 The goal you specified requires a project to execute but there is no POM in this directory 错误

原因是因为操作系统的差异导致,把所有参数加上引号即可. 如下所示: mvn install:install-file "-Dfile=cobra.jar" "-DgroupId=com.cobra" "-DartifactId=cobra" "-Dversion=0.98.4" "-Dpackaging=jar" "-DgeneratePom=true" 详见http://stackov

SpringCloud报错:com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server

启动SpringCloudEureka 报错:com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server 解决方法: 先仔细检查,指定的注册中心 eureka.client.serviceUrl.defaultZone的地址是否正确,端口号有没有写错.然后,在application.yml 添加以下配置: #Eureka服务注册中心也会将自己作为客户端来

报错:The JSP specification requires that attribute

The JSP specification requires that an attribute name is preceded by whitespace翻译成中文:JSP规范要求属性名称前面有空白.报错全文信息:type Exception report message /foreground/common/link.jsp (line: 1, column: 84) The JSP specification requires that an attribute name is prec

Jenkins报错Caused: java.io.IOException: Cannot run program "sh" (in directory "D:\Jenkins\Jenkins_home\workspace\jmeter_test"): CreateProcess error=2, 系统找不到指定的文件。

想在本地执行我的python文件,我本地搭建了一个Jenkins,使用了execute shell来运行我的脚本,发现报错 [jmeter_test] $ sh -xe D:\tomcat\apache-tomcat-8.5.20\temp\jenkins4583980269774421650.sh The system cannot find the file specified FATAL: command execution failed java.io.IOException: Crea

jenkins报错 Host key verification failed.

一.Host key verification failed 问题描述 在本地windows机器上安装了jenkins,在git bash命令行窗口可以使用git pull命令,但是在jenkins 中执行git pull就会报错. C:\01_Project\doc\>git pull Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the

jenkins报错Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password) 的处理

问题背景:jenkins服务器发布代码后需要执行删除缓存的操作ssh -p222 [email protected] "sudo rm -rf /dev/shm/nginx/hipdf/cache/*" 分析:要让jenkins能删除远程服务器上的缓存,需要配置免秘钥打通为避免权限过大,使用 eus_pe_devadmin 操作,即jenkins服务器上运行tomcat服务的apache用户操作远程 eus_pe_devadmin 用户来删除缓存需要把运行jenkins程序的apach

Jenkins报错Error fetching remote repo ‘origin‘真正解决办法

Jenkins build时报错Error fetching remote repo 'origin',网上大部分文章都说是git权限问题,其实并不是,造成这个问题的原因是Jenkins有个工作空间( workspace)的概念,Jenkins build时产生的缓存会保存到工作空间里,我们把缓存清理掉就好,参照截图 原文地址:https://blog.51cto.com/kusorz/2358348

解决访问本地jenkins报错:No valid crumb was included in request for /jenkins/createItem by admin. Returning 403

今天在通过Jenkins接口创建项目的时候,返回报错HTTP403,刚开始还以为自己参数传输错误,检查了好几遍也没找出啥问题.后面一看控制台才发现这个错误,No valid crumb was included in request for /jenkins/createItem by admin. Returning 403. 错误原因:jenkins在http请求头部中放置了一个名为.crumb的token.在使用了反向代理,并且在jenkins设置中勾选了“防止跨站点请求伪造(Preven