如果没有配置maven环境变量
系统变量添加MAVEN_HOME
系统变量Path下添加%MAVEN_HOME\bin
有时候我们需要的jar包 在中央仓库中没有;需要在本地仓库中引入;之后才能在pom文件中声明<dependence>引用
mvn install:install-file -DgroupId=doubleca -DartifactId=jce -Dversion=0.9.4 -Dpackaging=jar -Dfile=D:\develop tools\privatejars\doubleca-jce-0.9.4-SNAPSHOT.jar
一开始报错如下:[ERROR] The goal you specified requires a project to execute but there is no POM in this directory
原因是-Dfile的参数中有空格等特殊字符。 比如我就是因为develop tools文件夹名字中有个空格