We are using maven to manage our idea projects but I'm having a problem excluding a directory from the idea project.
Using idea, I would just go to Project Settings | Modules | Sources and select the folder I wanted to exclude and click on the "Excluded" button. When loading the project from the pom, target is excluded automatically. I want to exclude a logs folder as well.
In maven I'm using an idea maven plugin and it says I can exclude folders. I'm using this code but it doesn't seem to work:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-idea-plugin</artifactId>
<version>2.3-atlassian-1</version>
<configuration>
<downloadSources>true</downloadSources>
<downloadJavadocs>true</downloadJavadocs>
<exclude>
${project.basedir}/logs
</exclude>
</configuration>
</plugin>
I've tried different formats as well as putting in the fully qualified path (as a test) but nothing seems to exclude the logs directory from my idea project.
Anyone any ideas on how to get this working?
Thanks, Nick.