title: Why can Maven not find my custom Mojo?
body: <p>I have an own Mojo class.</p>
  
  <pre><code> @Mojo(name="mojo", threadSafe=true)
   public class MyMojo extends AbstractMojo
   {
       @Component
       private MavenProject project;
  
       public void execute() throws MojoExecutionException, MojoFailureException
       {
          getLog().info("Execute");
       }
    }
  </code></pre>
  
  <p>After that I install it in local repository.</p>
  
  <pre><code> [INFO] Applying mojo extractor for language: java-annotations
   [INFO] Mojo extractor for language: java-annotations found 0 mojo descriptors.
   [INFO] Applying mojo extractor for language: java
   [INFO] Mojo extractor for language: java found 0 mojo descriptors.
   [INFO] Applying mojo extractor for language: bsh
   [INFO] Mojo extractor for language: bsh found 0 mojo descriptors.
   ....
   [INFO] BUILD SUCCESS
  </code></pre>
  
  <p>But when try to call 'mojo' goal I got en error</p>
  
  <pre><code>   [ERROR] Could not find goal 'mojo' in plugin my.plugins:my-plugin:1.0-SNAPSHOT among available goals -&gt; [Help 1]
  
  what is the problem?
  </code></pre>
  
  <hr>
  
  <p>Here is maven-plugin-plugin configuration.</p>
  
  <pre><code>&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.2&lt;/version&gt;
      &lt;configuration&gt;                                                 
          &lt;skipErrorNoDescriptorsFound&gt;true&lt;/skipErrorNoDescriptorsFound&gt;
       &lt;/configuration&gt;
   &lt;/plugin&gt;
  </code></pre>
  
  <p>Old mechanism with javadoc annotations works well, but i want to use java annotation.</p>
  
  <pre><code>&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.2&lt;/version&gt;
  &lt;/dependency&gt;
  
  
   [INFO] --- maven-plugin-plugin:3.2:descriptor (default-descriptor) @ bla-mvn-plugin 
  </code></pre>
  
  <p>Why default-descriptor is enabled instead of mojo-descriptor?</p>