此刻,我正在構建一個微服務模板項目,其中包含所有我認爲可能有用的技術,以便人們可以將其用作項目的基礎,而不會遇到所有我遇到的問題。Intellij構建工程,Maven構建失敗
現在的問題:雖然在Intellij中我可以運行我的Spring Boot應用程序,但是當我打算使用命令「mvn clean install」時,maven告訴我在ms-business內部找不到對其他類的依賴關係。而另一個問題是,當我想運行MountainMergerTest類時,它無法從同一模塊中找到MountainMerger。
在這裏你可以找到完整的項目:https://github.com/wscale/mountains
我最近改名爲我的項目,也許這搞砸了一點......但因爲我試圖從github上重新導入它可能被打破的IntelliJ文件應該已經走了現在...仍然沒有改變。
我很感激每一個幫助很大,因爲我真的不明白的問題:/
mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] mountains
[INFO] ms-commons
[INFO] ms-persistence
[INFO] ms-business
[INFO] ms-ws
[INFO] ms-tests
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building mountains 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ mountains ---
[INFO]
[INFO] --- spring-boot-maven-plugin:1.5.3.RELEASE:repackage (default) @ mountains ---
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ mountains ---
[INFO] Installing /Users/Valdur/Documents/Development/Projects/mountains/pom.xml to /Users/Valdur/.m2/repository/org/wscale/mountains/0.0.1-SNAPSHOT/mountains-0.0.1-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ms-commons 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ ms-commons ---
[INFO] Deleting /Users/Valdur/Documents/Development/Projects/mountains/ms-commons/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ ms-commons ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/Valdur/Documents/Development/Projects/mountains/ms-commons/src/main/resources
[INFO] skip non existing resourceDirectory /Users/Valdur/Documents/Development/Projects/mountains/ms-commons/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ ms-commons ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 12 source files to /Users/Valdur/Documents/Development/Projects/mountains/ms-commons/target/classes
[WARNING] /Users/Valdur/Documents/Development/Projects/mountains/ms-commons/src/main/java/org/wscale/commons/test/AbstractIT.java: /Users/Valdur/Documents/Development/Projects/mountains/ms-commons/src/main/java/org/wscale/commons/test/AbstractIT.java uses unchecked or unsafe operations.
[WARNING] /Users/Valdur/Documents/Development/Projects/mountains/ms-commons/src/main/java/org/wscale/commons/test/AbstractIT.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ ms-commons ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/Valdur/Documents/Development/Projects/mountains/ms-commons/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ ms-commons ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to /Users/Valdur/Documents/Development/Projects/mountains/ms-commons/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ ms-commons ---
[INFO] Surefire report directory: /Users/Valdur/Documents/Development/Projects/mountains/ms-commons/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ ms-commons ---
[INFO] Building jar: /Users/Valdur/Documents/Development/Projects/mountains/ms-commons/target/ms-commons-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:1.5.3.RELEASE:repackage (default) @ ms-commons ---
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ ms-commons ---
[INFO] Installing /Users/Valdur/Documents/Development/Projects/mountains/ms-commons/target/ms-commons-0.0.1-SNAPSHOT.jar to /Users/Valdur/.m2/repository/org/wscale/ms-commons/0.0.1-SNAPSHOT/ms-commons-0.0.1-SNAPSHOT.jar
[INFO] Installing /Users/Valdur/Documents/Development/Projects/mountains/ms-commons/pom.xml to /Users/Valdur/.m2/repository/org/wscale/ms-commons/0.0.1-SNAPSHOT/ms-commons-0.0.1-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ms-persistence 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ ms-persistence ---
[INFO] Deleting /Users/Valdur/Documents/Development/Projects/mountains/ms-persistence/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ ms-persistence ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/Valdur/Documents/Development/Projects/mountains/ms-persistence/src/main/resources
[INFO] skip non existing resourceDirectory /Users/Valdur/Documents/Development/Projects/mountains/ms-persistence/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ ms-persistence ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to /Users/Valdur/Documents/Development/Projects/mountains/ms-persistence/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ ms-persistence ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/Valdur/Documents/Development/Projects/mountains/ms-persistence/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ ms-persistence ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /Users/Valdur/Documents/Development/Projects/mountains/ms-persistence/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ ms-persistence ---
[INFO] Surefire report directory: /Users/Valdur/Documents/Development/Projects/mountains/ms-persistence/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ ms-persistence ---
[INFO] Building jar: /Users/Valdur/Documents/Development/Projects/mountains/ms-persistence/target/ms-persistence-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:1.5.3.RELEASE:repackage (default) @ ms-persistence ---
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ ms-persistence ---
[INFO] Installing /Users/Valdur/Documents/Development/Projects/mountains/ms-persistence/target/ms-persistence-0.0.1-SNAPSHOT.jar to /Users/Valdur/.m2/repository/org/wscale/ms-persistence/0.0.1-SNAPSHOT/ms-persistence-0.0.1-SNAPSHOT.jar
[INFO] Installing /Users/Valdur/Documents/Development/Projects/mountains/ms-persistence/pom.xml to /Users/Valdur/.m2/repository/org/wscale/ms-persistence/0.0.1-SNAPSHOT/ms-persistence-0.0.1-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ms-business 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ ms-business ---
[INFO] Deleting /Users/Valdur/Documents/Development/Projects/mountains/ms-business/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ ms-business ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/resources
[INFO] skip non existing resourceDirectory /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ ms-business ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to /Users/Valdur/Documents/Development/Projects/mountains/ms-business/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainService.java:[5,35] package org.wscale.mountains.domain does not exist
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainService.java:[13,10] cannot find symbol
symbol: class MountainEntity
location: interface org.wscale.mountains.service.MountainService
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainService.java:[20,5] cannot find symbol
symbol: class MountainEntity
location: interface org.wscale.mountains.service.MountainService
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainService.java:[26,32] cannot find symbol
symbol: class MountainEntity
location: interface org.wscale.mountains.service.MountainService
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainService.java:[26,5] cannot find symbol
symbol: class MountainEntity
location: interface org.wscale.mountains.service.MountainService
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainService.java:[32,34] cannot find symbol
symbol: class MountainEntity
location: interface org.wscale.mountains.service.MountainService
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainService.java:[39,33] cannot find symbol
symbol: class MountainEntity
location: interface org.wscale.mountains.service.MountainService
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[9,37] package org.wscale.commons.exceptions does not exist
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[10,44] package org.wscale.commons.exceptions.errors does not exist
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[11,44] package org.wscale.commons.exceptions.errors does not exist
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[12,35] package org.wscale.mountains.domain does not exist
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[14,41] package org.wscale.mountains.repositories does not exist
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[20,13] cannot find symbol
symbol: class MountainRepository
location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/merger/MountainMerger.java:[3,33] package org.wscale.commons.merger does not exist
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/merger/MountainMerger.java:[4,35] package org.wscale.mountains.domain does not exist
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/merger/MountainMerger.java:[20,37] cannot find symbol
symbol: class AbstractMerger
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[26,17] cannot find symbol
symbol: class MountainEntity
location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[33,12] cannot find symbol
symbol: class MountainEntity
location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[44,45] cannot find symbol
symbol: class MountainEntity
location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[44,12] cannot find symbol
symbol: class MountainEntity
location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[56,47] cannot find symbol
symbol: class MountainEntity
location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[67,40] cannot find symbol
symbol: class MountainEntity
location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/merger/MountainMerger.java:[22,42] cannot find symbol
symbol: class MountainEntity
location: class org.wscale.mountains.merger.MountainMerger
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/merger/MountainMerger.java:[22,73] cannot find symbol
symbol: class MountainEntity
location: class org.wscale.mountains.merger.MountainMerger
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/merger/MountainMerger.java:[22,12] cannot find symbol
symbol: class MountainEntity
location: class org.wscale.mountains.merger.MountainMerger
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[27,20] cannot find symbol
symbol: class MountainEntity
location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[34,9] cannot find symbol
symbol: class MountainEntity
location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[36,23] cannot find symbol
symbol: class NotFoundRuntimeException
location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[37,25] cannot find symbol
symbol: class ErrorObject
location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[46,23] cannot find symbol
symbol: class BadRequestRuntimeException
location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[47,25] cannot find symbol
symbol: class ErrorObject
location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[73,9] cannot find symbol
symbol: class MountainEntity
location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[75,9] cannot find symbol
symbol: class MountainEntity
location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[81,9] cannot find symbol
symbol: class MountainEntity
location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[83,23] cannot find symbol
symbol: class NotFoundRuntimeException
location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[84,25] cannot find symbol
symbol: class ErrorObject
location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[92,23] cannot find symbol
symbol: class NotFoundRuntimeException
location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[92,52] cannot find symbol
symbol: class ErrorObject
location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[105,23] cannot find symbol
symbol: class BadRequestRuntimeException
location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[106,25] cannot find symbol
symbol: class ErrorObject
location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/merger/MountainMerger.java:[24,9] cannot find symbol
symbol: class MountainEntity
location: class org.wscale.mountains.merger.MountainMerger
[INFO] 41 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] mountains .......................................... SUCCESS [ 0.786 s]
[INFO] ms-commons ......................................... SUCCESS [ 3.162 s]
[INFO] ms-persistence ..................................... SUCCESS [ 0.995 s]
[INFO] ms-business ........................................ FAILURE [ 0.146 s]
[INFO] ms-ws .............................................. SKIPPED
[INFO] ms-tests ........................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.542 s
[INFO] Finished at: 2017-05-28T16:21:11+02:00
[INFO] Final Memory: 41M/282M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project ms-business: Compilation failure: Compilation failure:
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainService.java:[5,35] package org.wscale.mountains.domain does not exist
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainService.java:[13,10] cannot find symbol
[ERROR] symbol: class MountainEntity
[ERROR] location: interface org.wscale.mountains.service.MountainService
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainService.java:[20,5] cannot find symbol
[ERROR] symbol: class MountainEntity
[ERROR] location: interface org.wscale.mountains.service.MountainService
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainService.java:[26,32] cannot find symbol
[ERROR] symbol: class MountainEntity
[ERROR] location: interface org.wscale.mountains.service.MountainService
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainService.java:[26,5] cannot find symbol
[ERROR] symbol: class MountainEntity
[ERROR] location: interface org.wscale.mountains.service.MountainService
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainService.java:[32,34] cannot find symbol
[ERROR] symbol: class MountainEntity
[ERROR] location: interface org.wscale.mountains.service.MountainService
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainService.java:[39,33] cannot find symbol
[ERROR] symbol: class MountainEntity
[ERROR] location: interface org.wscale.mountains.service.MountainService
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[9,37] package org.wscale.commons.exceptions does not exist
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[10,44] package org.wscale.commons.exceptions.errors does not exist
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[11,44] package org.wscale.commons.exceptions.errors does not exist
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[12,35] package org.wscale.mountains.domain does not exist
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[14,41] package org.wscale.mountains.repositories does not exist
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[20,13] cannot find symbol
[ERROR] symbol: class MountainRepository
[ERROR] location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/merger/MountainMerger.java:[3,33] package org.wscale.commons.merger does not exist
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/merger/MountainMerger.java:[4,35] package org.wscale.mountains.domain does not exist
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/merger/MountainMerger.java:[20,37] cannot find symbol
[ERROR] symbol: class AbstractMerger
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[26,17] cannot find symbol
[ERROR] symbol: class MountainEntity
[ERROR] location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[33,12] cannot find symbol
[ERROR] symbol: class MountainEntity
[ERROR] location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[44,45] cannot find symbol
[ERROR] symbol: class MountainEntity
[ERROR] location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/service/MountainServiceImpl.java:[106,25] cannot find symbol
[ERROR] symbol: class ErrorObject
[ERROR] location: class org.wscale.mountains.service.MountainServiceImpl
[ERROR] /Users/Valdur/Documents/Development/Projects/mountains/ms-business/src/main/java/org/wscale/mountains/merger/MountainMerger.java:[24,9] cannot find symbol
[ERROR] symbol: class MountainEntity
[ERROR] location: class org.wscale.mountains.merger.MountainMerger
[ERROR] -> [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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :ms-business
'$ {global.version}'的用法不會像那樣工作。請參閱[文檔如何在Maven 3.5.0中使用它](http://maven.apache.org/maven-ci-friendly.html)。誰應該注入(自動裝載)MountainMerge到你的單元測試中的問題?我沒有看到springboot測試運行器的任何用法(如果我正確記得)等等。此外,您可以將maven構建完整註銷到帖子中以查看真實錯誤消息... – khmarbaise
感謝迄今爲止,我改變了$ {global.version}並將Autowire改爲新的。錯誤仍然是一樣的。 – Valentin
請按照我的要求發佈日誌輸出...檢查springboot文檔如何運行單元測試? – khmarbaise