我想使用 maven 从命令行构建我的游戏的 html 版本。但是,当我package
为文件夹运行命令时core
:
mvn clean package -pl core,html
由于源路径中的一些单元测试,我收到以下错误:
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/klenwell/projects/mygame/playn/mygame/core/src/main/java/mygame/playn/tests/unit/UserDataTest.java:[3,23] package org.junit does not exist
[ERROR] /home/klenwell/projects/mygame/playn/mygame/core/src/main/java/mygame/playn/tests/unit/UserDataTest.java:[7,16] package org.junit does not exist
...
如何将包含这些测试文件的目录排除在编译中?