首先,idea的lifecycle package可以成功,但是在上面执行maven命令中一直失败,因为要用jenkins所以要用到命令。报错如下:
Failed to execute goal on project xiaowo_user: Could not resolve dependencies for project com.gzhdexiaowo:xiaowo_user:jar:1.0-SNAPSHOT: Failure to find com.gzhdexiaowo:xiaowo_common:jar:1.0-SNAPSHOT in https://repo.spring.io/snapshot was cached in the local repository, resolution will not be reattempted until the update interval of spring-snapshots has elapsed or updates are forced -> [Help 1]
问题是common是项目中的其他包,父包和common都已经install了。.m2也清除了,就一直很奇怪为什么他一直要去https://repo.spring...... 里面找这个common包。如何设置本地找?求解啊