58code / Argo

58.com轻量级web框架

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

本地仓库中找不到com.bj58.spat:argo:jar:1.0.0,希望能解答一下 谢谢

yadongwang110 opened this issue · comments

[ERROR] Failed to execute goal on project argo-hello-world: Could not resolve dependencies for project com.bj58.spat:argo-hello-world:war:1.0.0: Failure to find com.bj58.spat:argo:jar:1.0.0 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]

我也遇到这个问题,怎么解决??

你可以用这个方法,把缺失的jar发布到自己的本地仓库,默认在.m2下面
mvn install:install-file -Dfile=your-artifact-1.0.jar
[-DpomFile=your-pom.xml]
[-Dsources=src.jar]
[-Djavadoc=apidocs.jar]
[-DgroupId=org.some.group]
[-DartifactId=your-artifact]
[-Dversion=1.0]
[-Dpackaging=jar]
[-Dclassifier=sources]
[-DgeneratePom=true]
[-DcreateChecksum=true]
[-DlocalRepositoryPath=path]

这个jar包就是将argo的core打包而成的,在core目录里执行mvn package
然后执行如下命令将该包注册到你的m2仓库
mvn install:install-file -DgroupId=com.bj58.spat -DartifactId=argo -Dversion=1.0.0 -Dpackaging=jar -Dfile=D:\Download\com.bj58.spat.argo_1.0.0.jar

楼上正解,你也可以直接用eclipse导入后,在argo中右键maven->install也行

还是不熟悉maven的构建生命周期。maven->install