title: How to stop Maven to mess with my directory layout and its properties?
body: <p>I have <code>src</code> directory marked as <code>source root</code>. After adding new dependency in <code>pom.xml</code> Maven marks <code>src</code> as standard/regular directory and then sets <code>java</code> directory as <code>source root</code> (which is located under src folder: <code>src/main/java</code>). It makes all <code>package</code> declarations in my classes to become invalid.  How to configure maven to stop doing that?</p>
  
  <p><img src="https://i.stack.imgur.com/2t0rl.png" alt="enter image description here"></p>