在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/Java/ maven工程聚合錯誤

maven工程聚合錯誤

在聚合maven的時候出現(xiàn)了點問題,這是我的目錄結構,下面放下聚合關系

clipboard.png

其中測試2是測試的子包,依賴于測試,但是在進行maven-install的時候出現(xiàn)如下錯誤
clipboard.png

這就不是很理解了,搞了半天也不知道為什么會報錯,求解答
下面給出錯誤信息

[ERROR] Failed to execute goal on project ceshi2: Could not resolve dependencies for project zuihoudeceshi:ceshi2:jar:1.0-SNAPSHOT: Could not find artifact zuihoudeceshi:ceshi:jar:1.0-SNAPSHOT -> [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
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :ceshi2
回答
編輯回答
怣痛

常規(guī)做法應該是父工程依賴于子工程,而不是子工程依賴于父工程,建議重構成兩個子工程,父工程里無代碼

2018年1月27日 19:47
編輯回答
柒槿年

得先把父工程install一下.在install子工程看看.

2017年11月6日 10:59