title: How to configure IntelliJ IDEA and/or Maven to automatically add directories with Java source code generated using jaxb2-maven-plugin?
body: <p>In our project we are using <code>jaxb2-maven-plugin</code> to generate Java source code from XML Schema, which causes that our Maven module requires additional source code directory (in our case <code>target/generated/main/java</code>). Up to date I've been using Eclipse and <code>maven-eclipse-plugin</code> to import all the projects into Eclipse workspace. The plugin is (somehow) able to add the directory with generated source code automatically to Eclipse' .classpath file.</p>
  
  <p>Recently I try to switch to (play with?) IntelliJ IDEA 9 (so I am a newbie in this environment) and I've noticed that additional source directory is not added during IDEA's importing process...</p>
  
  <p>Is there any way I can configure IDEA/Maven to make importing directory with generated source code automatically?</p>