2
在连接期间与组装插件神器试图创建一个自定义的生命周期插件:如何我自定义生命周期
/**
* @goal my-goal
* @execute lifecycle="my-custom-lifecycle" phase="attach-foo"
*/
public class MyMojo extends AbstractMojo {
...
用的src /主/资源/ META-INF /行家/生命周期。 xml文件:
<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>
大会,插件被称为不幸产生不附和回购安装拉链神器......
任何想法?
谢谢