<build>
<plugins>
<!--打包源代码-->
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>${maven.plugins.source.versin}</version>
<configuration>
<attach>true</attach>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!--打包Javadoc-->
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven.plugins.javadoc.version}</version>
<configuration>
<attach>true</attach>
<encoding>UTF-8</encoding>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<maven.plugins.source.versin>2.4</maven.plugins.source.versin>
<maven.plugins.javadoc.version>2.10.3</maven.plugins.javadoc.version>
05-04 02:48