Tworzenie nowej fazy

Pracuję nad projektem wykorzystującym Maven, dla którego potrzebuję dwóch nowych faz: „analysis” i „eval” (dla różnych faz analizy danych). Przeczytałem wszystkie dokumenty, które mogę znaleźć, i stworzyłem wersje komponentów.xml i lifecycle.xml, które są tak bliskie, jak tylko mogę, ale Maven odmawia uruchomienia nowych faz. (Powinienem podkreślić, że nie mam problemu z uruchomieniem moich wtyczek i bez problemu wiążę je z istniejącymi fazami zapewnianymi przez domyślny cykl życia. Moim problemem jest to, że nowe fazy, które tworzę, wydają się być ignorowane przez maven.) Co ja muszę zrobić, aby moje nowe fazy zaczęły działać?

lifecycles.xml:

<lifecycles>
  <lifecycle>
    <id>lenskit</id>
    <phases>
      <phase>
        <id>analyze</id>
        <executions>
          <execution>
            <goals>
              <goal>greet</goal>
            </goals>
          </execution>
        </executions>
      </phase>
      <phase>
        <id>validate</id>
        <executions>
          <execution>
            <goals>
              <goal>greet</goal>
            </goals>
          </execution>
        </executions>
      </phase>
    </phases>
  </lifecycle>
</lifecycles>

components.xml:

<component-set>
  <components>
    <component>
      <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
      <role-hint>lenskit</role-hint>
      <implementation>
        org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping
      </implementation>
      <configuration>
         <id>lenskit</id>
         <phases>
            <phase>get-data</phase>
            <phase>analyze</phase>
            <phase>eval</phase>
         </phases>
         <default-phases>
            <verify> org.apache.maven.plugins:maven-resources-plugin:resources </verify>
            <get-data> org.riedl:hello-lenskit-plugin:greet </get-data>
            <analyze> org.riedl:hello-lenskit-plugin:greet </analyze>
            <eval> org.riedl:hello-lenskit-plugin:greet </eval>
            <package> org.riedl:hello-lenskit-plugin:greet </package>
         </default-phases>
      </configuration>
    </component>
  </components>
</component-set>

questionAnswers(2)

yourAnswerToTheQuestion