在install,deploy的时候,打包源码
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
deploy之前把source.jar生成,deploy插件才能识别target路径下的jar并进行上传,所以将jar-no-fork
绑定在verify
流程节点上。