title: How to rename maven modules?
body: <p>I have small project in which there are three modules:</p>
  
  <pre><code>&lt;modules&gt;
          &lt;module&gt;ejb&lt;/module&gt;
          &lt;module&gt;web&lt;/module&gt;
          &lt;module&gt;ear&lt;/module&gt;
  &lt;/modules&gt;
  </code></pre>
  
  <p>I wish to rename these maven modules. First thing i tried was, just rename module names pom.xml of parent. e.g.</p>
  
  <pre><code>&lt;modules&gt;
          &lt;module&gt;ejb-ext&lt;/module&gt;
          &lt;module&gt;web-ext&lt;/module&gt;
          &lt;module&gt;ear-ext&lt;/module&gt;
  &lt;/modules&gt;
  </code></pre>
  
  <p>When I tried to compile the project, maven complained that child modules (e.g. ejb-ext) do not exists.</p>
  
  <p>I use eclipse IDE, then i renamed every module using eclipse menu <em>refactor -> rename</em>. But due to this now SVN shows me that old modules <code>ejb</code>, <code>web</code> and <code>ear</code> are deleted, and there are new modules added <code>ejb-ext</code>, <code>web-ext</code> and <code>ear-ex</code>t.</p>
  
  <p>Is there any way to rename modules, without loosing their SVN history? I referred following thread, but it didnt help:</p>
  
  <p><a href="https://stackoverflow.com/questions/7308048/i-want-to-rename-maven-project-and-keep-its-subversion-history" title="Link 1">Reference 1</a>
  <a href="https://stackoverflow.com/questions/25000371/renaming-module-in-maven-project" title="Link 2">Reference 2</a></p>