Exclude folder with sources which are built in IntelliJ Idea
I open maven project in Idea. I store my files which are used for unit testing in folder \src\test\resources
But the issue is files which are used for testing are java-files.
Despite 'mvn package' skip this files开发者_开发问答, but when opening in Idea it tries to compile them.
Is it possible to exclude this folder with java-files from sources to be compiled in Idea?
I use IntelliJ Idea 9.0.3
Try
File -> Settings -> Compiler -> Excludes
Add your path to Path
and select Recursively
Sure, go into your Modules view, find the module in question, and set your src/test
directory to Exclude Sources
.
精彩评论