GVKun编程网logo

使用maven安装jar包到本地仓库时遇到The goal you specified requires a project to execute but there is no POM in ...

19

在本文中,我们将详细介绍使用maven安装jar包到本地仓库时遇到ThegoalyouspecifiedrequiresaprojecttoexecutebutthereisnoPOMin...的各个

在本文中,我们将详细介绍使用maven安装jar包到本地仓库时遇到The goal you specified requires a project to execute but there is no POM in ...的各个方面,同时,我们也将为您带来关于An unexpected error prevented the server from fulfilling your request. (HTTP 500)、Cannot create a project within the Flutter SDK. Target directory、Cannot start compilation: the output path is not specified for module "XXX". Specify the out、CMake Error: The following variables are used in this project, but they are set to NOTFOUND.的有用知识。

本文目录一览:

使用maven安装jar包到本地仓库时遇到The goal you specified requires a project to execute but there is no POM in ...

使用maven安装jar包到本地仓库时遇到The goal you specified requires a project to execute but there is no POM in ...

在使用mvn install:install-file -Dfile=D:\setup\fastdfs-client-java-1.27-RELEASE.jar -DgroupId=org.csource -DartifactId=fastdfs-client-java  -Dversion=1.27-SNAPSHOT  -Dpackaging=jar

安装jar包到本地时,出现了

PS C:\Users\dell> mvn install:install-file -Dfile=D:\setup\fastdfs-client-java-1.27-RELEASE.jar -DgroupId=org.csource -DartifactId=fastdfs-client-java -Dversion=1.27-SNAPSHOT -Dpackaging=jar
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.075 s
[INFO] Finished at: 2019-09-16T08:45:04+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\Users\dell). 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

该错误从字面意思来理解好像是找不到pom文件, 在构建maven工程常遇到, 但是安装jar包到本地仓库还是第一次,经过万能的百度, 找到一个解决方法就是将相关参数加上引号,如下:

mvn install:install-file "-Dfile=D:\setup\fastdfs-client-java-1.27-RELEASE.jar" "-DgroupId=org.csource" 
"-DartifactId=fastdfs-client-java" "-Dversion=1.27-SNAPSHOT" "-Dpackaging=jar"

 参考原文: https://stackoverflow.com/questions/6704813/maven-generating-pom-file/11199865#11199865

An unexpected error prevented the server from fulfilling your request. (HTTP 500)

An unexpected error prevented the server from fulfilling your request. (HTTP 500)

求大神解答

Cannot create a project within the Flutter SDK. Target directory

Cannot create a project within the Flutter SDK. Target directory

一个初级的问题,最近在学习flutter,在android studio 创建flutter mobile 时会报出以下错误:Cannot create a project within the Flutter SDK. Target directory,按照官方的配置path 都检查了,依然没有解决,请教各位!

Cannot start compilation: the output path is not specified for module

Cannot start compilation: the output path is not specified for module "XXX". Specify the out

在使用IDEA在自己创建的Java项目时,因为没有使用IDEA创建项目,而是创建好项目后直接导入,导致IDEA没有配置文件,所以在运行Java程序的时候报错:

   Cannot start compilation: the output path is not specified for module "XXX". Specify the output path in Configure Project.

这个错误是因为没有设置output的路径,只要修改相关设置即可:

  • 点击File=>Project Structure...在出现的对话框中选择Project,在右侧的Project compiler output设置output路径,格式为项目的路径\out,如下: 第一步
  • 继续选择Project下面的Modules,在右侧出现的设置里打开Paths选项卡勾选Inherit project compile path第二步
  • 点击apply,重新运行项目即可

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.

https://ubuntuforums.org/showthread.php?t=2314969

关于使用maven安装jar包到本地仓库时遇到The goal you specified requires a project to execute but there is no POM in ...的介绍现已完结,谢谢您的耐心阅读,如果想了解更多关于An unexpected error prevented the server from fulfilling your request. (HTTP 500)、Cannot create a project within the Flutter SDK. Target directory、Cannot start compilation: the output path is not specified for module "XXX". Specify the out、CMake Error: The following variables are used in this project, but they are set to NOTFOUND.的相关知识,请在本站寻找。

本文标签: