In PlayN, how do you exclude a directory from being compiled by Maven? -
i want build html version of game command line using maven. however, when run package
command core
folder:
mvn clean package -pl core,html
i following errors because of unit tests in source path:
[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 not exist [error] /home/klenwell/projects/mygame/playn/mygame/core/src/main/java/mygame/playn/tests/unit/userdatatest.java:[7,16] package org.junit not exist ...
how can exclude directory these test files being included in compilation?
it not idea mix source
, test
classes. per maven convention, should move tests src/main/java
src/test/java
.
you should add dependency junit
tests can compiled.
you can choose skip tests (if broken) using -dskiptests
or similar while running maven.
Comments
Post a Comment