2015-09-05 132 views
1

我想自定义shopizer电子商务。从github下载源代码版本2.0.2后,我使用“Existing Maven Project”的导入选项将项目导入eclipse luna。错误建筑shopizer

其次还有入门文档,但得到以下编译错误: -

[INFO] Scanning for projects... 
[ERROR] The build could not read 4 projects -> [Help 1] 
[ERROR] 
[ERROR] The project com.shopizer:sm-core:2.0.2-SNAPSHOT (E:\shopizer- 2.0.2\shopizer\sm-core\pom.xml) has 1 error 
[ERROR]  Non-resolvable parent POM: Failure to find com.shopizer:shopizer:pom:2.0.2-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 and 'parent.relativePath' points at wrong local POM @ line 6, column 11 -> [Help 2] 
[ERROR]  
[ERROR] The project com.shopizer:sm-core-model:2.0.2-SNAPSHOT (E:\shopizer-2.0.2\shopizer\sm-core-model\pom.xml) has 1 error 
[ERROR]  Non-resolvable parent POM: Failure to find com.shopizer:shopizer:pom:2.0.2-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 and 'parent.relativePath' points at wrong local POM @ line 7, column 10 -> [Help 2] 
[ERROR] 
[ERROR] The project com.shopizer:sm-core-modules:2.0.2-SNAPSHOT (E:\shopizer-2.0.2\shopizer\sm-core-modules\pom.xml) has 1 error 
[ERROR]  Non-resolvable parent POM: Failure to find com.shopizer:shopizer:pom:2.0.2-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 and 'parent.relativePath' points at wrong local POM @ line 6, column 11 -> [Help 2] 
[ERROR] 
[ERROR] The project com.salesmanager:sm-shop:2.0.2-SNAPSHOT (E:\shopizer-2.0.2\shopizer\sm-shop\pom.xml) has 1 error 
[ERROR]  Non-resolvable parent POM: Failure to find com.shopizer:shopizer:pom:2.0.2-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 and 'parent.relativePath' points at wrong local POM @ line 6, column 13 -> [Help 2] 
[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/ProjectBuildingException 
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException 

这些都是我跟着导入项目到Eclipse中之后,由于步骤: - 对shopizer

1)右键点击它主要的父项目和运行maven干净安装,我使用maven插件为eclipse即m2e。

2)生成错误说有一个不可分辨父POM,我试图通过提供在这个多模块项目的4个子模块的相对路径元素来解决,但于事无补。

我也看到了一些版本的差异,比如父POM具有

<groupId>com.shopizer</groupId> 
<artifactId>shopizer</artifactId> 
<version>0.0.1-SNAPSHOT</version> 
<packaging>pom</packaging> 

在所述版本是0.0.1-SNAPSHOT但子模块的父元素具有此项

<parent> 
    <groupId>com.shopizer</groupId> 
    <artifactId>shopizer</artifactId> 
    <version>2.0.2-SNAPSHOT</version> 
</parent> 

我确实经历了这个论坛上关于Shopizer构建的唯一问题,但是在那里提供的解决方案并没有解决我的问题。

我希望这个问题的解决方案能够帮助其他人试图根据自己的需求来定制Shopshop,以及其他刚刚开始进行Java Enterprise Application开发的人。

盼望一些帮助。谢谢您的合作 。

+0

新的'2.0.3'尝试 –

回答

0

我之前遇到过这个问题,经过研究,我发现shopizer-2.0.2有一些问题。它更好的一个尝试与早期版本,即shopizer-2.0.1。试试看看它是否解决了这个问题。