Maven打包报错
Could not resolve dependencies for project cloud.baser:grass-server-scenic:jar:1.0.0-RELEASE: The following artifacts could not be resolved: cloud.baser:grass-common-datasource:jar:1.0.0-RELEASE, cloud.baser:grass-common-security:jar:1.0.0-RELEASE, cloud.baser:grass-common-swagger:jar:1.0.0-RELEASE, cloud.baser:grass-common-logging:jar:1.0.0-RELEASE, cloud.baser:grass-common-token:jar:1.0.0-RELEASE, cloud.baser:grass-server-other:jar:1.0.0-RELEASE: Failure to find cloud.baser:grass-common-datasource:jar:1.0.0-RELEASE in http://maven.aliyun.com/nexus/content/repositories/central/ was cached in the local repository, resolution will not be reattempted until the update interval of alimaven has elapsed or updates are forced
出现原因是maven本地仓库没有相关依赖
解决方案
首先执行
mvn install
然后执行mvn package