Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yadongwang110 opened this issue Jan 15, 2014 · 5 comments

Comments

@yadongwang110
Copy link

[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]

@hammerlimy
Copy link

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

@lazyp
Copy link

lazyp commented Feb 26, 2014

你可以用这个方法,把缺失的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]

@Mignet
Copy link

Mignet commented Apr 5, 2014

这个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

@remind
Copy link

remind commented May 21, 2014

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

@haomeihao
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants