title: mvn install from parent POM does not create target folder on grandchild module
body: <p>The maven project has the following structure Parent POM -> Child POM -> GrandChild POM added below. </p>
  
  <p>When I run <code>mvn clean install</code> from GrandChild POM target folder is generated on the same path as GrandChild POM(parent/child/target) and all jar files from Module1, Module2 and Module3 are populated under this directory. </p>
  
  <p>When I run <code>mvn package</code> from Parent POM target folder is created in parent directory and all the jars are placed within this folder as above.</p>
  
  <p>However if I run <code>mvn clean install</code> from Parent POM, no target folder or jars are generated  within the project. Instead all the jars are uploaded to local .m2 repository. </p>
  
  <p>I need jars files to be generated within target folder inside the project(possibly within the grand child directory: parent/child/target), when I run <code>mvn clean install</code> from Parent POM. How can I achieve this?</p>
  
  <p><strong>Parent POM:</strong></p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;parentGroup&lt;/groupId&gt;
    &lt;artifactId&gt;parentArtifact&lt;/artifactId&gt;
    &lt;version&gt;3.3&lt;/version&gt;
    &lt;packaging&gt;pom&lt;/packaging&gt;
  
    &lt;modules&gt;
      &lt;module&gt;ChildModule&lt;/module&gt;
    &lt;/modules&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p><strong>Child POM:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
  
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;childGroup&lt;/groupId&gt;
    &lt;artifactId&gt;childArtifact&lt;/artifactId&gt;
    &lt;packaging&gt;pom&lt;/packaging&gt;
    &lt;version&gt;1.0.0&lt;/version&gt;
    &lt;name&gt;A Camel Spring Route&lt;/name&gt;
    &lt;url&gt;http://www.myorganization.org&lt;/url&gt;
  
    &lt;modules&gt;
      &lt;module&gt;GrandChildModule&lt;/module&gt;
    &lt;/modules&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p><strong>GrandChild POM:</strong></p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;grandChildGroup&lt;/groupId&gt;
    &lt;artifactId&gt;grandChildArtifact&lt;/artifactId&gt;
    &lt;version&gt;1.0.0&lt;/version&gt;
    &lt;packaging&gt;pom&lt;/packaging&gt;
  
    &lt;parent&gt;
      &lt;artifactId&gt;childArtifact&lt;/artifactId&gt;
      &lt;groupId&gt;childGroup&lt;/groupId&gt;
      &lt;version&gt;1.0.0&lt;/version&gt;
      &lt;relativePath&gt;..&lt;/relativePath&gt;
    &lt;/parent&gt;
  
    &lt;modules&gt;
      &lt;module&gt;Module1&lt;/module&gt;
      &lt;module&gt;Module2&lt;/module&gt;
      &lt;module&gt;Module3&lt;/module&gt;
    &lt;/modules&gt;
  &lt;/project&gt;
  </code></pre>