maven导入jar包。报错如下:
The goal you specified requires a project to execute but there is no POM in this directory (C:\Users\duli). Please verify you invoked Maven from the correct directory. -> [Help 1]
原因及处理:
maven命令中
(mvn install:install-file -Dfile=D:\Documents and Settings\duli\Desktop\cglib-2.2.jar -DgroupId=cglib -DartifactId=cglib -Dversion=2.2 -Dpackaging=jar -DgeneratePom=true -DcreateChecksum=true)
存在空格。导致执行失败,将文件拷贝到其他文件夹
(mvn install:install-file -Dfile=D:\dateStructure\cglib-2.2.jar -DgroupId=cglib -DartifactId=cglib -Dversion=2.2 -Dpackaging=jar -DgeneratePom=true -DcreateChecksum=true)
运行成功!