Windows 上 mvn install:install-file 报:no POM in this directory 1、问题再现 . 2、解决方案 方案一: . 然后输入 mvn 命令即可 mvn install:install-file -DgroupId=com.rnny -Dartif
mvn install:install-file -Dfile=./ojdbc6-11.2.0.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar -DgeneratePom=true 1. 但是在windows上面却失败了,报no POM in this directory: The goal you specified requires a project to execute but there is no POM in this...
执行mvn install:install-file命令: 使用Maven的install:install-file目标将jar包安装到本地仓库。如果你已经创建了pom.xml文件,可以指定它: bash mvn install:install-file -Dfile=C:\path\to\your\jar\my-jar.jar -DpomFile=C:\path\to\your\pom\pom.xml 如果你没有创建pom.xml文件,但希望Maven自动生成一...
1 mvn install-file -DgroupId=XXX -DartifactId=xxx -Dversion=XXXX - Dpackaging=jar -Dfile=XXXX 执行完之后发现报错为: The goal you specified requires a project to execute but there is no POM in this directory 检查了mvn的版本,能正常执行,仔细检查命令后发现 上面命令 -Dpackaging=jar - 后...
mvn install-file -DgroupId=XXX -DartifactId=xxx -Dversion=XXXX - Dpackaging=jar -Dfile=XXXX 1. 执行完之后发现报错为: The goal you specified requires a project to execute but there is no POM in this directory 检查了mvn的版本,能正常执行,仔细检查命令后发现 上面命令 -Dpackaging=jar - 后...
报错The goal you specified requires a project to execute but there is no POM in this directory 。。。 之前的命令:mvn install:install-file -Dfile= /Users/pengyang/Desktop/project/study/sparkmaven/ext/AdViewUtil.jar -DgroupId=com.pp -DartifactId=pp -Dversion=1.0-SNAPSHOT -Dpackaging=jar ...
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (path-to/epubcheck-4.0.1). 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 ...
本人是maven初学者,遇到一个问题,运行mvn install出错!请指点一二!谢谢! D:\mvntest>mvn archetype:create -DgroupId=org.sonatype.mavenbook.ch04 -DartifactId=simple-weather -DpackageName=org.sonatype.mavenbook -Dversion=1.0 运行完后,修改pom.xml,其代码如下: ...
mvn deploy:deploy-file -DgroupId=com.sun.pdfview -DartifactId=pdf -Dversion=1.0 -Dpackaging=...
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (D:\xxx). Please verify you invoked Maven from the correct directory. -> [Help 1] 发现我自己多加了一层目录,因此pom文件不在工程目录中,删除一层目录,再运行,就成功了...