<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<configuration>
<attach>true</attach>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
tips:
本文由wp2Blog导入,原文链接:http://devonios.com/maven-%e6%89%93jar%e5%8c%85%ef%bc%8c%e5%90%8c%e6%97%b6%e6%89%93%e6%ba%90%e7%a0%81%e5%8c%85.html