Spring boot springboot应用程序的Makefile

Spring boot springboot应用程序的Makefile,spring-boot,makefile,Spring Boot,Makefile,我有一个spring boot应用程序。我在一个vagrant box(centos)中运行它。我使用intelliJ IDEA 我已经创建了一个Makefile,我正在尝试运行这个应用程序 我从未使用过Makefile,因此我对它没有信心。 因此,这个问题对你们中的一些人来说似乎很容易。我试图做一些研究,但没有取得任何成功 我的Makefile包含:- 安装mvn: mvn:安装 我打开了一个终端,转到Makefile所在的位置,然后发出“make”命令来运行应用程序 我得到的错误如下:- [

我有一个spring boot应用程序。我在一个vagrant box(centos)中运行它。我使用intelliJ IDEA

我已经创建了一个Makefile,我正在尝试运行这个应用程序

我从未使用过Makefile,因此我对它没有信心。 因此,这个问题对你们中的一些人来说似乎很容易。我试图做一些研究,但没有取得任何成功

我的Makefile包含:-

安装mvn: mvn:安装

我打开了一个终端,转到Makefile所在的位置,然后发出“make”命令来运行应用程序

我得到的错误如下:-

[vagrant@localhost src]$ make
mvn :install

[INFO] Scanning for projects...

[INFO]     ------------------------------------------------------------------------

[INFO] BUILD FAILURE
[信息] 我不理解这个错误。你们中有谁能给我一些指导吗?我想知道人们期望的是什么以及生成文件应该包含什么


提前感谢

删除
:install
@M.Deinum中的
,我已将其删除。现在,生成文件包含“install mvn:mvn install”。我以前的错误已解决。但这次我得到了如下新消息:-[ERROR]您指定的目标需要执行一个项目,但此目录中没有POM(/home/vagrant/Share/springbootservice/src)。请验证您从正确的目录调用了Maven。->[帮助1]您应该从
springbootservice
目录调用它,该目录包含您的
pom.xml
。Wy您是否增加了Makefile的额外复杂性?Makefile要求的原因是什么?如果您使用start.spring.io构建示例应用程序,您将获得一个maven包装器,它将为您在“大多数”平台上下载并安装maven。@DaShaun该项目使用一些不同语言/技术的应用程序。例如Golang,c#,Java。因此maven wrapper没有那么大帮助。其想法是将各种语言/技术的所有配置放在一个Makefile中。感谢您花时间回答我的问题。:)
[INFO] Total time: 0.578s

[INFO] Finished at: Fri Jul 14 17:24:31 IST 2017

[INFO] Final Memory: 4M/22M

[INFO] ------------------------------------------------------------------------

[ERROR] Could not find goal '' in plugin org.apache.maven.plugins:maven-      install-plugin:2.3.1 among available goals install, install-file, help -> [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/MojoNotFoundException

make: *** [install-mvn] Error 1