无法在maven本地存储库中找到工件

时间:2014-08-13 15:39:35

标签: java android maven

我通过maven android sdk deployer成功地将外部jar安装到maven本地存储库中。 因为这些不适用于maven中央存储库。

Failed to execute goal on project mavendemo: Could not resolve dependencies for project com.mavendemo:mavendemo:apk:1.0: **The following artifacts could not be resolved: com.square:picasso:jar:1.0, com.analytics-androids-1.0.0:analytics-android.1.0.0:jar:1.0.0, com.gson:gson:jar:2.2.4, com.scribe:scribe:jar:1.0:** **Could not find artifact com.square:picasso:jar:1.0 in central (http://repo.maven.apache.org/maven2)** -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

1 个答案:

答案 0 :(得分:0)

如果您希望构建在其他系统上运行,则需要设置存储库管理器,如Nexus或Artifactory。我猜这是你想要的,虽然你实际上没有提出问题。