title: Maven 3.0.3 archetype creation: from multiple module project
body: <p>I am using Maven 3.0.3 and I have a multiple module maven project which I want to use for Archetype creation. Struture is like:</p>
  
  <pre><code>Main_Project   
     ----pom.xml  
     ----Module_1
       ----pom.xml    
       ----src
           ----main
              ----java
                ----com
                  ----mycompany
                     ----domain
                       ----DomainT.java
                     ----repo
              ----resources
              ----webapp
           ----test
     ----Module_2
       ----pom.xml  
       ----src
           ----main
              ----java
                ----com
                  ----mycompany
                     ----web
                       ----WebT.java
              ----resources
              ----webapp
           ----test
  </code></pre>
  
  <p>Now, when I use the following cmd in the Module_2, archetype is created successfully and correctly i.e.</p>
  
  <pre><code>c:\Main_Project\Module_2&gt;mvn archetype:create-from-project
  </code></pre>
  
  <p>But, when I run the same command from the main folder (i.e. <code>c:\Main_Project</code>), the package structure is not created (for 'generate' cmd) and still the original package structure exists in the both the modules. What I mean is the package name in java and other files gets replaced with correct variables but the package folder structure is no created .e.g.</p>
  
  <p>The original structure was:</p>
  
  <pre><code>     ----src
           ----main
              ----java
                ----com
                  ----mycompany
                     ----domain
                       ----DomainT.java
  </code></pre>
  
  <p>After I run the cmd,   <code>mvn archetype:generate -DarchetypeCatalog=local</code></p>
  
  <pre><code>Define value for property 'groupId': : com.sample
  Define value for property 'artifactId': : test_project
  Define value for property 'version':  1.0-SNAPSHOT:
  Define value for property 'package':  com.sample: :
  </code></pre>
  
  <p>Still the folder structure when generated inside the <code>Module_1\src\main\java</code> folder is same as above (i.e. <code>Module_1\src\main\java\com\mycompany</code>) and not like <code>Module_1\src\main\java\com\sample</code></p>
  
  <p>Not sure what I can do to make it work?</p>