maven01 执行mvn install命令成功后 ,maven02执行compile命令依旧提示程序包maven01不存在?
[INFO] Installing D:\hwx371034\code\maven01\pom.xml to D:\repository\com\maven01
\maven01-model\1.0.0-SNAPSHOT\maven01-model-1.0.0-SNAPSHOT.pom
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.
1:compile (default-compile) on project maven02-model02: Compilation failure: Com
pilation failure:
[ERROR] /D:/hwx371034/code/maven02/src/main/java/com/maven02/util/Speak.java:[2,
19] 程序包com.maven01不存在
[ERROR] /D:/hwx371034/code/maven02/src/main/java/com/maven02/util/Speak.java:[6,
21] 找不到符号
[ERROR] 符号: 类 HelloWorld
[ERROR] 位置: 类 com.maven02.util.Speak
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption