码迷,mamicode.com
首页 > 其他好文 > 详细

maven 随笔

时间:2016-03-02 12:46:09      阅读:147      评论:0      收藏:0      [点我收藏+]

标签:

<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>

maven 随笔

标签:

原文地址:http://www.cnblogs.com/dinglulu/p/5234241.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!