1. 代理上网设置
在maven安装路径下, 修改conf/settings.xml文件,在<proxies>中添加你的代理信息:
<proxies>
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username></username>
<password></password>
<host>192.168.91.12</host>
<port>80</port>
<nonProxyHosts>localhost|127.0.0.1</nonProxyHosts>
</proxy>
</proxies>
2. mvn是出现类似No goals have been specified for this build.的错误
在pom.xml文件<build>标签里边加上<defaultGoal>compile</defaultGoal>即可
待续...