1. 程式人生 > >[ERROR] The goal you specified requires a project to execute but there is no POM in this directory

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

問題

在安裝maven的時候,我在cmd裡面輸入mvn install的時候報錯:

The goal you specified requires a project to execute but there is no POM
 in this directory (C:\Program Files\三浪). Please verify you invoked Mave
n from the correct directory. -> [Help 1]

原因和解決方法

報錯說是需要一個工程來執行,但是沒有POM,我推測是maven工程的執行開始於pom.xml,正如javaweb工程開始於web.xml,這句話意思是想要執行一個maven工程,目錄底下必須有pom.xml,現在沒有,所有報錯了。我的解決方法是進入到maven工程根目錄下面(有pom.xml),然後執行mvn install就好了。

相關推薦

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

手動新增maven構件報錯  [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\Windows\System32). Ple

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

問題 在安裝maven的時候,我在cmd裡面輸入mvn install的時候報錯: The goal you specified requires a project to execute but there is no POM in this directory (C

解決The goal you specified requires a project to execute but there is no POM in this directory錯誤的一種方法!

在使用Jenkins自動構建Java專案時,出現以下的錯誤。錯誤日誌如下:  + /opt/maven/apache-maven-3.5.4/bin/mvn clean package -U -e -B -Dmaven.test.skip=true [INFO] Error

maven報錯 the goal you specified requires a project to execute but there is no POM in this direct...

linux下的maven mvn install報以下錯誤 the goal you specified requires a project to execute but there is no POM in this directory(自己的路徑).Please ve

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

pro see direct correct ecif 編譯 nsh png -o 報錯截圖及詳細: 15:30:29[ERROR]The goal you specified requires a project to execute but ther

mvn:deploy神坑之:“maven deploy-file requires a project to execute but no pom file is found”

釋出程式碼如下: mvn -X deploy:deploy-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-compiler-plugin -Dversion=3.6.0 -Dpackaging=jar -Dfi

./configure: error: the HTTP rewrite module requires the PCRE library.

.com nload 總結 mod img 9.png images ssl lib 案發現場還原: wget http://nginx.org/download/nginx-1.8.0.tar.gz cp nginx-1.8.0.tar.gz /usr/loca

nginx安裝報錯:configure: error: the HTTP rewrite module requires the PCRE library

error: config pcr nginx 參考 body post iam sta 參考:http://blog.51cto.com/williamx/958398 需要安裝pcre-devel與openssl-devel yum -y install pcre-de

ngingx安裝錯誤 ./configure: error: the HTTP rewrite module requires the PCRE library.

有時候,我們需要單獨安裝nginx,來處理大量的下載請求。單獨在Ubuntu14.04安裝nginx遇到的rewrite和HTTP cache錯誤解決辦法: wget http://nginx.org/download/nginx-0.8.33.tar.gz tar -zxvf nginx

Nginx編譯安裝錯誤error: the HTTP gzip module requires the zlib library

在nginx中我們執行“./configure” 會提示 error: the HTTP gzip module requires the zlib library意思是告訴我們沒有zlib library的支援了 碰到此類問題我們只要安裝這個庫就可以了。 下載後,解

linux下安裝nginx error: the HTTP rewrite module requires the PCRE library.

停止操作停止操作是通過向nginx程序傳送訊號(什麼是訊號請參閱linux文 章)來進行的步驟1:查詢nginx主程序號ps -ef | grep nginx在程序列表裡 面找master程序,它的編號就是主程序號了。步驟2:傳送訊號從容停止Nginx:kill -QUIT 主程序號快速停止Nginx:kil

CentOS安裝Nginx 報錯“configure: error: the HTTP rewrite module requires the PCRE library”解決辦法

CentOS 6.2 安裝Nginx時報錯 錯誤提示: ./configure: error: the HTTP rewrite

# tail -f /var/log/zabbix/zabbix_agentd.log sudo: sorry, you must have a tty to run sudo

方法 ret htm .html class efault sudoers div var /etc/sudoers 1)Defaults requiretty,修改為 #Defaults requiretty,表示不需要控制終端。 2)Def

【sqli-labs】 less26 GET- Error based -All you SPACES and COMMENTS belong to us(GET型基於錯誤的去除了空格和註釋的註入)

src blog sci 字符 XML 包含 col concat image 看了下源碼 所有的註釋形式和反斜線,and,or都被了過濾掉了 單引號沒有過濾 空格也被過濾了 http://localhost/sqli-labs-master/Less-26/?id=

sudo 問題:sorry, you must have a tty to run sudo

使用不同賬戶,執行執行指令碼時候sudo經常會碰到 sudo: sorry, you must have a tty to run sudo這個情況,其實修改一下sudo的配置就好了 vi /etc/sudoers (最好用visudo命令) 搜尋 Default require

sudo sorry you must have a tty to run sudo

32分是我所有的財產了..[[email protected] ~]$ crontab -l*/1 * * * * sudo /usr/sbin/lvscan 2>>/home/Abel/test [[email protected] ~]$ cat ~/test sudo:

【凡事預則立,不預則廢】I am a little little girl in a big big world,But that is not a big big thing if you leave me alone.

I am a little little girl in a big big world,But that is not a big big thing if you leave me alone.

The design and implementation of a system to detect and filter large sessions automatically

Author: Lubin Liu 0. Abstract Large sessions waste a lot of computing resources and extend the delivery time of MapReduce jobs. Automatic

java.sql.SQLException: QueryRunner requires a DataSource to be invoked in this way, or a Connection

我在使用org.apache.commons.dbutils和c3p0操作資料庫時,報的錯,翻譯過來就是: QueryRunner需要以這種方式呼叫資料來源,或者需要傳遞連線 排查: 1、是否有資料來源,即是否正常載入c3p0-config.xml檔案。 2、資料

IOS error "There is no SDK with the or path...."

1、錯誤提示 下載ios的開發專案,執行xcode編譯、報錯,“error: There is no SDK with the name or path ...."; 2、解決方案 報錯原因:ios專案配置的sdk與當前xcode的sdk不對應。 修改方法:點選報錯的“.x