lizMacBook-Pro:dao lizhen$ mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------------< com.runxing:dao >---------------------------
[INFO] Building dao 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.615 s
[INFO] Finished at: 2019-06-01T02:27:19+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project dao: Could not resolve dependencies for project com.runxing:dao:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at com.runxing:common:jar:0.0.1-SNAPSHOT: Failed to read artifact descriptor for com.runxing:common:jar:0.0.1-SNAPSHOT: Could not find artifact com.runxing:travel:pom:0.0.1-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
原因很多吧,我这里重新install异常最后提示的模块travel就好了。
Maven Projects视图 异常模块中 双击install执行一下
然后重新打包
mvn clean package