Maven:没有要编译的源代码
我正在关注“使用Maven构建Java项目”(https://spring.io/guides/gs/maven/#scratch),当我从/Users/Misha/Desktop/src/main/java/hello运行“mvn compile”时,我得到这个提示:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building gs-maven 0.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ gs-maven ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ gs-maven ---
[INFO] No sources to compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.942 s
[INFO] Finished at: 2015-01-11T23:10:28-08:00
[INFO] Final Memory: 7M/155M
[INFO] ------------------------------------------------------------------------
我在hello目录中有两个java文件和xml文件,我假设我应该看到“Hello World!”而不是没有源代码可以编译。为什么我的 Java 代码无法编译?谢谢!