无法建立Shopizer

时间:2014-10-25 12:03:12

标签: java eclipse spring maven

我从中下载最新的Shopizer代码来源  github.com/shopizer-ecommerce/shopizer 当我尝试使用Maven进行构建时,我遇到了以下错误。

[ERROR] Failed to execute goal on project sm-shop: Could not resolve dependencies for project com.salesmanager:sm-shop:war:2.0.0-SNAPSHOT: Failure to find com.shopizer:sm-core:jar:2.0.0-SNAPSHOT in http://maven.springframework.org/snapshot was cached in the local repository, resolution will not be reattempted until the update interval of org.springframework.maven.snapshot has elapsed or updates are forced -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project sm-shop: Could not resolve dependencies for project com.salesmanager:sm-shop:war:2.0.0-SNAPSHOT: Failure to find com.shopizer:sm-core:jar:2.0.0-SNAPSHOT in http://maven.springframework.org/snapshot was cached in the local repository, resolution will not be reattempted until the update interval of org.springframework.maven.snapshot has elapsed or updates are forced
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:220)

3 个答案:

答案 0 :(得分:0)

您需要更新Maven项目 右键单击项目 - > Maven - >更新项目

答案 1 :(得分:0)

您是否在本地存储库中安装了sm-core?

尝试进入sm-core文件夹并输入

mvn install

然后在sm-shop文件夹中再次尝试再次编译。

<强>更新 检查您的Maven版本(参见我的评论)

答案 2 :(得分:0)

我在构建购物者项目时遇到了问题。我已经从github下载了zip文件,并在NetBeans中导入了zip文件,我得到了如下图所示的项目结构。 Structure of the project after importing in NetBeans IDE

首先,我尝试构建每个模块,包括sm-core,sm-core-model,sm-core-modules和sm-shop。当我为sm-core-model进行清理和构建时,我收到了错误

  

无法在项目sm-core上执行目标:无法解析项目com.shopizer的依赖项:sm-core:jar:2.0.3-SNAPSHOT:以下工件无法解析:com.shopizer:sm-core -model:jar:2.0.3-SNAPSHOT,com.shopizer:sm-core-modules:jar:2.0.3-SNAPSHOT:找不到com.shopizer:sm-core-model:jar:2.0.3-SNAPSHOT in http://maven.springframework.org/snapshot缓存在本地存储库中,在经过org.springframework.maven.snapshot的更新间隔或强制更新之前,不会重新尝试解析 - &gt; [帮助1]

那么如何清理和构建这个项目。