MAVEN报错解决
1、mvn package报错:Failed to execute goal on project 【project name】: Could not resolve dependencies for project.
解决方法:maven依赖本地项目,①先把要依赖的项目clean,package,install;②再把要打包的项目package
2、mvn package报错:Failure to find org.sona:test:pom:0.0.1-SNAPSHOT in http://ip:port/nexus/content/repositories/sona/ was cached in the local repository, resolution will not be reattempted until the update interval of sona has elapsed or updates are forced.
解决方法:①执行mvn clean install -e -U (-e详细异常,-U强制更新)
②再执行mvn package