views:

18

answers:

0

Hello,

i'm trying to create a plugin with a custom lifecycle :

/**
 * @goal my-goal
 * @execute lifecycle="my-custom-lifecycle" phase="attach-foo"
 */
public class MyMojo extends AbstractMojo {
...

with src/main/resources/META-INF/maven/lifecycle.xml file :

<lifecycles>
  <lifecycle>
    <id>attach-foo</id>
    <phases>
      <phase>
        <id>package</id>
        <executions>
          <execution>
            <goals>
              <goal>
                org.apache.maven.plugins:maven-assembly-plugin:single
              </goal>
            </goals>
            <configuration>
              <descriptorRefs>
                  <descriptor>adescriptor.xml</descriptor>
              </descriptorRefs>
            </configuration>
          </execution>
        </executions>
      </phase>
    </phases>
  </lifecycle>
</lifecycles>

Assembly-plugin is called unfortunately the zip artifact generated is not attached and install in repo...

Any ideas ?

Thanks