我创建了一个 scala maven 项目,我编写了一个简单的程序 scala 然后我执行了 RunAs -> Maven 安装,它返回构建成功,但它也显示:
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-versions) @ myproject ---
[INFO]
[INFO] --- scala-maven-plugin:3.1.3:compile (default) @ myproject ---
[WARNING] No source files found.
[INFO]
[INFO] --- scala-maven-plugin:3.1.3:testCompile (default) @ myproject ---
[WARNING] No source files found.
这是 POM 的代码示例:
<build>
<sourceDirectory>src/main/scala</sourceDirectory>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>3.1.3</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
</build>
谁能告诉我问题出在哪里?