操作系统是winxp sp3,从maven2客户端升级为maven3,只有本地仓库,没有nexus库。
以前在家里机器使用maven2的时候,通常都是在命令行下执行mvn install安装一个jar包至本地仓库,然后在pom.xml文件中就可以进行依赖配置了.
最近升级为maven3之后,为什么同样的操作会报错,总是显示Missing artifact这个错误,到.m2\repository目录下查看发现jar包安装成功。.m2下的settings.xml文件如下:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>${user.home}/.m2/repository</localRepository>
<interactiveMode>true</interactiveMode>
<usePluginRegistry>false</usePluginRegistry>
<offline>false</offline>
</settings>
以前在家里机器使用maven2的时候,通常都是在命令行下执行mvn install安装一个jar包至本地仓库,然后在pom.xml文件中就可以进行依赖配置了.
最近升级为maven3之后,为什么同样的操作会报错,总是显示Missing artifact这个错误,到.m2\repository目录下查看发现jar包安装成功。.m2下的settings.xml文件如下:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>${user.home}/.m2/repository</localRepository>
<interactiveMode>true</interactiveMode>
<usePluginRegistry>false</usePluginRegistry>
<offline>false</offline>
</settings>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货