title: Maven multimodule mojo not executing
body: <p>I need to install a custom plugin (mojo) first and then execute the goal. I would want this to happen in one go but as of now using below code i am getting build errors. Not sure if i'm going right in below code so that i can install plugin first and then code inside mojo would get executed.</p>
  <p>ParentProject:</p>
  <pre><code>  &lt;groupId&gt;com.io&lt;/groupId&gt;
    &lt;artifactId&gt;Parent&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;name&gt;Parent&lt;/name&gt;
    &lt;description&gt;ThisisParent&lt;/description&gt;
    &lt;packaging&gt;pom&lt;/packaging&gt;
    &lt;modules&gt;
      &lt;module&gt;Child1Plugin&lt;/module&gt;
      &lt;module&gt;ChildFramework&lt;/module&gt;
    &lt;/modules&gt;
  </code></pre>
  <p>Child1Plugin-pom.xml</p>
  <pre><code> &lt;parent&gt;
      &lt;groupId&gt;com.io&lt;/groupId&gt;
      &lt;artifactId&gt;Parent&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  &lt;/parent&gt;
  &lt;artifactId&gt;Child1Plugin&lt;/artifactId&gt;
  &lt;packaging&gt;maven-plugin&lt;/packaging&gt;
  &lt;name&gt;Child&lt;/name&gt;
  &lt;description&gt;ThisisChild&lt;/description&gt;
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-plugin-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.4&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;com.parent.module&lt;/groupId&gt;
              &lt;artifactId&gt;ChildFramework&lt;/artifactId&gt;
              &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;mydata&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;configuration&gt;
                  &lt;scope&gt;test&lt;/scope&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  <p>ChildFramework-pom.xml</p>
  <pre><code>    &lt;parent&gt;
          &lt;groupId&gt;com.io&lt;/groupId&gt;
          &lt;artifactId&gt;Parent&lt;/artifactId&gt;
          &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;/parent&gt;
      &lt;artifactId&gt;ChildFramework&lt;/artifactId&gt;
      &lt;packaging&gt;maven-plugin&lt;/packaging&gt;
      &lt;name&gt;Childtwo&lt;/name&gt;
      &lt;description&gt;Thisischildtwo&lt;/description&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.maven&lt;/groupId&gt;
              &lt;artifactId&gt;maven-plugin-api&lt;/artifactId&gt;
              &lt;version&gt;3.6.3&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.maven.plugin-tools&lt;/groupId&gt;
              &lt;artifactId&gt;maven-plugin-annotations&lt;/artifactId&gt;
              &lt;version&gt;3.6.0&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.maven&lt;/groupId&gt;
              &lt;artifactId&gt;maven-project&lt;/artifactId&gt;
              &lt;version&gt;2.2.1&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-plugin-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.4&lt;/version&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;com.io&lt;/groupId&gt;
                  &lt;artifactId&gt;ChildFramework&lt;/artifactId&gt;
                  &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;mydata&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
                  &lt;configuration&gt;
                      &lt;scope&gt;test&lt;/scope&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  </code></pre>
  <p>The below mojo is inside src/main/java folder of ChildFramework module.</p>
  <pre><code>@Mojo(name = &quot;mydata&quot;, defaultPhase = LifecyclePhase.COMPILE)
  public class Feat extends AbstractMojo {    
      @Override
      public void execute() throws MojoExecutionException, MojoFailureException {
          System.out.println(&quot;%%%%%%%%%%%%%%%%%%%%%% MyMOJO&quot;);
      }
  </code></pre>