pom.xml中配置:
<!-- 打源码包的插件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>install</phase><!-- 要绑定到的生命周期的阶段 在verify之后,install之前执行下面指定的goal -->
<goals>
<goal>jar-no-fork</goal><!-- 类似执行mvn sources:jar -->
</goals>
</execution>
</executions>
</plugin>
上一篇:mvn test中文乱码问题解决
下一篇:spring cache的使用
Copyright © 叮叮声的奶酪 版权所有
备案号:鄂ICP备17018671号-1