# hello-maven-plugin **Repository Path**: doodoocoder_admin/hello-maven-plugin ## Basic Information - **Project Name**: hello-maven-plugin - **Description**: 对maven的自定义plugin及phase测试 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-04-08 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # hello-maven-plugin #### 介绍 @Mojo( name = "sayhi",defaultPhase = LifecyclePhase.PACKAGE,threadSafe = true, requiresDependencyResolution = ResolutionScope.RUNTIME) public class GreetingMojo extends AbstractMojo ### 若在build中配置了phase,将会覆盖defaultPhase即在默认的phase时不会执行 sample.plugin hello-maven-plugin 1.0-SNAPSHOT clean sayhi ### 默认是在phase为package时执行,在build中可以不配置phase sample.plugin hello-maven-plugin 1.0-SNAPSHOT sayhi