maven 创建module与启动报错

一、一个maven,包含两个模块,interface,server,先install interface,server中添加interface的依赖,启动server报错,错误如下:

Could not resolve dependencies for project com.sx.teest1:test1:jar:1.0-SNAPSHOT: Failure to find weblogic:weblogic:jar:10.3 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

解决方案:先install project,父工程。

二、创建maven module失败,报错:

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved

解决方法:

清空maven仓库(repository),然后maven clean工程即可。

你可能感兴趣的:(maven 创建module与启动报错)