构建Scala Maven项目时出错:无法找到或加载主类scala_maven_executions.MainWithArgsInFile

时间:2016-09-21 13:14:48

标签: scala maven scala-maven-plugin

使用maven-scala-plugin构建Maven项目时出错:

[ERROR] Error: Could not find or load main class scala_maven_executions.MainWithArgsInFile

1 个答案:

答案 0 :(得分:0)

然后原因是settings.xml文件从Windows复制到OS X而未经修改,但它包含特定于Windows的本地存储库路径:

<localRepository>C:\Users\<username>\.m2\repository</localRepository>

应改为:

<localRepository>/Users/<username>/.m2/repository</localRepository>