我想從命令行使用maven構建我的遊戲的html版本。然而,當我運行的core
文件夾package
命令:在PlayN中,如何排除Maven編譯的目錄?
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
...
我怎樣才能排除這些目錄測試文件是否包含在編譯中?
謝謝。仍然熟悉Maven和Java約定。 – klenwell