2015-09-05 134 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。試試看看它是否解決了這個問題。