我正在阅读本教程:http://www.adeveloperdiary.com/java/spring-boot/create-spring-boot-application-step-step/
我安装了maven,然后我去运行 mvn clean package 在 \ SpringBoot \ src \ main \ java \ com \ adeveloperdiary 目录中,但它一直在说
declare @procName varchar(500)
declare cur cursor
for SELECT 'DROP PROCEDURE [' + SCHEMA_NAME(p.schema_id) + '].[' + p.NAME + ']'
FROM sys.procedures p
open cur
fetch next from cur into @procName
while @@fetch_status = 0
begin
exec( @procName )
fetch next from cur into @procName
end
close cur
deallocate cur
这是我的mvn -version
[INFO] Scanning for projects...
[INFO] --------------------------------------------------------------------- ---
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.059 s
[INFO] Finished at: 2016-12-07T11:45:06-05:00
[INFO] Final Memory: 6M/310M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\Users\kbultman\Downloads\SpringBoot\src\main\java\com\adeveloperdiary). Please verify you invoked Maven from the correct directory. -> [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/MissingProjectException
答案 0 :(得分:1)
您想在项目的顶级目录中运行maven命令。要做到这一点,你需要使用" cd"像这样的命令:
cd \ path \ to \ directory
在您的情况下,目录可能是
C:\ Users \用户kbultman \下载\ SpringBoot
而不是
C:\ Users \用户kbultman \下载\ SpringBoot \ SRC \主\的java \ COM \ adeveloperdiary